Can't able to install mysql again

Have you tried

sudo dpkg --configure -a

If that fails,
try

dpkg -l|grep mysql-server

to find the Version of mysql you are using. Above it says 8..0, but if your result from dpkg -l above is different, repalce 8.0 with that:

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

sudo dpkg-reconfigure mysql-server-8.0

1 Like