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

我在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

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

解决方法

你尝试过使用过吗?

sudo apt-get install -f

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

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

sudo apt-get install mysql-server -y

相关文章

文章浏览阅读1.8k次,点赞63次,收藏54次。Linux下的目录权限...
文章浏览阅读1.6k次,点赞44次,收藏38次。关于Qt的安装、Wi...
本文介绍了使用shell脚本编写一个 Hello
文章浏览阅读1.5k次,点赞37次,收藏43次。【Linux】初识Lin...
文章浏览阅读3k次,点赞34次,收藏156次。Linux超详细笔记,...
文章浏览阅读6.8k次,点赞109次,收藏114次。【Linux】 Open...