Fix synaptic locked error, and Ubuntu apt manager.

My Linux
Linux

Hello,

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.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.