E: Could not get lock lock open (11 Resource temporarily unavailable)

1462096800000 Ubuntu Terminal

by Start Bootstrap


You would get this message few times, while you abort the download in your linux based machine. 

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?  

and that is not a risky thing to clear it. 

The reason is beause of the lock placed during installation, Here's how you can do that .

Open the terminal and type the following commands,

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