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

时间:2019-10-08 14:47:16

标签: php linux debian

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

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

[...]
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/为空。

我能做什么?

2 个答案:

答案 0 :(得分:0)

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

Debian tracker:在2018-03-21上, testing 指的是debian Buster(debian 10)。

答案 1 :(得分:0)

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

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