Wait for the process to complete. It may take some time depending on how many packages were interrupted. ๐ Why Did This Happen?
Then reconfigure each one by its name:
sudo dpkg --remove --force-remove-reinstreq foobar sudo apt clean sudo apt update sudo apt install foobar
Install debsums (if you can run any apt command now) and check for corrupted package files: Wait for the process to complete
Title: "How to Fix 'dpkg was interrupted you must manually run sudo dpkg configure to correct the problem' Error on Ubuntu/Debian"
After reboot, the system will check the root filesystem. Remove the /forcefsck file afterward.
Youโll likely see lines containing apt , apt-get , dpkg , or unattended-upgrades . Note the (second column). Then kill the process gracefully: Then reconfigure each one by its name: sudo
While this error is highly fixable, prevention saves time and protects your system from potential data corruption.
Fixing the "dpkg was interrupted" Error in Linux: A Complete Guide
The error message provides the direct solution. Opening your terminal and running this command instructs the package manager to finish the configuration of all unpacked but unconfigured packages. sudo dpkg --configure -a Use code with caution. Copied to clipboard for the process to complete entirely. Do not interrupt Note the (second column)
Which (e.g., Ubuntu 24.04, Debian 12) are you using?
Let me write. How to Fix "dpkg was interrupted you must manually run sudo dpkg configure to correct the problem" on Ubuntu/Debian
sudo dpkg --configure -a
Search for the name of the stuck package (e.g., using Ctrl + W in nano). If you are an advanced user, you can remove its block, or alternatively force a removal through the command line: sudo dpkg --remove --force-remove-reinstreq Use code with caution.
We will start with the easiest and most direct solution (which is usually all you need) and progress to more advanced troubleshooting steps if your system is severely stuck. Method 1: The Standard Fix (Run the Suggested Command)