在 Debian 10 Buster 中安装 php-db 时出错

Error installing php-db in Debian 10 Buster

我已经尝试在 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内容为(省略注释):

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/是空的。

我能做什么?

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

Debian tracker : 在 2018-03-21 上,testing 参考 debian Buster (debian 10)。

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

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