Dpkg — Was Interrupted Ubuntu |top|

Here’s a concise and clear write-up for the error on Ubuntu, including causes, solutions, and prevention.

sudo dpkg --configure -a

Because the process was interrupted, dpkg leaves behind "lock files" to prevent other processes from damaging the system database. The system remains in this locked state until you manually tell it to finish the job or clean up the mess. dpkg was interrupted ubuntu