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 very new to ubuntu. I have Installed today only. I tried to update software by typing comnmand in Terminal as

pranay@Hom-lnx:~$ sudo apt-get update && sudo apt-get upgrade 
[sudo] password for pranay: 

after giving password I am getting this Error

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?

I tried to search on forum but could not find helpful link..Please provide some suggestion

share|improve this question
add comment

marked as duplicate by raaz, Alvar, Braiam, karel, Eric Carvalho Nov 29 '13 at 13:59

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.

2 Answers

Kindly restart your system. Because your administration directory is locked by other process. So a restart would do the miracle. Hope it helps!

share|improve this answer
    
@Avinash Raj Doing so would remove the lock and hinder the process flow thus, this may lead to fatal error. It is strictly avoided when you are working with production system. –  Ruban Savvy Nov 28 '13 at 11:58
add comment

Use -

sudo rm /var/lib/apt/lists/* -vf 

sudo apt-get update

it will resolve your problem.

share|improve this answer
add comment

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