[Xubuntu Error] - E: Could not get lock /var/lib/dpkg/lock

E: Could not get lock /var/lib/dpkg/lock

Last night when i try to run sudo apt-get install and apt-get update command on my xubuntu, i always get an error like this:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

The error message indicates that there might other program that using sudo, but the fact is currently there is no other program that using sudo.

The solution for this problem is deleting the /var/lib/dpkg/lock file.
sudo rm /var/lib/dpkg/lock

Everything should be normal now, you can use the sudo command again.

Share this

Previous
Next Post »