我正在尝试在 Debian 8 上将我的 mysql(当前版本 5.6)更新到 5.7,但是当我到达最后一步时,我收到此错误。
cat /etc/apt/sources.list
给出以下结果:
deb http://ftp.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
这是我到目前为止所做的:
wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
sudo dpkg -i mysql-apt-config_0.7.3-1_all.deb
(I then selected Mysql-server 5.7 during the configuration)
sudo apt-get update
sudo apt-get install mysql-community-sever
输出如下:
The following packages have unmet dependencies:
mysql-community-server : Depends: mysql-client (= 5.7.19-1debian8)
E: Unable to correct problems, you have held broken packages.
我确实尝试执行以下操作:
sudo apt-get clean && apt-get update
但它什么也没做。
我还能做什么来解决这个问题?
编辑
我挖了一点这个“包被保留”的问题,命令apt-mark showhold
没有给出任何结果。
但是,如果我跑
apt-cache policy -o =hold
我得到一个(长)包列表,如下所示:
500http://repo.mysql.com/apt/debian/jessie/mysql-utilities-1.5 amd64 软件包发布 o=MySQL,n=jessie,l=MySQL,c=mysql-utilities-1.5 起源 repo.mysql.com 500http://repo.mysql.com/apt/debian/jessie/router-2.0 amd64 软件包发布 o=MySQL,n=jessie,l=MySQL,c=router-2.0 origin repo.mysql.com 500http://repo.mysql.com/apt/debian/jessie/connector-python-2.1 amd64 软件包发布 o=MySQL,n=jessie,l=MySQL,c=connector-python-2.1 origin repo.mysql.com 500http://repo.mysql.com/apt/debian/jessie/connector-python-2.0 amd64 软件包发布 o=MySQL,n=jessie,l=MySQL,c=connector-python-2.0 origin repo.mysql.com 500http://repo.mysql.com/apt/debian/jessie/mysql-cluster-7.6 amd64 软件包发布 o=MySQL,n=jessie,l=MySQL,c=mysql-cluster-7.6 origin repo.mysql.com 500http://repo.mysql.com/apt/debian/jessie/mysql-cluster-7.5 amd64 软件包发布 o=MySQL,n=jessie,l=MySQL,c=mysql-cluster-7.5 origin repo.mysql.com 500http://repo.mysql.com/apt/debian/jessie/mysql-5.7 amd64 软件包发布 o=MySQL,n=jessie,l=MySQL,c=mysql-5.7
但如果我这样做
apt-mark yarn unhold
Debian 告诉我,yarn(例如)已经被标记为取消保留。