dpkg was interrupted. You must manually run 'sudo dpkg --configure -a' to correct the problem.
✅
sudo apt update sudo dpkg --configure -a dpkg was interrupted
Because the package manager cannot verify the integrity of the previous operation, it initiates a fail-safe lock to prevent further damage or dependency conflicts. Once the error is cleared, it is good
Once the error is cleared, it is good practice to ensure your entire system is up to date and consistent: sudo apt update && sudo apt upgrade The -a (or --pending ) attribute tells it
Check if another package manager (like Synaptic, Software Center, or apt itself) is running. Close all other update/install tools and try again.
The --configure flag tells the package manager to set up packages that have been unpacked but not yet configured. The -a (or --pending ) attribute tells it to process all currently unconfigured packages. 2. If the First Command Fails: Fix Broken Dependencies