sudo apt --fix-broken install
The -a (or --pending ) flag instructs dpkg to look for all packages that have been unpacked but are not yet configured, and complete their setup. Method 2: Clear Package Locks
even if a progress bar appears to be stuck at 99% for a few minutes; background configuration scripts take time. sudo apt --fix-broken install The -a (or --pending
sudo apt install --reinstall dpkg
The -a flag tells dpkg to check for all ( -a ) pending configurations and configure them. This will usually allow the interrupted process to resume and complete. This will usually allow the interrupted process to
After running it, dpkg will resume and finish the interrupted configuration. You’ll see output showing which packages it’s configuring. Let it complete.
The dpkg was interrupted error looks scary, but it’s designed to protect your system. One command— sudo dpkg --configure -a —is usually all you need. Let it complete
Often, the error message will tell you which package failed. Purge the package: sudo dpkg --remove --force-remove-reinstreq package_name Use code with caution. (Replace package_name with the actual name of the package.) Clean up: sudo apt update sudo apt install -f Use code with caution. Solution 5: Forcing Removal of Lock Files
Wait until the command prompt line reappears.