Dpkg Was Interrupted, You Must Manually Run 'dpkg --configure -a' To Correct The Problem May 2026
After running it, you'll see it process the interrupted package(s). Wait for it to finish—it may take 30 seconds to a few minutes depending on what was interrupted.
sudo rm /var/lib/dpkg/lock-frontend sudo rm /var/lib/dpkg/lock sudo dpkg --configure -a If dpkg --configure -a keeps failing on the same package (e.g., grub-pc or linux-image ), try purging its configuration and reinstalling: After running it, you'll see it process the
sudo dpkg --configure -a It tells dpkg to go back and finish configuring any partially installed packages. After running it