我正在尝试在我的 Linux 机器上安装 mySql 5.6。
我试过
>apt-get install mysql-server-5.6
但我收到以下错误:
mysql-server-5.6 : Depends: mysql-common (>= 5.6.22-1~) but 5.5.50-0+deb8u1 is to be installed
Depends: mysql-server-core-5.6 (= 5.6.30-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我试过:
apt-get install --fix-missing mysql-server-5.6
安装 mysql 5.5 工作正常。
但我遇到了同样的错误
有什么想法如何修复它吗?
我在用:
NAME="Amazon Linux AMI"
VERSION="2016.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2016.03
答案1
发出这组命令来识别并提示纠正软件包安装的边缘情况
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo dpkg --configure --pending
sudo dpkg -C # audit - check for broken packages