Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

This question was marked as an exact duplicate of an existing question.

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

Use -

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

sudo apt-get update

it will resolve your problem.

share|improve this answer

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