Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem Top =link= -
The error is a common safety mechanism in Debian-based systems like Ubuntu and Linux Mint. It signals that a software installation or system update was cut short—often by a sudden power loss, a forced terminal closure, or a system crash—leaving packages in a "half-configured" state. How to Fix the "dpkg was interrupted" Error 1. The Direct Fix
sudo rm /var/lib/dpkg/lock-frontend sudo rm /var/lib/dpkg/lock Use code with caution. After removing these, run sudo dpkg --configure -a again. Step 4: Fix Broken Dependencies
: Stands for "all." It fixes every package currently in a broken state. 🚧 Step 2: Clearing Locks
The error is a safety mechanism in Debian-based systems like Ubuntu, Linux Mint, and Kali. It indicates that a previous installation or update was cut short, leaving packages in a half-configured state. 🛠️ The Primary Fix The error is a common safety mechanism in
sudo dpkg --configure -a
In most cases, running the exact command suggested by the system will resolve the issue by finishing the pending configurations: Open your (Ctrl+Alt+T).
sudo dpkg --configure -a
Here’s a quick cheat sheet of all the commands mentioned:
If Method 1 gives you an error saying the status database is locked, or that another process is using it, it means a broken background process is still holding onto the package files. You need to safely clear these locks.
If you must perform long package operations over SSH, use tmux or screen . If your connection drops, the session continues in the background. Reattach later and let dpkg finish. The Direct Fix sudo rm /var/lib/dpkg/lock-frontend sudo rm
Then try running:
The error appears when a previous dpkg operation was before it could complete. Common interruptions include: