Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem ((hot)) Jun 2026
Yes, the correct command is sudo dpkg --configure -a (with two dashes before configure and a space before -a ). Some online sources omit the dashes, but that will not work.
What (if any) is mentioned in the error? Did the command hang or spit out a new error message ? Share public link
Check that /var/lib/dpkg/ has the correct permissions:
By following these steps, you can resolve the error and restore your Linux package management to a healthy state.
Be careful: only kill package management processes if you are sure no critical operation is underway. Yes, the correct command is sudo dpkg --configure
If a package installation is interrupted, some files may have been copied, but the configuration steps (setting up services, updating database entries) were not finished.
sudo apt update
This error typically appears when you try to install, remove, or update software using apt , apt-get , or a graphical package manager like Software Center or Synaptic. It effectively blocks any further package management operations until the issue is resolved.
A lack of system resources (like RAM or CPU) caused the installation script to lock up. Did the command hang or spit out a new error message
The solution, as the error message clearly states, is to run:
Sudden battery death during a system update is a common cause. Plug in your laptop before running large upgrades.
Move or delete the scripts related to the broken package (replace package-name with the actual name shown in your terminal error): sudo mv /var/lib/dpkg/info/package-name.* /tmp/ Use code with caution.
| Error Message | Likely Solution | |---------------|----------------| | Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? | Remove lock files (as shown above) or kill other apt processes. | | E: Sub-process /usr/bin/dpkg returned an error code (1) | Run sudo dpkg --configure -a , then sudo apt --fix-broken install . | | dpkg: error: parsing file '/var/lib/dpkg/status' near line ... | Restore a backup of the status file or regenerate from logs. | | Could not get lock /var/lib/apt/lists/lock | Remove the lock with sudo rm /var/lib/apt/lists/lock . | If a package installation is interrupted, some files
Avoid running system updates on a laptop unless it is plugged into a power source.
Essentially, sudo dpkg --configure -a completes the work that was interrupted. It picks up where the previous operation left off.
You accidentally close the terminal window or press Ctrl + C during an active installation.