Can't install Horizon on Ubuntu 20.04 LTS

Description

When I try to install OpenNMS Horizon on Ubuntu, I get a dependency error. Here is what I did:

Add repository and key:

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

Try to install opennms meta package:

root@ubuntu-2004:~# apt -y 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 (= 26.0.1-1) but it is not going to be installed Depends: opennms-webapp-jetty (= 26.0.1-1) but it is not going to be installed Recommends: opennms-source (= 26.0.1-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed August 17, 2020 at 2:05 PM

Fixed in foundation-2016 and up

Benjamin Reed August 12, 2020 at 5:02 PM

Benjamin Reed July 24, 2020 at 5:08 PM

Turns out there's literally only one script still using Getopt::Mixed so I just fixed it to use Getopt::Long😃

Ronny Trommer May 29, 2020 at 7:40 PM

The package is removed since focal, you can get around by installing from an untrusted repository documented here: https://launchpad.net/~willat8/+archive/ubuntu/shepherd

add-apt-repository ppa:willat8/shepherd apt update apt install libgetopt-mixed-perl

Ronny Trommer May 29, 2020 at 7:18 PM

We don't have a solution right now and our Debian package dependencies on libgetopt-mixed-perl:amd64 prevent us from install OpenNMS Horizon on Ubuntu 20.04 LTS.

Fixed

Details

Assignee

Reporter

Sprint

Affects versions

Priority

PagerDuty

Created April 30, 2020 at 9:46 AM
Updated July 6, 2022 at 5:52 PM
Resolved August 17, 2020 at 2:05 PM

Flag notifications