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

dpkg --clear-avail erases the old information about what packages are available, forcing the system to build a fresh index when you run sudo apt update . Best Practices to Prevent dpkg Interruptions

In some cases, the dpkg database (stored in /var/lib/dpkg/status ) becomes corrupted. First, make a backup:

sudo dpkg --configure -a --force-all

Restarting the computer during a background update or system upgrade. dpkg --clear-avail erases the old information about what

If you are still seeing errors after running these steps, let me know. Tell me appears after you type sudo dpkg --configure -a , or let me know which package name is causing the crash so we can target it. Share public link

Some users report seeing the error as:

: This is the low-level package manager for Debian-based systems. It installs, removes, and provides information about .deb packages. If you are still seeing errors after running

If that fails, restore from backup:

Then restore the script if needed.

A: No. As long as dpkg reports an interruption, you cannot install, remove, or update any package. System updates and new software installations will be blocked. It installs, removes, and provides information about

sudo rm /var/lib/apt/lists/lock sudo rm /var/lib/dpkg/lock sudo rm /var/lib/dpkg/lock-frontend Use code with caution. Copied to clipboard 🧹 Step 3: Repairing Dependencies

Sometimes a package’s post‑installation script ( .postinst ) fails, causing the interruption. You can locate problematic scripts in /var/lib/dpkg/info/*.postinst and temporarily move them away:

"dpkg was interrupted..." – How to Fix This Error in Linux (Step-by-Step)

If the first command finishes but you still encounter issues when using apt , you may have broken dependencies that need fixing. sudo apt-get install -f Use code with caution. Copied to clipboard