我已经mysql-server
在我的Ubuntu 16.04 LTS上安装了它,它就像一个魅力。
接下来我安装了mariadb-server
和mariadb-client
. 与MySQL存在一些冲突,所以我决定强制卸载所有MariaDB组件。之后我遇到了MySQL的问题。所以我决定强行重新安装MySQL。
我无法卸载mysql-server
,因为卸载MariaDB后存在未满足的依赖项...
所以我尝试了所有可能的组合apt-get
并dpkg
强制删除MySQL和MariaDB的剩余部分......最后,我还手动删除了目录树中的所有文件,其中包含MySQL或MariaDB名称中的任何内容......
$ mysql
The program 'mysql' can be found in the following packages:
* mysql-client-core-5.7
* mariadb-client-core-10.0
Try: sudo apt install <selected package>
但我仍然无法重新安装MySQL,因为缺少与MariaDB相关的依赖项,反之亦然......
$ sudo apt-get install -f mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.22-1ubuntu16.04).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.0 (>= 10.0.34-0ubuntu0.16.04.1) but it is not going to be installed
mariadb-server-10.0 : PreDepends: mariadb-common (>= 10.0.34-0ubuntu0.16.04.1) but it is not going to be installed
Depends: mariadb-client-10.0 (>= 10.0.34-0ubuntu0.16.04.1) but it is not going to be installed
Breaks: mysql-server
mariadb-server-core-10.0 : Depends: mariadb-common (>= 10.0.34-0ubuntu0.16.04.1) but it is not going to be installed
mysql-server : Depends: mysql-community-server (= 5.7.22-1ubuntu16.04) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
实际上我需要在我的系统上安装MySQL,但我无法重新安装 Ubuntu。
请帮我重新安装MySQL。