Failed to lock the package manager

Asked By 30 points N/A Posted on -

Hello experts,


Recently, I installed Ubuntu 10.10 and got the following error message when tried to install anything via Software center. I am not able to start anything and receive this error “Failed to lock the package manager”. I have no any other running software then why am I getting this error? Can I get proper solution to fix this issue? I would be greatly appreciated.


Thanks in advance.

Failed to lock the package manager Check if you are currently running another software management tool, e.g synaptic or aptitude, Only one tool is allowed to make changes at a time. Details The package indexes are currently change by apt-get




Answered By 0 points N/A #168503

Failed to lock the package manager



    It seems like indexes are corrupt. First of all save tasks and close all application. Now from terminal type in:

sudo rm /var/cache/apt/archives/* .

Restart the system. If this does not work, you can try by removing the lock file and creating an empty one with same name.

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

sudo touch /var/lib/apt/lists/lock

sudo apt-get clean

sudo apt-get update

sudo apt-get upgrade

The second approach should work.

Login/Register to Answer

Related Questions