"could not get lock /var/lib/apt/lists/lock" problem

Some time when we run sudo apt-get update command we see the following error message:

sudo apt-get update && sudo apt-get upgrade
 Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)

One possible reason for this error is that you are probably running synaptic package manager or some installation is still going on on software manager or some where some installation or update or up-gradation is going on in system.
But some time you find that nothing is going on but it still showing same problem. Then you can solve the problem using following command

sudo rm /var/lib/apt/lists/* -vf 
sudo apt-get update && sudo apt-get upgrade

Now your update should start properly.

Cheers
A.Paul

Comments

Popular posts from this blog

Changing caption width in latex

Subtitle in latex

Placing float (table or figure) at the top of the page in otherwise empty page in LaTeX