Debian Lenny apt-get install php5-cli 未满足的依赖项有帮助吗?

Debian Lenny apt-get install php5-cli 未满足的依赖项有帮助吗?

首次发帖 - 长期读者和学习者。

两周以来,我一直在徒劳地尝试解决 Debian 5 (lenny) 机器上混乱的 PHP5.3 安装问题。每次我尝试 apt-get install php5-cli 时,都会收到大量未满足的依赖项,我真的不知道从哪里开始或如何让机器恢复原状。

以下是我未满足的依赖项列表:

Reading package lists... Done
Building dependency tree
Rlibc6 is already the newest version.
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:
php5-cli: Depends: libc6 (>= 2.11) but 2.7-18lenny7 is to be installed
        Depends: libdb4.8 but it is not installable
        Depends: libgssapi-krb5-2 (>= 1.6.dfsg.2) but it is not installable
        Depends: libk5crypto3 (>= 1.6.dfsg.2) but it is not installable
        Depends: libkrb5-3 (>= 1.6.dfsg.2) but it is not installable
        Depends: libncurses5 (>= 5.7+20100313) but 5.7+20081213-1 is to be installed
        Depends: libonig2 (>= 5.2.0) but it is not installable
        Depends: libqdbm14 (>= 1.8.74) but it is not installable
        Depends: libreadline6 (>= 6.0) but it is not installable
        Depends: libxml2 (>= 2.7.4) but 2.6.32.dfsg-5+lenny3 is to be installed
E: Broken packages

以下是我的基本的 apt/sources.list:

#
#  /etc/apt/sources.list
#

deb http://http.us.debian.org/debian stable all
deb http://security.debian.org/ stable/updates main contrib
deb http://packages.dotdeb.org/ stable all

有人可以指导我正确解决 php5.x 安装问题吗?(我也希望 -cli 可用 - 它是一个 Zabbix 监控服务器)。

谢谢你,

爱德华

答案1

在您的 sources.list 中将“stable”更改为“lenny”(或“oldstable”)——“stable”现在是 squeeze,而不是 lenny,因此您尝试安装 php5-cli 的 squeeze 版本,该版本依赖于许多其他 squeeze 包。

相关内容