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 unable to install any software using sudo command;

rahul@rahul-VPCEA33EN:~$ sudo apt-get install vlc
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
add comment

2 Answers 2

Run the below commands on terminal to install vlc,

 sudo rm /var/lib/dpkg/lock
 sudo rm /var/lib/apt/lists/lock
 sudo apt-get install vlc
share|improve this answer
    
I'd check WHAT is using the files right now before radically removing lock files. –  Gerald Schneider Nov 12 '13 at 10:59
add comment

That's because you have another process locking that resource, another instance of apt-get in a different terminal or even the graphical software center, synaptics, ubuntu-software-center ...

share|improve this answer
add comment

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.