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

I am trying to run sudo apt-get update but getting below mentioned error .. do you think there is any issue with Ubuntu's installation?

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?

Your help is highly appreciated ...Thanks

share|improve this question
1  
Is synaptic running? Is Update Manager running? Is the Software Center updating or installing software right now? –  Thomas W. Jul 16 '13 at 18:22

3 Answers 3

Try this. Make sure that Synaptic, and update manager are not running.

Then, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo rm /var/lib/dpkg/lock
share|improve this answer
1  
It is not a good idea to delete this lock, just make sure that Synaptic and others are not running is sufficient –  Benoît Legat Jul 16 '13 at 19:12

You have many programs that can install software and you can have problem if they try to do it simultaneously. That's where this lock comes handy, it allows the different process not to deal with dpkg at the same time. So just make sure that the Ubuntu Software Center, Synaptic and the Software Updater are closed.

share|improve this answer
    
Just to add that the file could be locked by the automatic update tool (either for refreshing the software cache or installing security updates). –  papukaija Jul 16 '13 at 21:32

You are installing some other programs in the background. Ubuntu only supports one installation at time

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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