Check that /var/lib/dpkg/ has the correct permissions:
sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.bak
Now that you’re equipped to handle this error, you can confidently manage your Debian or Ubuntu system without fear of the dreaded dpkg interruption.
If Step 1 gives you a secondary error like "Could not get lock /var/lib/dpkg/lock" , it means a crashed process still claims it is working on the database. You need to manually remove these artificial safety blocks:
sudo chown -R root:root /var/lib/dpkg/ sudo chmod -R 755 /var/lib/dpkg/
Sometimes, running the command above isn't enough. If dpkg finished configuring but your packages are still arguing with each other, run the following command to fix broken dependencies:
dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
In most cases, the error will be gone. But if the error persists or you see a different message, proceed to the next section.
ls -l /var/backups/dpkg.status.* # locate backups sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status sudo dpkg --configure -a
If the standard command freezes, errors out, or fails to run, use these advanced steps to clear out the corruption. Fix 1: Clear the Package Manager Lock Files
while an active installation ( apt or dpkg ) is running.
If a specific software package is causing the loop and refusing to configure, you can force remove that single package to unstick the system.
while an active installation or update is running.
Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem [ GENUINE ]
Check that /var/lib/dpkg/ has the correct permissions:
sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.bak
Now that you’re equipped to handle this error, you can confidently manage your Debian or Ubuntu system without fear of the dreaded dpkg interruption.
If Step 1 gives you a secondary error like "Could not get lock /var/lib/dpkg/lock" , it means a crashed process still claims it is working on the database. You need to manually remove these artificial safety blocks: Check that /var/lib/dpkg/ has the correct permissions: sudo
sudo chown -R root:root /var/lib/dpkg/ sudo chmod -R 755 /var/lib/dpkg/
Sometimes, running the command above isn't enough. If dpkg finished configuring but your packages are still arguing with each other, run the following command to fix broken dependencies:
dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. If dpkg finished configuring but your packages are
In most cases, the error will be gone. But if the error persists or you see a different message, proceed to the next section.
ls -l /var/backups/dpkg.status.* # locate backups sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status sudo dpkg --configure -a
If the standard command freezes, errors out, or fails to run, use these advanced steps to clear out the corruption. Fix 1: Clear the Package Manager Lock Files ls -l /var/backups/dpkg
while an active installation ( apt or dpkg ) is running.
If a specific software package is causing the loop and refusing to configure, you can force remove that single package to unstick the system.
while an active installation or update is running.