When I try to install mysql-server, an error comes like:
dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigure
I was in the same situation. After completely removing MySQL, I reinstalled it, killed the PID using port 3306, and reinstalled MySQL again. It's working now.