What to do when 'dpkg --configure -a' does not work?
I recently had trouble with a MySQL installation in Ubuntu. For some reason or the other, during an upgrade to a newer version of mysql-server, the upgrade script had issues stopping the server and the script failed. This meant that apt
could no longer function as it kept raising a red flag over the broken upgrade with the following instructions: