我在 VirtualBox 上使用 ubuntu 14.04。我尝试使用命令 sudo apt-get install mysql-server 安装 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
我在使用 mysql-server-5.6 时遇到了同样的问题。为了解决这个问题,我必须删除所有 mysql 包sudo apt-get remove mysql-client mysql-server
,然后重新安装 mysqlsudo apt-get install mysql-server-<version>