3

I tried sudo apt-get update, but got

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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?

Any advice? Let me know if you need any more info.

muru
  • 197,895
  • 55
  • 485
  • 740
Zacccch
  • 39

4 Answers4

3

Problem is solved by manually downloading and updating the apt.

Try to use

  1. http://launchpadlibrarian.net/254524267/apt_1.0.10.2ubuntu2_amd64.deb.

If it shows error while updating then run this following deb file first then the previous one.

  1. http://launchpadlibrarian.net/254524270/libapt-pkg4.16_1.0.10.2ubuntu2_amd64.deb

then run those commands:

sudo apt-get update 
do-release-upgrade
David Foerster
  • 36,264
  • 56
  • 94
  • 147
1

Did you disable the security update repository (wily-security) by any chance?

If so enable it again and run: apt-get update && apt-get -y install apt.

After this you should have the newer apt version installed. Hence, you should now be able to run do-release-upgrade without any issues.

0

This .deb solves the problem. ;)

https://launchpad.net/ubuntu/wily/amd64/apt/1.0.10.2ubuntu2

-2

Try to download and install this package manually:

wget http://launchpadlibrarian.net/254524270/libapt-pkg4.16_1.0.10.2ubuntu2_amd64.deb
apt-get install ./libapt-pkg4.16_1.0.10.2ubuntu2_amd64.deb
N0rbert
  • 99,918