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

If an installation seems "stuck" at 99%, give it a few minutes. Some packages (like kernel updates) take a long time to build in the background.

ls -l /var/backups/dpkg.status.* # locate backups sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status sudo dpkg --configure -a

will restore normal operation. If the problem persists, you can work through the advanced troubleshooting steps we've outlined, including removing stale lock files, repairing corrupted databases, and handling hanging scripts. If an installation seems "stuck" at 99%, give

In most cases, a simple sudo dpkg --configure -a resolves everything and takes only a few seconds to run.

If you tried Step 1 and received an error saying , it means another process is trying to use the package manager, or a previous process didn't exit cleanly. If the problem persists, you can work through

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

If your system is locked and preventing you from installing new software, open your terminal and run the following command. This is exactly what the system is asking you to do: sudo dpkg --configure -a Use code with caution. What this command does: The solution, as the error message clearly states,

If the error persists, corrupted installation files in your local cache might be causing the failure. Clear out the downloaded package files: sudo apt clean sudo apt autoclean Use code with caution.

This guide explains why this error happens, provides step-by-step solutions to fix it, and shows you how to prevent it from happening again. What Causes This Error?

ps aux | grep -E 'apt|dpkg|apt-get|unattended-upgrade' | grep -v grep

Finally, ensure everything is up to date and all packages are correctly installed: