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 install cheese

ubuntu@ubuntu:/usr/src/linux-headers-3.5.0-23-generic$ sudo apt-get install cheese
[sudo] password for ubuntu: 

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 to solve this issue please help.

share|improve this question

marked as duplicate by Kevin Bowen, Alaa Ali, Eric Carvalho, guntbert, Warren Hill Sep 20 '13 at 6:00

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.

Reboot and try again. –  Mitch Sep 16 '13 at 7:13
Have a look at this answer: askubuntu.com/questions/15433/… –  soulsource Sep 16 '13 at 7:57

1 Answer 1

You can delete the lock file with the following command:

sudo rm /var/lib/apt/lists/lock

You may also need to delete the lock file in the cache directory

sudo rm /var/cache/apt/archives/lock
share|improve this answer

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