Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Asked by greg white

as you can see this is the message i get when trying to get updates
  GPG error: http://packages.medibuntu.org maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
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 would be using it? Ubuntu 10.10
regards greg

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a; sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 2EBC26B60C5A2783

Should do it

Make sure that updates are NOT running and that software centre and synaptic are NOT running

Revision history for this message
greg white (coffscarports) said :
#2

Thanks actionparsnip, that solved my question.