Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem May 2026

The error message "dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem" is a safety mechanism in Debian-based systems (like Ubuntu, Kali, and Linux Mint) indicating that a package installation or update process was stopped before it could finish. What the Error Means

Clear Corrupted Update FilesIf the error persists due to a corrupted package file, you may need to clear the updates directory: cd /var/lib/dpkg/updates sudo rm * sudo apt-get update Use code with caution. Copied to clipboard The error message "dpkg was interrupted, you must

Fix 3: Force Overwrite (If a package post-installation script fails)

Sometimes, a specific package's post-installation script (postinst) is crashing. Dpkg will try to run it and fail repeatedly. To fix this, you need to forcibly reinstall or remove the offending package. If a specific package is causing the failure,

sudo dpkg --configure -a
  1. If a specific package is causing the failure, note its name from dpkg’s error output and try:

To ensure everything is synced up, finish with a clean-up and a full upgrade: sudo apt autoremove sudo apt upgrade Use code with caution. Why did this happen? To ensure everything is synced up, finish with

After running that, you should be able to use apt normally again.