mysql-server:取决于:mysql-server-5.5但是不会安装它

时间:2016-01-07 02:55:37

标签: linux ubuntu-14.04

我在VirtualBox上使用ubuntu 14.04。我尝试使用命令安装mysql-server sudo apt-get install mysql-server,我总是得到如下错误:

Some packages could be installed .This may mean that you have 
request 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 packages have unmet dependencies:
mysqsl-server : Depends: mysql-server-5.5 but it is not going to be installed
E:Unable to correct problems, you have held broken packages.

然后我尝试使用如下命令:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get purge mysql-server*
sudo apt-get install mysql-server

但它仍然是错误的。请帮帮我!

1 个答案:

答案 0 :(得分:1)

您是否尝试过使用

sudo apt-get install -f 

这可以修复损坏的包或清除安装。

如果未使用-f安装mysql-server,则可以尝试以正常方式安装

sudo apt-get install mysql-server -y