VPS侦探论坛

 找回密码
 注册
查看: 3601|回复: 5

PHP安装不成功 libxml2-dev : Depends: libxml2 (= 2.9.1+dfsg1-5+deb8u4) but 2.9.1+dfsg1

[复制链接]
发表于 2017-9-19 13:00:54 | 显示全部楼层 |阅读模式

系统是阿里云Debian8.9  64位   头一次遇见这种情况,谢谢了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-9-19 19:52:07 | 显示全部楼层


Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:

The following packages have unmet dependencies:
libxml2-dev : Depends: libxml2 (= 2.9.1+dfsg1-5+deb8u4) but 2.9.1+dfsg1-5+deb8u5 is to be installed
E: Unable to correct problems, you have held broken packages.

你系统上的这个libxml2版本不对导致 libxml2-dev 没安装上
可以dpkg --force-all -P libxml2 强制卸载
然后apt-get install libxml2 libxml2-dev 后再看看libxml2能否正常安装上
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-9-20 12:43:16 | 显示全部楼层

回复 2# 的帖子


执行dpkg -r libxml2命令后出现这个,正常吗?
dpkg: dependency problems prevent removal of libxml2:amd64:
libxml-libxml-perl depends on libxml2 (>= 2.7.4).
shared-mime-info depends on libxml2 (>= 2.7.4).
liblwres90 depends on libxml2 (>= 2.6.27).
libcroco3:amd64 depends on libxml2 (>= 2.7.4).
libisc95 depends on libxml2 (>= 2.7.4).
libbind9-90 depends on libxml2 (>= 2.6.27).
libisccfg90 depends on libxml2 (>= 2.6.27).
dnsutils depends on libxml2 (>= 2.6.27).
libarchive13:amd64 depends on libxml2 (>= 2.7.4).
gettext depends on libxml2 (>= 2.7.4).
libisccc90 depends on libxml2 (>= 2.6.27).
libdns100 depends on libxml2 (>= 2.6.27).
bind9-host depends on libxml2 (>= 2.6.27).

dpkg: error processing package libxml2:amd64 (--remove):
dependency problems - not removing
Errors were encountered while processing:
libxml2:amd64
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-9-20 12:45:15 | 显示全部楼层

回复 2# 的帖子




再执行apt-get install libxml2 libxml2-dev后还是出现这个提示

Reading package lists... Done
Building dependency tree      
Reading state information... Done
libxml2 is already the newest version.
libxml2 set to manually installed.
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:

The following packages have unmet dependencies:
libxml2-dev : Depends: libxml2 (= 2.9.1+dfsg1-5+deb8u4) but 2.9.1+dfsg1-5+deb8u5 is to be installed
E: Unable to correct problems, you have held broken packages.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-9-20 16:52:42 | 显示全部楼层

回复 4# 的帖子


可以尝试 dpkg --force-all -P libxml2 强制卸载后再按2楼方式安装libxml2

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2017-9-21 09:30:24 | 显示全部楼层

回复 5# 的帖子


OK,解决了,非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-3-19 12:53 , Processed in 0.028335 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表