Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I execute

apt-get install libboost-dev

it gives

sudo  apt-get install libboost-dev
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?

How can I resolve this?

share|improve this question

1 Answer 1

Are you running Synaptic, the Software Centre or another program which manages packages? Then close these. Then the lock will get unlocked.

If that's not working, try running the following commands to clean the packaging tool:

sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get clean
share|improve this answer
    
I tried all this nothing working ? giving the same reason sudo apt-get autoremove 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? abc@abc:/exports/librrrr/cpp-netlib-0.9.4$ sudo apt-get autoclean E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory abc@abc:/exports/librrrr/cpp-netlib-0.9.4$ sudo apt-get clean –  user2416991 May 28 '13 at 9:05
    
Done a system restart already? That's probably the most easy way since that also removes any locks. Otherwise you have to find the process which is locking etc. –  Nick van Tilborg May 28 '13 at 9:09
    
how can I check it? –  user2416991 May 28 '13 at 9:09
    
Never done it myself, because I never needed to, but you can take a look here. –  Nick van Tilborg May 28 '13 at 9:13

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.