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?

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