0

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

Avinash Raj
  • 80,446
Pankaj
  • 3

2 Answers2

0

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

Ruban Savvy
  • 158
  • 10
0

Use -

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

sudo apt-get update

it will resolve your problem.

Sukupa91
  • 3,067