我在努力
# sudo apt get install mysql-server-5.6
执行此查询显示
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:
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
mysql-server-5.6 : Depends: mysql-client-5.6 (>= 5.6.19-0ubuntu0.14.04.1) but it is not going to be installed
Depends: mysql-server-core-5.6 (= 5.6.19-0ubuntu0.14.04.1) but it is not going to be installed
Recommends: mysql-common-5.6 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我正在关注这个 tutorial .
如何安装这个???
最佳答案
您必须首先确保您的系统已更新。为此,请运行:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
最后一个命令对于解决这个问题非常重要......我遇到了类似的问题,这个命令就是诀窍
如果这个阶段没有报错,运行:
$ sudo apt-get install mysql-server
如果错误仍然存在,请运行:
$ sudo apt-get -f install mysql-server
注意:不要指定版本
关于mysql - 无法在 Ubuntu 14.2 上安装 mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32200422/