mysql - 无法在 Ubuntu 14.2 上安装 mysql

标签 mysql ubuntu

我在努力

# 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/

相关文章:

php - 修改并添加到 MySQL 结果

MySQL 连接器和日期类型 0000-00-00

python - 在 ubuntu 12.04 32 位中使用 cxfreeze 时出现类型错误

perl - 如何在 Ubuntu 中安装 ROUGE

c - 在 C 语言的 Ubuntu 上,多个线程不能同时工作

带通知的 MySQL 备份脚本

mysql - 如何将 where 子句添加到总和中?

mysql - Rails 表单未写入数据库

docker - kubectl 在 mac 上的 docker 容器中失败,出现 "Unable to connect to the server: EOF"但在 linux 上没有

ubuntu - 将 PuTTYgen 中生成的另一个 key 附加到authorized_keys 文件