gpt4 book ai didi

linux - mysql-server :Depends: mysql-server-5. 5 但不会安装

转载 作者:IT王子 更新时间:2023-10-29 00:40:29 25 4
gpt4 key购买 nike

我在 VirtualBox 上使用 ubuntu 14.04。我尝试使用命令安装 mysql-serversudo 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 

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

如果mysql-server没有安装-f,可以尝试正常安装

sudo apt-get install mysql-server -y

关于linux - mysql-server :Depends: mysql-server-5. 5 但不会安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34646649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com