sudo apt-get update
I tried to update using the sudo apt-get update
command in ubuntu 12.04 it gives me an error
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?
can anyone help me how to solve this problem??
Asked by Vito 178 on 2015-07-08 20:59:23 UTC
Answers
You have two instances of apt-get
running right now. Are you installing anything using dpkg
? If not, and only if you're sure you're not, you can do the following.
sudo rm -f /var/lib/dpkg/lock
But I do not recommend it. Patience is probably the answer.
Asked by allenh1 on 2015-07-08 22:29:27 UTC
Comments
Or it could be synaptic or any other apt management tool, including Software Updater. Thiis is a generic Ubuntu problem. I'm going to close as off topic. If you need more help please use http://askubuntu.com I suggest searching first.
Asked by tfoote on 2015-07-09 07:02:57 UTC
Comments
In addition to the answer given, you can probably have Synaptic package manager open. Close it in that case.
Asked by Javier V. Gómez on 2015-07-09 03:28:40 UTC