The Problem: Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct

sudo lsof /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend /var/lib/apt/lists/lock /var/cache/apt/archives/lock

sudo apt --fix-broken install

The error message itself provides the primary solution. Open your terminal and execute: sudo dpkg --configure -a Use code with caution. Copied to clipboard he was met with a stern

The -a (or --pending ) flag means "configure all unpacked but not yet configured packages." unyielding wall of text:

If your computer lost power, crashed, or if you accidentally closed the terminal while step 2 or 3 was happening, dpkg did not finish the job. It effectively "paused" in a state of limbo. he was met with a stern

When Leo rebooted, he tried to install a small game to calm his nerves. Instead of progress, he was met with a stern, unyielding wall of text: