A. Lion
A. Lion

Reputation: 680

OpenNMS installation fails with error, expected stable but got opennms-23, is it possible to go trought it?

By following the Debian installation section at page https://docs.opennms.org/opennms/releases/latest/guide-install/guide-install.html on a brand new Ubuntu 18 LTS I am getting an error after the last command, is any way to access a recent working repository rather than the broken version 23 ? Thanks in advance.

su root

cat << EOF | sudo tee /etc/apt/sources.list.d/opennms.list
deb https://debian.opennms.org stable main
deb-src https://debian.opennms.org stable main
EOF

wget -O - https://debian.opennms.org/OPENNMS-GPG-KEY | apt-key add -

apt update

apt -y install opennms

Upvotes: 3

Views: 3020

Answers (1)

GuitarPicker
GuitarPicker

Reputation: 316

I encountered this issue today using the same instruction page for Debian. It appears that in the repository, stable is symlinked to the current stable version's directory, but stable's release file in the repository does not contain the word "stable" so apt complains.

I was able to work around the issue by editing /etc/apt/sources.list.d/opennms.list, commenting out the "stable" line and replacing it with one explicitly naming the version:

#deb http://debian.opennms.org/ stable main
deb http://debian.opennms.org/ opennms-23 main

After that, the apt errors went away. This has the side effect that you will need to edit the list any time a newer major version is released.

Upvotes: 4

Related Questions