View Full Version : [ubuntu] apt-get problem

March 28th, 2009, 07:16 PM
"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?"

I get this message in terminal, it's obvious that there is another package manager being used, however I don't know what it is! I've previously used the commands 'aptitude' and 'apt-get' but thought the processes had finished.

Question: How can I find out what the conflicting process is and terminate it?

March 28th, 2009, 07:31 PM
Do you have Synaptic or Add/Remove open?

Chemical Imbalance
March 28th, 2009, 07:32 PM
Also make sure that the automatic update icon is not active on your panel.

March 28th, 2009, 07:32 PM
Do you have the synaptic package manager or the Add / Remove package manager open when you are using apt-get? I have seen this when I forgot to close synaptic before using apt-get.

EDIT: Well, I guess we were all looking at this one. There were no replies when I started typing!

March 28th, 2009, 09:02 PM
dpkg, apt-get, aptitude, Synaptic, or Add/Remove, could all be causing it. But if you're certain you aren't running any of these, or something else, remove the lock file manually:

sudo rm /var/lib/dpkg/lock