gpt4 book ai didi

mysql - 无法在 Ubuntu 14.2 上安装 mysql

转载 作者:行者123 更新时间:2023-11-29 06:23:37 25 4
gpt4 key购买 nike

我在努力

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com