apt-get update not working

Asked by gnaveen garg on 2013-01-11

WHEN I ENTER apt-get update...i get this...

naveen@naveen-Extensa-4620:~$ 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 SHOULD I DO?
THANKS IN ADVANCE

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2013-01-11
Last query:
2013-01-11
Last reply:
2013-01-11

Do you have software centre open?
Do you have updates running?

If so, let it run then close it, if not then try a reboot. If it's still no good then run:

sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

Thanks

gnaveen garg (ngnaven) said : #2

after entering--sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a--I GET THIS

naveen@naveen-Extensa-4620:~$ 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/

gnaveen garg (ngnaven) said : #3

Thanks actionparsnip, that solved my question.