Broken MySQL Installation, Cant Install or Uninstall

To reinstall a package you can use

sudo apt-get install mysql-server-5.7 --reinstall

if there is some issues with reconfiguring the package you can use

sudo dpkg-reconfigure mysql-server-5.7

And also check for error logs at var/log/mysql for logs files which may contain clues as to why mysql is not working