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

while an apt or dpkg command is running.

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

Fixing the "dpkg was interrupted" Error on Ubuntu and Debian while an apt or dpkg command is running

If you are no other update is running in the background, you can manually remove the lock files:

If that fails, manually remove the package info: sudo rm -rf /var/lib/dpkg/info/[package_name].* Step 4: Fix Broken Dependencies Fixing the "dpkg

Here is exactly how to fix it and get your system back on track. Step 1: Run the Suggested Command

Run sudo apt-get update and try the configuration command one last time. Why did this happen? To prevent future occurrences, keep these tips in mind: To prevent future occurrences, keep these tips in

The -a (or --pending ) flag tells dpkg to look for any packages that were unpacked but not yet configured and finish the job. Step 2: Clear the Package Cache

The -f stands for "fix-broken." It attempts to repair a system with unmet dependencies. Step 5: The "Nuclear" Option (Use with caution)