Ask Your Question
0

sudo apt-get update [closed]

asked 2015-07-08 20:59:23 -0500

Vito 178 gravatar image

updated 2015-07-09 02:26:18 -0500

gvdhoorn gravatar image

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??

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by tfoote
close date 2015-07-09 07:03:05.515322

Comments

1

In addition to the answer given, you can probably have Synaptic package manager open. Close it in that case.

Javier V. Gómez gravatar imageJavier V. Gómez ( 2015-07-09 03:28:40 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-07-08 22:29:27 -0500

allenh1 gravatar image

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.

edit flag offensive delete link more

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.

tfoote gravatar imagetfoote ( 2015-07-09 07:02:57 -0500 )edit

Question Tools

Stats

Asked: 2015-07-08 20:59:23 -0500

Seen: 76 times

Last updated: Jul 09 '15