Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am really New to UBUNTU 14.04 and whenever I try to update or install anything I get this error:

> sudo apt-get update [sudo] password for trojanfm:  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?
share|improve this question

marked as duplicate by Radu Rădeanu, Danatela, Avinash Raj, karel, Jorge Castro Apr 22 '14 at 13:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Probably you run 2 instances of program or you have synaptic or some another package manager. –  2707974 Apr 22 '14 at 7:41
@Parto Thanks it is solved :D –  Yelmaaz Apr 22 '14 at 7:56
Wait for few minutes because apt-get update may have been running in background. This happens when you have just started the ubuntu. Try to run apt-get update, DO NOT DELETE ANYTHING FIRST. –  Drt Apr 11 at 6:12
I found this question instead of duplicate, and also this one helped me and not the linked duplicate one. –  Drt Apr 11 at 6:13

1 Answer 1

search for processes.

ps -A | grep apt-get

then see if there any process running as apt-get

kill that process it by using:

sudo kill -9 <process-id> 

for example if process id is 2345

sudo kill -9 2345

then run the sudo apt-get update

share|improve this answer
I am running no other dpkg program :\ –  Yelmaaz Apr 22 '14 at 7:47
ubuntu automatically check for updates once the system boot up, it is not you, it is the system. –  kushvarma Apr 22 '14 at 7:49
best way is wait for few minutes while it search for update then run your update command or kill apt-get process, and run manually. once the system boots, it automatically runs sudo apt-get update to search for latest update. :) –  kushvarma Apr 22 '14 at 7:51
OKAY,THANKS IT WORKED –  Yelmaaz Apr 22 '14 at 7:51
it should work :) –  kushvarma Apr 22 '14 at 7:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.