If you have installed mysql , remove it and give it a try. it worked in my scenario.
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
THIS WILL WIPE ALL YOUR EXISTING DATABASES -->> sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql
sudo apt install mariadb-server mariadb-client
转自