Howto fix “dpkg was interrupted, you must manually run sudo dpkg –configure -a to correct the problem” error

When you install a package using dpkg and somehow you kill the proces, you may encouter the above error. There is an easy solution for that :

Remove the lock files using the following command :

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
cd /var/lib/dpkg/updates
sudo rm *
sudo apt-get update

 

6 Comments

  1. Thanks!!! it works for me in Kubuntu. 😉

  2. It worked! Thanks so much!

Leave a Reply

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