Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem Top ((exclusive))
Here’s a helpful guide to fix the dpkg was interrupted error and get your package manager working again.
What the message means
dpkg (Debian Package Manager) is the low-level tool that installs, configures, and removes .deb packages on Debian, Ubuntu, and derivatives. The message indicates dpkg was stopped mid-operation (power failure, forced shutdown, killed process, or another package tool interrupted it). Because package installation/configuration is transactional and can leave system state inconsistent, dpkg refuses to continue until you explicitly recover. Here’s a helpful guide to fix the dpkg
If you are certain no other update is running in the background, you can manually remove the lock files: and removes .deb packages on Debian
What If That Doesn’t Work?
In rare cases, you might see a new error about a specific package (e.g., post-installation script returned error exit status 1). That means a package’s configuration script is broken. Here’s a helpful guide to fix the dpkg
Step 3: Update package lists and retry
sudo apt update
sudo dpkg --configure -a
Preventing Future Interruptions
Remember:
sudo dpkg --configure -a