Stay up to date on the latest product releases, special offers & news by signing up for our newsletter.
Read our privacy policy.
Fixing the "dpkg was interrupted" Error on Ubuntu and Debian
If you are no other update is running in the background, you can manually remove the lock files:
before starting major system upgrades (like moving from Ubuntu 22.04 to 24.04). Avoid "Force Quit" on software centers or update managers. Fixing the "dpkg was interrupted" Error on Ubuntu
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
If you are still stuck and dpkg refuses to move forward because of a specific corrupted package, you may need to force its removal. Identify the stuck package (the terminal usually names it). Run: sudo apt-get remove --purge [package_name] If you are still stuck and dpkg refuses
If you were in the middle of installing a package or updating your system and your terminal froze, your internet cut out, or your computer lost power, you likely encountered this dreaded message:
This error occurs because the Debian Package Manager (dpkg) keeps a "lock" on its database while it works. When the process is cut short, the database is left in an unstable state, preventing you from installing or removing any other software. When the process is cut short, the database
In most cases, the error message gives you the exact solution. Open your terminal and run: sudo dpkg --configure -a Use code with caution.