Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem — Verified
Sometimes, sudo dpkg --configure -a itself fails. You might see additional errors like Cannot write to lock file or Sub-process /usr/bin/dpkg returned an error code . When that happens, use the following advanced fixes.
Few things are more frustrating than a terminal error that stops you from installing or updating software on Ubuntu or Debian. You run sudo apt install something, and instead of a smooth installation, you get this: Sometimes, sudo dpkg --configure -a itself fails
The most direct way to resolve this is to run the command explicitly mentioned in the error: sudo dpkg --configure -a Use code with caution. Copied to clipboard and instead of a smooth installation
: Restarting while "unattended upgrades" are running in the background. Sometimes, sudo dpkg --configure -a itself fails