尝试安装最新版本开放网管系统在最后一个稳定版本中德班,遵循官方安装说明导致存储库出现错误:
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:~#
但之后,当我尝试安装时,我从 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。
似乎很明显德班 开放网管系统存储库已损坏依赖包。还有其他替代方案吗?还是只能等待修复...?
答案1
我认为 apt 错误消息是由 OpenNMS 存储库中的错误引起的:两个带有所需库的 deb 包,jicmp
和jicmp6
,在 i386 架构的存储库中不可用。
举报后问题这些软件包现在可用,并且opennms
可以安装该软件包以满足依赖项。