How to fix the dreaded “locked” /var/lib/apt/lists/lock on Linux

On the middle of your terminal enjoyment, had you encountered a “Resource temporarily unavailable” error? Easy fix coming up.

Events that could trigger /var/lib/apt/lists/lock “Unable to lock the list directory”

* Synaptic Manager is open.
* Update Manager is open.

So, how to fix this?

Simple. execute the following command

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

That’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *

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