Dpkg Was — Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem [hot]

Or boot into recovery and run fsck if corruption is suspected.

sudo dpkg -i /path/to/dpkg.deb sudo dpkg -i /path/to/apt.deb

sudo apt --fix-broken install

sudo kill -9 [PID_NUMBER]

sudo dpkg --configure -a --force-all

sudo rm /var/lib/dpkg/lock sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock Use code with caution. Copied to clipboard

(Replace package_name with the actual name of the problematic software). Run sudo apt update to refresh your system. Tips to Prevent Future dpkg Interruptions Or boot into recovery and run fsck if

Sometimes a broken package prevents even dpkg --configure -a from completing. Try these steps in order:

Then try your original install or upgrade again. Run sudo apt update to refresh your system

The error message usually tells you exactly what to do. The --configure -a flag tells dpkg to look for any unpacked packages that were never configured and finish the job. Open your terminal ( Ctrl + Alt + T ). Type the following command and hit Enter: sudo dpkg --configure -a Use code with caution. Enter your user password when prompted.

Reconfigure the package database: