Dpkg Was Interrupted, You Must Manually Run 'dpkg --configure -a' To Correct The Problem Better Info

sudo dpkg --configure -a It tells dpkg to go back and finish configuring any partially installed packages.

You should now be able to install software normally. What If That Doesn't Work? In rare cases, you might see a different error after running dpkg --configure -a . Here are two common follow-up problems and their fixes. Case 1: "Unable to lock the administration directory" If you see: sudo dpkg --configure -a It tells dpkg to

sudo apt install -f This second command fixes any broken dependencies left behind. In rare cases, you might see a different

sudo dpkg --configure -a sudo apt install -f Run those two commands, and you'll be back to installing software in under a minute. Have a different package manager error? Let me know in the comments—I've probably seen it. sudo dpkg --configure -a sudo apt install -f

E: Could not get lock /var/lib/dpkg/lock-frontend Another package manager is running. Close the Software Center, Synaptic, or other terminal windows. Then try again.