我想安装libxml2-dev
编译为 PHP 但是当我尝试时出现此错误:
The following packages have unmet dependencies: libxml2-dev :
Depends: libxml2 (= 2.9.1+dfsg1-3ubuntu3) but 2.9.1+dfsg1-3ubuntu4.4 is to be installed
E: Unable to correct problems, you have held broken packages
我在 Synaptic Pakage Manager 中找到了源代码和二进制库的最新版本:
为什么源版本是2.9.1+dfsg1-3ubuntu3
,但二进制是2.9.1+dfsg1-3ubuntu4.4
?
我该如何安装libxml2-dev
?
答案1
我的似乎排好了。我建议您使用 更新本地软件包列表sudo apt-get update
。
如果这没有帮助,请将输出添加apt-cache policy libxml2{,-dev}
到您的问题中。
$ apt-cache policy libxml2{,-dev}
libxml2:
Installed: 2.9.1+dfsg1-3ubuntu4.4
Candidate: 2.9.1+dfsg1-3ubuntu4.4
Version table:
*** 2.9.1+dfsg1-3ubuntu4.4 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
2.9.1+dfsg1-3ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libxml2-dev:
Installed: 2.9.1+dfsg1-3ubuntu4.4
Candidate: 2.9.1+dfsg1-3ubuntu4.4
Version table:
*** 2.9.1+dfsg1-3ubuntu4.4 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
2.9.1+dfsg1-3ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages