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.
How to Fix "dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem"
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
Once the locks are gone, refresh your local database of available software: sudo apt update Use code with caution. 3. Fix Broken Dependencies
Never close the window while a process is running. Once the locks are gone, refresh your local
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
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? If dpkg finished configuring but some software is
sudo rm /var/lib/dpkg/lock-frontend sudo rm /var/lib/dpkg/lock Use code with caution. 2. Update your Package List
The error message itself actually contains the solution. Open your terminal (Ctrl+Alt+T) and run: sudo dpkg --configure -a Use code with caution. sudo : Runs the command with administrative privileges. dpkg : The underlying engine that handles .deb packages.