Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem «Authentic ›»
To remove these stuck locks, run the following commands one by one:
-a : Applies the action to pending, unconfigured packages.
sudo dpkg --audit sudo dpkg --configure -a
The error message usually tells you exactly how to fix it. This command instructs dpkg to audit the package database and finish configuring any partially installed software. Open your terminal and type: sudo dpkg --configure -a Use code with caution. To remove these stuck locks, run the following
When in doubt, read the error message carefully. Often, Linux tells you how to fix the problem.
What were you trying to install when it crashed?
Wait until the command prompt line reappears. Open your terminal and type: sudo dpkg --configure
(if you know which one is stuck):
In rare cases where a post-install script fails, one can:
If a specific software package is completely corrupted, it will repeatedly block the dpkg configuration. You need to force-remove that specific package. What were you trying to install when it crashed
The error message itself provides the solution: running sudo dpkg --configure -a . This command reconfigures all packages that were interrupted or not fully configured.
Your computer shuts down or loses power mid-update.
If you are still experiencing issues after trying these steps, you may need to check the log files at /var/log/dpkg.log for more specific errors. If this did not work, I can help you: for the specific error Perform a clean reinstall of dpkg Fix broken APT repositories Let me know how you'd like to proceed . E: dpkg was interrupted, you must manually run 'sudo dpkg
If dpkg finishes configuring but you still encounter errors when trying to install new software, your package dependency tree might be broken. You can force the Advanced Package Tool ( apt ) to audit and fix these missing pieces. Execute the following command: sudo apt install -f Use code with caution. (Note: sudo apt-get install -f works identically).