If you identify a package (e.g., broken-package ), try:

sudo apt remove --purge package-name sudo apt install package-name

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:

sudo dpkg --configure -a

First, try rebooting your computer. This usually clears temporary locks.