Skip to main content

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

Because the Package Manager (dpkg) was in the middle of writing files to your system when it stopped, it locks itself to prevent further corruption. Here is how to fix it and get your system back on track. The Quick Fix: The Command in the Error Message

To ensure everything is synced up, finish with a clean-up and a full upgrade: sudo apt autoremove sudo apt upgrade Use code with caution. Why did this happen?

To prevent this error in the future, avoid the following during an update: Because the Package Manager (dpkg) was in the

If dpkg finished configuring but some software is still acting "broken," use the apt fix-broken tool: sudo apt install -f Use code with caution. 4. Clean up and Upgrade

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

How to Fix "dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem"

Are you running into a or a package name that refuses to clear after running these commands? If you’re on a laptop

If you’re on a laptop, ensure you’re plugged in before starting a large dist-upgrade .

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.

--configure -a : Tells the system to look for all packages that were unpacked but not yet fully configured and finish the job. What to do if the Quick Fix fails