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

The recommended solution to resolve the "dpkg was interrupted" error is to manually run the command:

Now that you’re equipped to handle this error, you can confidently manage your Debian or Ubuntu system without fear of the dreaded dpkg interruption.

sudo apt --fix-broken install

When dpkg is forcibly terminated during a transition from unpacked to installed , the state becomes inconsistent. The recommended solution to resolve the "dpkg was

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

The solution, as the error message clearly states, is to run:

dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. The solution, as the error message clearly states,

sudo rm /var/lib/dpkg/lock-frontend sudo rm /var/lib/dpkg/lock Use code with caution. 2. Update your Package List

If the terminal is still stuck, your local package cache might be corrupted. Clear the broken package files and force the system to sync with online repositories: sudo apt-get clean sudo apt-get update Use code with caution. Step 4: Fix Missing Dependencies

This command attempts to correct missing dependencies, conflicting packages, or half-installed software. Update your Package List If the terminal is

Hardware faults or out-of-memory errors caused the terminal to crash. Step-by-Step Solutions Step 1: The Standard Fix (Run the Automated Repair)

-a (or --pending ): Tells it to process pending packages currently in that broken state.

The error message itself provides the primary solution. Open your terminal and run the suggested command to let dpkg finish its interrupted work. sudo dpkg --configure -a Use code with caution. What this command does: sudo : Grants administrative privileges. dpkg : Invokes the Debian package manager.