从Ubuntu 16.04卸载Mysql 5.7

前端之家收集整理的这篇文章主要介绍了从Ubuntu 16.04卸载Mysql 5.7前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在ubuntu 16.04中遇到 mysql 5.7的问题,当涉及到给予用户权限时,所以我想重新安装它,但是当我输入删除MysqL的命令时,我得到以下消息
nato@nato-Compaq-Presario-CQ61-Notebook-PC:~$sudo apt-get remove --purge MysqL-server MysqL-client MysqL-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 dbconfig-MysqL : Depends: MysqL-client but it is not going to be installed or
                  mariadb-client but it is not going to be installed or
                  virtual-MysqL-client

E: Error,pkgProblemResolver::Resolve generated breaks,this may be caused by held packages.

我也尝试了以下命令,但结果相同

sudo apt-get remove --purge MysqL*
sudo apt-get autoremove
sudo apt-get autoclean
答案在于错误本身.

dbconfig-MysqL:取决于:MysqL-client但它不会被安装或mariadb-client但是它不会被安装或者是mys-MysqL-client

第一步是删除不允许删除MysqL包的依赖项.

sudo apt-get remove dbconfig-MysqL
sudo apt-get remove --purge MysqL*
sudo apt-get autoremove
sudo apt-get autoclean
原文链接:https://www.f2er.com/ubuntu/347693.html

猜你在找的Ubuntu相关文章