If you have a package in most Linux versions that didn’t install all the way you will get a locked error. I don’t remember how the error is stated. It says synaptic is locked or something like that. Try running this it usually works. Works for Ubuntu package manager to, I have used it on debian and ubuntu and it worked both times. Open a terminal then type or copy and paste these:
sudo rm /var/lib/dpkg/lock
sudo rm -r /tmp/*
sudo dpkg –clear-avail && sudo apt-get update
Remember you won’t see your super user password when you type it.
I have used this on Debian and Ubuntu and it has worked for me. This works with any linux package manager. I have used it on all of them when they were locked.
You must be logged in to post a comment.