ubuntu 14.04 上安装 Mysql 出错

ubuntu 14.04 上安装 Mysql 出错

当我尝试在 ubuntu 14.04 上使用此命令安装 mysql 时,出现此错误。请为我提供简单而详细的解决方案,因为我是 ubuntu 新手。

sudo apt-get install mysql-server

Error:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mysql-server : Depends: mysql-community-server (= 5.6.25-3ubuntu15.04) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

您可以尝试完全卸载与 mysql 相关的所有内容。

sudo apt-get purge mysql-community-server mysql-server

然后重新安装 mysql-server。如果这不起作用,请尝试使用 apt 搜索 mysql:

apt-cache search mysql

并尝试为 mysql-server 和 mysql-client 安装另一个版本。

相关内容