I have checked with update manager, it shows some simple updates of some useless software and that is also not getting installed and gives the message the broken package and it is irritating me with same message.  It gave me this command sudo apt-get install -f after running it says:  $ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following package was automatically installed and is no longer required:   openjdk-7-jre-lib Use 'apt-get autoremove' to remove it. The following extra packages will be installed:   libfuse2:i386 The following NEW packages will be installed:   libfuse2:i386 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/138 kB of archives. After this operation, 323 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 236898 files and directories currently installed.) Unpacking libfuse2:i386 (from .../libfuse2_2.9.0-1ubuntu3_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libfuse2_2.9.0-1ubuntu3_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libfuse2/Makefile.gz', which is different from other instances of package libfuse2:i386 Errors were encountered while processing:  /var/cache/apt/archives/libfuse2_2.9.0-1ubuntu3_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
58328
I tried to upgrade Intel graphics in ubuntu 16.10 using the official installer. The last stage of unpacking libcairo2 produces an error (see figure).  When I do upgrade I get the same error also:   Preparing to unpack .../0-libcairo2_1.15.2-0intel1_amd64.deb ... Unpacking libcairo2:amd64 (1.15.2-0intel1) over (1.15.2-0intel1) ... dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/0 libcairo2_1.15.2-0intel1_amd64.deb (--unpack): trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:amd64 Preparing to unpack .../1-libcairo2_1.15.2-0intel1_i386.deb ... Unpacking libcairo2:i386 (1.15.2-0intel1) over (1.15.2-0intel1) ... dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb (--unpack): trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:i386 Errors were encountered while processing: /tmp/apt-dpkg-install-aYhdFd/0-libcairo2_1.15.2-0intel1_amd64.deb /tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   It seems that there is a conflict in thelibcairo releases; if yes, how to resolve it ?
73986
How can I fix this? I can't update anything at all.   I've tried to switch to my best server in the options.  When I do sudo apt-get update, this is what I get:     W: Failed to fetch     Unable to find   expected entry 'universe/binary-1386/Packages' in Release file (Wrong   sources.list entry or malformed file) E: Some index files failed to   download. They have been ignored, or old ones used instead.*   When I do sudo apt-get upgrade, I get this:     Reading package lists... Done      Building dependency tree             Reading state information... Done      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   the contents of my source.list:     deb  quantal universe restricted main   ....update: when I update, it looks for 'universe/binary-1386/Packages'  however, if I go to: ubuntu.mirror.rafal.ca/ubuntu/dists/quantal/Release with Google Chrome, I see that the file is actually named "universe/binary-i386/Packages" (it's with an i, not a 1) . how can I fix this and make it expect the proper package?
3500
So I can run on one machine:  dpkg --get-selections '*' &gt; selection.txt   On another machine:  dpkg --set-selections &lt; selection.txt   ... followed by either of the following:  aptitude install apt-get -u dselect-upgrade   ... to install the packages that.  However, it appears that some information gets lost in the process, such as whether a package (say xyz) got installed automatically as dependency of another package (abc). You can see that whenever you do something like apt-get --purge remove abc. On the original machine you would be notified that package xyz was installed as dependency of abc and that you may use apt-get autoremove to get rid of it.  Now I am aware of deborphan and debfoster, but they're cumbersome to use given the (simple) task at hand.  It seems saving and restoring the selections as shown above is not sufficient to restore the subtle dependencies of installed packages.  Is there a way to back up the complete set of metadata for package management and restore it then in its entirety?
114446
It is not unusual for an Ubuntu (or other distro with apt package management) user to encounter the error: user@box ~ $ sudo apt install x [sudo] password for user:  Reading package lists... Done Building dependency tree        Reading state information... Done Package x is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'x' has no installation candidate  There have been several questions asked concerning this on various StackExchange sites,for example  on AskUbuntu, but these are generally about how to obtain the specific package despite the error. I have found no package that is not found simply (though not always easily) by determining if it is still distributed, and under which repository if so, and ensuring that repository is in apt.sources, or the worst comes to the worst downloading a .deb or source to compile. So my question is more general, and although I am guessing it has a rather simple and therefore non-exciting answer I cannot think how to find it by conventional search engine methods, so I turn to AskUbuntu: Is there a command or option I can use to determine what package / which packages reference the missing package?
75382
I am thinking of the use case of this output:  The program 'tiger' is currently not installed. You can install it by typing: sudo apt-get install tiger   How can I get it to prompt me to install that package? For example it would output this:  The program 'tiger' is currently not installed. You can install it by typing: sudo apt-get install tiger # Confirmation can go here [sudo] password for tim: The following NEW packages will be installed   tiger tripwire 0 to upgrade, 11 to newly install, 0 to remove and 0 not to upgrade. Need to get 8,416 kB of archives. After this operation, 26.5 MB of additional disk space will be used. Do you want to continue? [Y/n]  # and/or confirmation can go here   I don't want to have to run it myself. How can I get it to do it automatically, and give me the option to not install?
311
For  I need to install libpng12-0 package on the Ubuntu 19.10 system.  I know that it is available .  So I have decided to download this package manually and install it by hand.  On previous Ubuntu versions (such as 18.04 LTS) this trick ends with success, but here on 19.10 it fails in very strange way:   wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb sudo apt-get install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. Get:1 /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng12-0 amd64 1.2.54-1ubuntu1.1 [116 kB] Selecting previously unselected package libpng12-0:amd64. (Reading database ... 212864 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...  dpkg: error processing archive /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--unpack):  unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory No apport report written because the error message indicates an issue on the local system                                                                                          Errors were encountered while processing:  /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   What is wrong here? How can I get libpng12-0 installed on Ubuntu 19.10 system?    Note: the same happens on 19.04, but it is near EOL.
111224
I am downloading a java package and in order to update I need to refresh the package list. How do I do that?
80237
I'm using 17.04 ( Clean Install ), and as far as I remember, every try to install any sofware- it fails with that error code.  I tried sudo apt-get update &amp;&amp; apt-get upgrade and problem persists.  any idea why?   edit: Using software Updater gave this result :   edit : output of update  guy@LG-LAPTOP:~$ sudo apt-get update &amp;&amp; apt-get upgrade [sudo] password for guy:  Ign:1 http://il.archive.ubuntu.com/ubuntu zesty InRelease Ign:2 http://il.archive.ubuntu.com/ubuntu zesty-updates InRelease               Ign:3 http://il.archive.ubuntu.com/ubuntu zesty-backports InRelease             Err:4 http://il.archive.ubuntu.com/ubuntu zesty Release                           503  Service Unavailable Get:5 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]      Err:6 http://il.archive.ubuntu.com/ubuntu zesty-updates Release                   503  Service Unavailable Get:7 http://archive.canonical.com/ubuntu zesty InRelease [10.2 kB]             Err:8 http://il.archive.ubuntu.com/ubuntu zesty-backports Release                 503  Service Unavailable Get:9 http://archive.canonical.com/ubuntu zesty/partner Sources [1,416 B]       Get:10 http://archive.canonical.com/ubuntu zesty/partner amd64 Packages [1,616 B] Get:11 http://archive.canonical.com/ubuntu zesty/partner i386 Packages [1,612 B] Get:12 http://archive.canonical.com/ubuntu zesty/partner Translation-en [708 B] Get:13 http://security.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata [11.7 kB] Get:14 http://security.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons [9,219 B] Get:15 http://security.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata [14.4 kB] Get:16 http://security.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons [31.0 kB] Reading package lists... Done                                          E: The repository 'http://il.archive.ubuntu.com/ubuntu zesty Release' does no longer have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://il.archive.ubuntu.com/ubuntu zesty-updates Release' does no longer have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://il.archive.ubuntu.com/ubuntu zesty-backports Release' does no longer have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. guy@LG-LAPTOP:~$    output of apt get  guy@LG-LAPTOP:~$ sudo apt-get install putty Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   putty-tools Suggested packages:   putty-doc The following NEW packages will be installed:   putty putty-tools 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 661 kB of archives. After this operation, 2,713 kB of additional disk space will be used. Do you want to continue? [Y/n]  Err:1 http://il.archive.ubuntu.com/ubuntu zesty/universe amd64 putty-tools amd64 0.67-3   503  Service Unavailable Err:2 http://il.archive.ubuntu.com/ubuntu zesty/universe amd64 putty amd64 0.67-3   503  Service Unavailable E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/universe/p/putty/putty-tools_0.67-3_amd64.deb  503  Service Unavailable E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/universe/p/putty/putty_0.67-3_amd64.deb  503  Service Unavailable E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? guy@LG-LAPTOP:~$
445
After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3510
I have read a number of the posts here and they all state to run the following commands:   Apt-get -f remove ** apt-get update apt-get upgrade apt-get -f install **   I have seen these in various order etc, and none are resolving, my issue. No matter what I try I get:    apt-get -f install mysql-server                              Reading package  lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: mysql-server-5.5 mysql-server-core-5.5 Suggested packages: tinyca mailx The following NEW packages will be installed: mysql-server mysql-server-5.5 mysql-server-core-5.5 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/14.9 MB of archives. After this operation, 53.0 MB of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... Selecting previously unselected package mysql-server-core-5.5. (Reading database ... 83134 files and directories currently installed.) Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.29- 0ubuntu0.12.04.1_amd64.deb) ... Selecting previously unselected package mysql-server-5.5. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.29-0ubuntu0.12.04.1_amd64.deb)  ... Selecting previously unselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.5.29-0ubuntu0.12.04.1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ... Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ... invoke-rc.d: initscript mysql, action "start" failed. invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.5 (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server:  mysql-server depends on mysql-server-5.5; however:   Package mysql-server-5.5 is not configured yet. dpkg: error processing mysql-server (--configure): No apport report written because the error message indicates its a followup error from a  No apport report written because the error message indicates its a followup error from a  previous failure.                    Errors were encountered while processing:  mysql-server-5.5  mysql-server   I have tried several things over the past week and cannot get this to resolve, any assistance would be appreciated. I did notice the message:  Package mysql-server-5.5 is not configured yet.  and i have yet to get this configured so I am working on that aspect. Any other assistance will be very appreciated.
100260
I typed  sudo apt-get upgrade   And I got this  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages will be upgraded:   bind9-host dnsutils google-chrome-stable libbind9-161 libdns-export1104   libdns1104 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163   liblwres161 python3-distupgrade ubuntu-release-upgrader-core   ubuntu-release-upgrader-gtk 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/61.1 MB of archives. After this operation, 1,769 kB of additional disk space will be used. Do you want to continue? [Y/n]  dpkg: unrecoverable fatal error, aborting:  unknown system group 'smmsp' in statoverride file; the system group got removed before the override, which is most probably a packaging bug, to recover you can remove the override manually with dpkg-statoverride E: Sub-process /usr/bin/dpkg returned an error code (2)   Can any one throw any light on this?
105399
Every time I try to install or remove a package, I get this error. I thought maybe it was the hard disk, but a disk check gave me a clean bill of health. dpkg: unrecoverable fatal error, aborting: reading files list for package 'linux-headers-3.16.0-31': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install.  Trying to recover:  I tried the solution of removing the listing for this file from the dpkg status file, but to no avail. I tried purging the package but no use. I'm stuck at this point as nothing I can find on Google helps. Update: This is now what the error says: dpkg: unrecoverable fatal error, aborting: E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install.  Trying to recover:  After trying:  Update2: Seems the drive has bad sectors, but the reallocated sector count is 0. The drive is relatively old, however, so I expect some issues. I won't be able to replace it immediately, and until then I would still like to be able to keep the system up to date (especially for security reasons). I noted that there was an issue with coping some md5 checksums related to the package mentioned in the error, but I don't know what to do with those, such as if clearing them would allow dpkg to continue.
115872
So I'm playing around with offline package installation on 12.04 Server, having downloaded packages by retrieving and wgetting their URIs using the instructions here:   I did this with apt-get upgrade and apt-get dist-upgrade, then went about installing the downloaded packages using dpkg -i. So the process looked like so:   Get URIs wget the packages to a folder (upgrade packages to /upgrade and dist-upgrade packages to /dist-upgrade) run dpkg -i /upgrade/*.deb and then dpkg -i /dist-upgrade/*.deb   My question is: would this method of manually installing the updated packages correctly get everything updated, giving the same result as if I'd just run apt-get upgrade and apt-get dist-upgrade normally? Or is there something that the normal apt-get commands do that wouldn't get done with this way?
35213
I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message:  $sudo apt-get install ffmpeg  Reading package lists... Done Building dependency tree        Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'ffmpeg' has no installation candidate   Why isn't the package available?
9677
Since I upgraded to the latest version of Ubuntu, I cannot install the Java OpenJDK package needed to compile Android custom ROMs. When I run sudo apt-get install openjdk-7-jdk, the following error appears:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  openjdk-7-jdk :  Depends: openjdk-7-jre (= 7u51-2.4.6-1ubuntu4) E: Unable to correct  problems, you have held broken packages.   How do I fix this problem?
119432
I prefer to install my own version of Firefox. How can I tell apt to never attempt to upgrade it, even if i type "apt-get update ; apt-get upgrade" later?  Edit: Okay, so dpkg -l firefox prints this:  ii  firefox   3.0.3+nobinonly-0ubuntu2   meta package for the popular mozilla web browser   So I added this to my prefs:  Package: firefox Pin: version 3.* Pin-Priority: 1000   But apt-get upgrade still prints:  The following packages have been kept back:     (nothing related to firefox) The following packages will be upgraded:     (blah blah blah)     firefox firefox-3.0 firefox-3.0-branding firefox-3.0-gnome-support      firefox-gnome-support     (blah blah blah)   I also tried making the package "*firefox*", but that didn't work either.
69520
How do I update a single package? As far as man apt-get says apt-get upgrade doesn't take a package/list of packages as parameter:     upgrade      upgrade is used to install the newest versions of all packages   currently installed on the system from the sources enumerated in   /etc/apt/sources.list. Packages currently installed with new   versions available are retrieved and upgraded; under no circumstances   are currently installed packages removed, or packages not already   installed retrieved and installed. New versions of currently installed   packages that cannot be upgraded without changing the install status   of another package will be left at their current version. An update   must be performed first so that apt-get knows that new versions of   packages are available.