Monday, May 6, 2019

14.04 - Software updater has crashed


Have been using 14.04 LTS for years with no problems.
Have tried sudo apt-get update and get:


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?


Usually your system or apt is doing some work behind the scenes so when you try to access the /var/lib[apt|dpkg] and the system has a lock on this location you get those errors.


Now to see who or what is holding that lock you can run:


sudo lslocks | grep -E "/var/lib/dpkg/lock"

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...