0

I have the following error message:

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?
  • 2
    Duplicate question: http://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process – Brian Z Mar 11 '15 at 07:14
  • that error is as a result of a lock on the package manager.. it appears you already have an installation taking place so wait for the other process to end or kill it and relaunch the PM – Zuko Mar 11 '15 at 07:46
  • If you do not post exactly which command you are using no one will be able to help --- we are in short supply of crystal balls. Are you using sudo, aren't you? – Rmano Mar 11 '15 at 09:08

1 Answers1

0

Either something else is using the package manager (do you have any GUI's such as the software center open? You need to close those!), or you did not run an apt command as sudo. eg.

sudo apt-get upgrade

If you did run the apt command as sudo and there are no other applications using the package manager, try rebooting or logging off & on again.

If you still get this error, you can manually remove the lock, but this is not advised:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
DriesSw
  • 73