Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem Exclusive May 2026
Fixing the "dpkg was interrupted" Error in Linux If you’ve been managing a Debian-based system like Ubuntu, Linux Mint, or Kali, you’ve likely encountered this daunting terminal message:
- Do not force-kill dpkg – Allow it to finish, even if slow.
- Avoid power loss during updates – Use a UPS or laptop battery.
- Run updates in a
tmuxorscreensession – Resists terminal closure. - Use
aptinstead of directdpkg– APT adds safety checks. - Monitor disk space – A full
/varcan cause silent failures.
This error occurs when a package installation or update process is forcibly stopped (e.g., due to a power outage, crash, or manual interruption), leaving the system's package database in an inconsistent state. To resolve this, follow these steps in order: 1. Run the suggested fix Fixing the "dpkg was interrupted" Error in Linux
Reconfigure the package database:
sudo apt clean sudo journalctl --vacuum-size=100M sudo rm -rf /var/cache/apt/archives/*.deb.old # careful with rm Do not force-kill dpkg – Allow it to finish, even if slow
What happens next?
You should see the system pick up where it left off. It might take a few minutes. If this runs successfully without errors, you can now run your update command ( sudo apt update ) and everything should work. This error occurs when a package installation or
sudo dpkg --configure -asudo apt --fix-broken installsudo apt update