【问题标题】:Error installing php-db in Debian 10 Buster在 Debian 10 Buster 中安装 php-db 时出错
【发布时间】:2019-10-08 14:47:16
【问题描述】:

我已尝试在 Debian 10 Buster 中安装 php-db,这是 PandoraFMS 控制台所需的依赖项(我正在安装它)但对我不起作用。

当我尝试安装时,我缺少依赖项:

[...]
dpkg: dependency problems prevent configuration of pandorafms-console:
   pandorafms-console depends on php-db; however:
      Package php-db is not installed.

如果我尝试手动安装 php-db:

# apt install php-db
[...]
Package php-db is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php-db' has no installation candidate

在 packages.debian.org 我可以搜索包,我发现:

Package php-db

   + jessie (oldoldstable) (php): PHP PEAR Database Abstraction Layer
     1.7.14-3: all
   + stretch (oldstable) (php): Database Abstraction Layer
     1.9.2-1: all
   + sid (unstable) (php): Database Abstraction Layer
     1.9.2-2: all

更多信息,/etc/apt/sources.list 的内容是(省略 cmets):

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://security.debian.org/ buster/updates main
deb-src http://security.debian.org/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main

deb http://deb.debian.org/debian buster-backports main
deb-src http://deb.debian.org/debian buster-backports main

目录 /etc/apt/sources.list.d/ 为空。

我能做什么?

【问题讨论】:

  • 你可以使用 docker。

标签: php linux debian


【解决方案1】:

软件包 php-db 已从 debian buster (10) 中删除。

Debian tracker : 2018-03-21,测试参考 debian Buster (debian 10)。

【讨论】:

    【解决方案2】:

    最后我从here下载了包,之前安装了必要的依赖项(apt install php-common php-pear)并手动执行安装:

    dpkg -i php-db_1.9.2-1_all.deb
    apt-mark hold php-db
    

    【讨论】:

      猜你喜欢
      • 2020-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-07
      相关资源
      最近更新 更多