I am unable to upgrade Ubuntu from 16.04 to 16.10.   Error message:  Failed to lock /var/cache/apt/archives/lock   There are numerous answers on how to fix it. I tried all. But no success. Can anybody help?  Existing posts on the same topic:         Error Message:  Calculating the changes     Calculating the changes Do you want to start the upgrade?      10 installed packages are no longer supported by Canonical. You can  still get support from the community.  16 packages are going to be removed. 293 new packages are going to be  installed. 1842 packages are going to be upgraded.  Installing the upgrade can take several hours. Once the download has  finished, the process cannot be canceled.   Continue [yN]  Details [d]y Fetching Fetched 0 B in 0s (0 B/s)                                    Upgrading Could not download the upgrades  The upgrade has aborted. Please check your Internet connection or  installation media and try again.   Failed to lock /var/cache/apt/archives/lock   Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety", line 8, in &lt;module&gt;   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeMain.py", line 242, in main   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1880, in run   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1263, in doDistUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1385, in abort   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/sourceslist.py", line 366, in restore_backup   File "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   File "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.S_IMODE(st.st_mode)) PermissionError: [Errno 1] Operation not permitted: '/etc/apt/sources.list' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 109, in apport_excepthook     pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])   File "/usr/lib/python3/dist-packages/apport/report.py", line 544, in add_proc_info     self['ExecutableTimestamp'] = str(int(os.stat(self['ExecutablePath']).st_mtime)) PermissionError: [Errno 13] Permission denied: '/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety'  Original exception was: Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety", line 8, in &lt;module&gt;   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeMain.py", line 242, in main   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1880, in run   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1263, in doDistUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1385, in abort   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/sourceslist.py", line 366, in restore_backup   File "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   File "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.S_IMODE(st.st_mode)) PermissionError:  [Errno 1] Operation not permitted: '/etc/apt/sources.list'
3087
I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?
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:~$
55673
Earlier, I had a problem with a package, and I (wrongly) ran this:  rm -r /var/lib/dpkg/*   See also .  Now when I try to upgrade, I get this:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? masoud@masoud-PC:~$ sudo apt-get upgrade  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   and when I use: sudo dpkg --configure -a   I get this:  dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory     and for sudo apt-get upgrade -f get:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch but it is not installable  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu5) but it is not installable E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies
35229
I have just booted my clean Ubuntu 18.04 LTS VM and tried to install some application with sudo apt install.  But got error message:     E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)       E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   What process created the /var/lib/dpkg/lock-frontend file in Ubuntu? How to gently stop it and take manual control on APT?
34562
Last night I was updating my Ubuntu 10.04 to either 11.04 or 12.04 (I'm not entirely sure which one it was, but I think it was 11.04) and I left it overnight to finish. When I came down in the morning, I noticed that the computer hadn't barely begun installing the updates! The update thing said that my computer was on the installation step, but it was still preparing the libc bin (or whatever its called) . It's like the first part of the step installing the upgrades. So, I stupidly restarted the computer, and when it rebooted, I got five options on a purple screen:  Ubuntu, with Linux 3.0.0-28-generic Ubuntu, with Linux 3.0.0-28-generic (recovery mode) Previous Linux versions Memory test (memtest86+) Memory test (memtest86+, serial console 115200)   Long story short, not matter which way I enter Ubuntu to try and reinstall the updates using the root thing (it's like terminal) after I enter sudo apt-get update it basically said it failed to fetch every url link, and it then says:  W: Some index files have failed to download. They have been ignored, or old ones used instead. W: Not using locking for read only lock file /var/lib/dpkg/lock E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.   So, I entered sudo dpkg --configure -a, and it says:  dpkg: error: unable to access dpkg status area: Read-only file system"   I'm left like wtf, and I really just some guidance here. I just got this laptop, and I can not afford a new one if I broke this one.
112177
I'm running an Ubuntu 18.04 server and was trying to disable every update and upgrade there is but am still not quite sure on what exactly to do. Ignoring the security aspect that comes with it, how do I disable automatic updates for Ubuntu 18.04, MySQL, Apache and PHP via command line?  As far as I know, MySQL Apache and PHP should not automatically update when I disable automatic updates / package list updating on Ubuntu, is that correct?  For Ubuntu, the only things I found were in /etc/apt/apt.conf.d/10periodic :  APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0";   which I would set to 0.   APT::Periodic::Update-Package-Lists "1"; set to 0 basically makes it impossible for any package / software e.g. MySQL Apache and PHP to update, right?  And in /etc/apt/apt.conf.d/50unattended-upgrades :  Unattended-Upgrade::Allowed-Origins {           "${distro_id}:${distro_codename}";           "${distro_id}:${distro_codename}-security";           "${distro_id}ESM:${distro_codename}"; //        "${distro_id}:${distro_codename}-updates"; //        "${distro_id}:${distro_codename}-proposed"; //        "${distro_id}:${distro_codename}-backports"; };   In there, I would just comment out line 2-4.  Anything else I would need to do or are all automatic updates / upgrades disabled after this?
42969
I've installed ubuntu 17.04 and I want to upgrade it to 18.04. When I tried to do:   sudo do-release-upgrade   I got a message saying An upgrade from 'zesty' to 'bionic' is not supported with this tool. Need inputs to proceed on this.  sudo do-release-upgrade Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  Get:1 Upgrade tool signature [819 B]                                            Get:2 Upgrade tool [1,257 kB]                                                   Fetched 1,258 kB in 0s (0 B/s)                                                  authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'  extracting 'bionic.tar.gz'  Reading cache  Checking package manager  Can not upgrade   An upgrade from 'zesty' to 'bionic' is not supported with this tool.
83188
I've got an Ubuntu 8.04 LTS server.  There are several packages which are "kept back" ("the following updates have been kept back") when I do an apt-get upgrade.  It's my understanding that I can do an apt-get dist-upgrade to upgrade these packages, but I have a few concerns:   If I do a dist-upgrade, will I be upgrading from 8.04 to higher version (8.10 I guess)?  If so, what's the point of 8.04 being "Long Term Support" (LTS)? Is this a "dangerous" process?  I'm assuming that packages are kept back because there are new packages that they depend on.  Does dist-upgrade simply pull the new packages and do a fairly straightforward upgrade, or are there caveats to look into?
122338
When I try to install updates from the update manager it says:  Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-3.0.0-13-generic_3.0.0-13.22_i386.deb   Size mismatch   I have tried several times and through terminal too but the size mismatch repeats itself there too. What is this size mismatch error?  I also tried sudo apt-get update and sudo apt-get upgrade, but the error comes again.  Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/x/xserver-xorg-video-intel/xserver-xorg-video-intel_2.15.901-1ubuntu2.1_i386.deb   Size mismatch   E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
95
The error I am having when trying to update my package list.  W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333  W: Failed to fetch http://ppa.launchpad.net/samrog131/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.
31275
I cannot install any package. It seems the command apt-get update must be run but it throws some errors:  $ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]      Hit:2 http://ve.archive.ubuntu.com/ubuntu xenial InRelease                      Hit:3 http://ve.archive.ubuntu.com/ubuntu xenial-updates InRelease              Hit:4 http://ve.archive.ubuntu.com/ubuntu xenial-backports InRelease            Fetched 102 kB in 23s (4337 B/s)                                                *** Error in `appstreamcli': double free or corruption (fasttop): 0x000000000210f4b0 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fac8d8317e5] [...] Aborted (core dumped) Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success   'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;   then appstreamcli refresh &gt; /dev/null; fi' E: Sub-process returned an error code
55281
I decided to update to Oneiric using the update manager. At some point, I got this message:     The upgrade has aborted. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a).   Then, later on:     The upgrade has completed but there were errors during the upgrade process.   What can I do?  EDIT: Update manager offers to perform a 'Partial Upgrade'. "865 updates have been selected. The updates have already been downloaded, but not installed". It still gives the option to upgrade to 11.10
57787
When I upgrade from one version of Ubuntu to the next, the upgrade tool rightly disables all my PPAs, so that software compiled for or otherwise tied to the old version of Ubuntu does not interfere with the new version that I just upgraded to.  Is there any way to automatically re-enable and update any PPAs that provide packages for the new version of Ubuntu? For example, suppose I'm currently running Maverick, and I have two PPAs enabled, "foo" and "bar". Suppose that "foo" provides packages for both Maverick and Natty, while "bar" provides packages for Natty only. Is there a tool I could run after updating to Natty that would re-enable my "foo" PPA and update it to point to the Natty packages, while leaving the "bar" PPA disabled?
104743
My Ubuntu has a problem with the Ubuntu Software Center and I can't solve it, but I'd like to try the new version of Ubuntu, 13.10.  I'm using Ubuntu 12.04, can I upgrade to 13.10 how can I do that? Its not dublicate :)
19570
sudo apt update &amp;&amp; sudp apt upgrade -y now shows the error message E:The package linux-modules-5.4.0-56-generic needs to be reinstalled. But I can't find an archive for it.  and nothing proceeds. How can I fix this problem? Thanks.
52300
I'm trying to update and upgrade my kubuntu 15.04. After trying to install all upgrades, I got the following error message:  The following extra packages will be installed: kde-config-telepathy-accounts The following packages will be upgraded: kde-config-telepathy-accounts 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/122 kB of archives. After this operation, 1.948 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 626049 files and directories currently installed.) Preparing to unpack .../kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb ... Unpacking kde-config-telepathy-accounts (15.04.0-0ubuntu1~ubuntu15.04~ppa1) over (0.9.0-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb (--unpack): trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+15.04.20150415.1-0ubuntu2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) E: Sub-process /usr/bin/dpkg returned an error code (1)   How can I fix this problem?
61120
I've been trying to upgrade my installation of Ubuntu 9.04 to 9.10, but all of the instructions I've found haven't been helping. They mostly say to run the update manager and it'll tell you that there's a new distribution ready. Well, mine doesn't say that.  Things I've run or checked:   update-manager -d says:     Your system is up-to-date   The package information was last updated less than one hour ago.  I've set it to get all new distributions, not just LTS  $ cat /etc/update-manager/release-upgrades [DEFAULT] # default prompting behavior, valid options: #  never  - never prompt for a new distribution version #  normal - prompt if a new version of the distribution is available #  lts    - prompt only if a LTS version of the distribution is available Prompt=normal  I'm definitely running 9.04  $ lsb_release -r Distributor ID: Ubuntu Description:    Ubuntu 9.04 Release:        9.04 Codename:       jaunty  Even running the release upgrade from console doesn't help:  $ sudo do-release-upgrade  Checking for a new ubuntu release No new release found    This is running from behind a proxy, but I've set it up such that the regular upgrades and apt-get etc doesn't complain. (export http_proxy=http://myuser:mypass@myserver:8080/)  Could you think of anything else which might be stopping me from upgrading?