如何卸载mysql

如何卸载mysql

我尝试卸载mysql但出现错误

  askaran@jaskaran-OptiPlex-3020:/var/run/mysqld$ sudo apt-get remove --purge mysql-server mysql-client mysql-common
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package 'mysql-client' is not installed, so not removed
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
     libmysqlclient18 : Depends: mysql-common (>= 5.5.49-0ubuntu0.14.04.1) but it is not going to be installed
     libmysqlclient18:i386 : Depends: mysql-common:i386 (>= 5.5.49-0ubuntu0.14.04.1)
     mariadb-common : Depends: mysql-common but it is not going to be installed
     mysql-client-5.5 : Depends: mysql-common (>= 5.5.53-0ubuntu0.14.04.1) but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

尝试sudo apt-get -f install,然后sudo apt-get purge mysql-server mysql-client mysql-common

相关内容