Dpkg Was Interrupted, You Must Manually Run 'sudo Dpkg --configure -a' To Correct The Problem 2021 <LEGIT · ANTHOLOGY>
It tells the package manager to go back and "configure" any packages that were left half-finished. It picks up the pieces, finishes the installation scripts, and removes the lock.
Example: If the PID is 1234, run sudo kill -9 1234 . It tells the package manager to go back
ps aux | grep -i dpkg
It cannot do two things at once. To prevent chaos, it creates a "lock file" whenever it is working. Think of this like a "Do Not Disturb" sign on a hotel room door. finishes the installation scripts
sudo dpkg --configure -a