正在运行 apt 升级,
The following packages have been kept back:
libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5
我目前正在运行 percona mysql 5.5.15-55-log
尝试sudo apt-get install percona-server-server-5.5
我得到:
The following packages have unmet dependencies:
percona-server-server-5.5 : Depends: percona-server-client-5.5 (>= 5.5.17-rel22.1-197.squeeze) but 5.5.15-rel21.0-160.squeeze is to be installed
我不知道接下来该如何继续。
Z 的更多内容:
# apt-cache policy percona-server-client-5.5
percona-server-client-5.5:
Installed: 5.5.15-rel21.0-160.squeeze
Candidate: 5.5.17-rel22.1-197.squeeze
Version table:
5.5.17-rel22.1-197.squeeze 0
500 http://repo.percona.com/apt/ squeeze/main amd64 Packages
*** 5.5.15-rel21.0-160.squeeze 0
100 /var/lib/dpkg/status
当我跑步时apt-get install percona-server-server percona-server-client
Get:1 http://repo.percona.com/apt/ squeeze/main percona-server-client all 5.5.17-rel22.1-197.squeeze [2624 B]
Get:2 http://repo.percona.com/apt/ squeeze/main percona-server-server all 5.5.17-rel22.1-197.squeeze [2736 B]
然后如果我apt-get upgrade
显示:
The following packages have been kept back:
libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5
尝试apt-get install libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5
我得到:
The following packages have unmet dependencies:
libmysqlclient18 : Depends: mysql-common (>= 5.5.18-1~dotdeb.1)
当然,添加 /etc/apt/sources.list:
# deb http://94.75.223.121/debian squeeze main
deb http://94.75.223.121/debian squeeze main non-free contrib
deb-src http://94.75.223.121/debian squeeze main non-free contrib
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze-updates, previously known as 'volatile'
deb http://94.75.223.121/debian squeeze-updates main contrib non-free
deb-src http://94.75.223.121/debian squeeze-updates main contrib non-free
# dotdeb
# deb http://packages.dotdeb.org squeeze all
# deb-src http://packages.dotdeb.org squeeze all
deb http://mirror.us.leaseweb.net/dotdeb/ stable all
deb-src http://mirror.us.leaseweb.net/dotdeb/ stable all
# percona
deb http://repo.percona.com/apt squeeze main
deb-src http://repo.percona.com/apt squeeze main
我尚未添加任何钉钉。
答案1
libmysqlclient18 : Depends: mysql-common (>= 5.5.18-1~dotdeb.1)
这里的错误似乎强烈地表明了你的问题是什么。
您似乎混合并匹配了几个不同的存储库。您似乎至少拥有官方、percona 和 dotdeb 存储库。不知何故,您陷入了一种状态,似乎已选择 dotdeb libmysqlclient18 版本作为安装候选版本,但这似乎需要一个由于某种原因不可用或无法安装的软件包。
您可能需要进行一些 apt 固定,以确保从正确的存储库中选择了包。在这种情况下,libmysqlclient18 可能需要来自 percona 存储库。