我不知道是什么问题,但我很确定在我的MySQL安装中出现了严重的问题。我已经在以下链接中尝试了几乎所有的解决方案:如何修复损坏的包安装(mysql)、如何完全删除MySQL以进行清洁安装、如何完全卸载MySQL?。但不幸的是,什么也没起作用。在尝试每种解决方案时,都会产生一个常见错误,如下所示:
The following packages have unmet dependencies:
libmysqlclient20 : Depends: mysql-common (>= 5.7.20-1ubuntu16.04)
Breaks: libmysqlclient20:i386 (!= 5.7.20-1ubuntu16.04) but 5.7.20-0ubuntu0.16.04.1 is to be installed
libmysqlclient20:i386 : Depends: mysql-common:i386 (>= 5.5)
Breaks: libmysqlclient20 (!= 5.7.20-0ubuntu0.16.04.1) but 5.7.20-1ubuntu16.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).整个错误消息和命令都在这里:
sudo apt-get --yes purge mysql-apt-config mysql-common mysql-
community-server mysql-workbench-community mysql-client mysql-community-client mysql-server mythes-en-us
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libmysqlclient20 : Depends: mysql-common (>= 5.7.20-1ubuntu16.04)
Breaks: libmysqlclient20:i386 (!= 5.7.20-1ubuntu16.04) but 5.7.20-0ubuntu0.16.04.1 is to be installed
libmysqlclient20:i386 : Depends: mysql-common:i386 (>= 5.5)
Breaks: libmysqlclient20 (!= 5.7.20-0ubuntu0.16.04.1) but 5.7.20-1ubuntu16.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).这个错误是特别沉重的,因为dpkg一直在因为它,以及apt-get而起作用。我完全愿意摆脱MySQL,如果这意味着我可以得到这个错误修复。
有人对如何解决这个问题有建议吗?
发布于 2017-11-16 22:23:20
我和你有同样的问题。对我来说,解决方案是使用dpkg删除包:
sudo dpkg --remove --force-all libmysqlclient20:i386
sudo dpkg --remove --force-all libqt4-sql-mysql希望它能帮你..。
https://askubuntu.com/questions/976821
复制相似问题