无法纠正问题,您持有损坏的 MYSQL 软件包

无法纠正问题,您持有损坏的 MYSQL 软件包

我尝试安装:sudo apt install mysql-server

但有类似这样的错误:

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-server-5.5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我该如何解决这个错误?

答案1

安装能力:

sudo apt-get install aptitude

然后执行以下命令。

sudo aptitude install mysql-server

相关内容