Debian
Debian Buster 中的 OpenNMS 24 安裝:未滿足的依賴項
嘗試在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
可以安裝軟體包以滿足依賴項。