I have problems with apt-get update once in a while. This error is shown sometimes I try to run this command:
sudo apt-get update
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?
What's going on? I'd like to know the problem and solve it. It's solved once I restart my pc though, but I would like to know what is this error. Thanks.
apt
is already running and claimed the package index files. Maybe you have anotherapt-get
command running in another terminal? But also the Software Updater process that automatically starts a few minutes after boot or Software Center, Synaptic, ... useapt
and can therefore cause this problem. Make sure you don't have any package management processes open in foreground and wait a while until background processes like the automatic updater have finished.