尝试在Debian的最新稳定版本中安装OpenNMS的最新版本,按照官方安装说明会导致存储库出现 apt 错误:
root@triplecero:~# apt update
Ign:1 http://nightly.odoo.com/12.0/nightly/deb ./ InRelease
Ign:2 https://debian.opennms.org stable InRelease
Hit:3 http://nightly.odoo.com/12.0/nightly/deb ./ Release
Hit:4 https://debian.opennms.org stable Release
Hit:7 http://ftp.debian.org/debian buster-backports InRelease
Hit:8 http://deb.debian.org/debian buster InRelease
Hit:9 http://repo.mysql.com/apt/debian stretch InRelease
Hit:10 http://deb.debian.org/debian-security buster/updates InRelease
Hit:11 http://deb.debian.org/debian buster-updates InRelease
Hit:12 http://linorg.usp.br/debian-marillat stable InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Conflicting distribution: https://debian.opennms.org stable Release (expected stable but got opennms-24)
root@triplecero:~#
只需将存储库文件中的stable
关键字更改为./etc/apt/sources.list.d/opennms.list
opennms-24
root@triplecero:~# apt update
Hit:1 http://repo.mysql.com/apt/debian stretch InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian-security buster/updates InRelease
Hit:4 http://ftp.debian.org/debian buster-backports InRelease
Ign:5 http://nightly.odoo.com/12.0/nightly/deb ./ InRelease
Hit:6 http://deb.debian.org/debian buster-updates InRelease
Hit:7 http://nightly.odoo.com/12.0/nightly/deb ./ Release
Hit:9 http://linorg.usp.br/debian-marillat stable InRelease
Ign:10 https://debian.opennms.org opennms-24 InRelease
Get:11 https://debian.opennms.org opennms-24 Release [11.2 kB]
Get:12 https://debian.opennms.org opennms-24 Release.gpg [224 B]
Get:13 https://debian.opennms.org opennms-24/main Sources [3,696 B]
Get:14 https://debian.opennms.org opennms-24/main i386 Packages [25.8 kB]
Get:15 https://debian.opennms.org opennms-24/main i386 Contents (deb) [97.6 kB]
Fetched 138 kB in 18s (7,643 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@triplecero:~#
但在那之后,当我尝试安装OpenNMS时,我从 apt 收到依赖错误(尝试安装这些包会导致另一个依赖包错误)。
root@triplecero:~# apt install opennms
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:
opennms : Depends: opennms-server (= 24.1.2-1) but it is not going to be installed
Depends: opennms-webapp-jetty (= 24.1.2-1) but it is not going to be installed
Recommends: opennms-source (= 24.1.2-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@triplecero:~#
将存储库从 更改opennms-24
为opennms-23
或opennms-22
导致PostgreSQL的另一个未满足的依赖项错误。
似乎很明显Debian OpenNMS存储库已经破坏了依赖包。还有其他选择,或者只需要等待修复......?
因为我认为 apt 错误消息是由 OpenNMS 存储库中的错误引起的:两个带有所需库的 deb 包
jicmp
和jicmp6
,在 i386 架构的存储库中不可用。报告问题后,软件包现在可用,并且
opennms
可以安装软件包以满足依赖项。