【问题标题】:Broken PHP install? Unmet dependencies on any package损坏的PHP安装?对任何包的未满足的依赖关系
【发布时间】:2015-02-11 01:02:04
【问题描述】:

我需要在我的服务器上启用 APC,但是不会安装一个包(即使 php5 说它具有未满足的依赖项但已经安装)

我得到的错误是它不会安装软件包。我试过-f--fix-missing 无济于事

apt-get -f install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-cli php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
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: libdb5.1 but it is not installable
            Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
            Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze8 is to be installed
            Depends: libedit2 (>= 2.11-20080614-4) but 2.11-20080614-2 is to be installed
 php5-common : Depends: psmisc (>= 22.15-1~) but 22.11-1 is to be installed
 php5-fpm : Depends: libdb5.1 but it is not installable
            Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
            Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze8 is to be installed
 php5-gd : Depends: libjpeg8 (>= 8c) but it is not going to be installed
 php5-mcrypt : Depends: libltdl7 (>= 2.4.2) but 2.2.6b-2 is to be installed
 php5-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1) but it is not going to be installed
E: Broken packages

【问题讨论】:

    标签: php debian failed-installation


    【解决方案1】:

    “It is not installable”表示 APT 不知道从哪里得到这个包。您在 /etc/apt 中的源不兼容,或者您​​需要使用 apt-get update 更新包缓存。

    【讨论】:

    • 谢谢,这有点帮助,但添加的来源是安装 php5-fpm 并最终安装 php apc,并不是说这些包不可用。
    • 它说 php5-fpm 可用(可能来自添加的源),但它取决于 libdb5.1,它不是(可能应该在分发源中)。这通常意味着您为不同版本的发行版添加了源代码。
    • 我对他的提交发表了评论,指出他错误地标记了操作系统版本
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-12-12
    • 2015-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多