icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

installation instructions broken for fedora >= 34

Open tpo opened this issue 3 years ago • 4 comments

Describe the bug

The installation instructions on https://icinga.com/docs/icinga-2/snapshot/doc/02-installation/04-Fedora/ do not work for Fedora >= 34.

# dnf install https://packages.icinga.com/fedora/icinga-rpm-release-$(. /etc/os-release; echo "$VERSION_ID")-latest.noarch.rpm`
root@officepc ~ # dnf install https://packages.icinga.com/fedora/icinga-rpm-release-$(. /etc/os-release; echo "$VERSION_ID")-latest.noarch.rpmLetzte Prüfung auf abgelaufene Metadaten: vor 0:08:32 am Mo 30 Mai 2022 12:00:36.
[MIRROR] icinga-rpm-release-34-latest.noarch.rpm: Status code: 404 for https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm (IP: 185.233.189.126)
[MIRROR] icinga-rpm-release-34-latest.noarch.rpm: Status code: 404 for https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm (IP: 185.233.189.126)
[MIRROR] icinga-rpm-release-34-latest.noarch.rpm: Status code: 404 for https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm (IP: 185.233.189.126)
[MIRROR] icinga-rpm-release-34-latest.noarch.rpm: Status code: 404 for https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm (IP: 185.233.189.126)
[FAILED] icinga-rpm-release-34-latest.noarch.rpm: Status code: 404 for https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm (IP: 185.233.189.126)
Status code: 404 for https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm (IP: 185.233.189.126)

in fact:

# wget https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm
--2022-05-30 12:10:05--  https://packages.icinga.com/fedora/icinga-rpm-release-34-latest.noarch.rpm
Auflösen des Hostnamens packages.icinga.com (packages.icinga.com)… 185.233.189.126
Verbindungsaufbau zu packages.icinga.com (packages.icinga.com)|185.233.189.126|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 404 Not Found
2022-05-30 12:10:05 FEHLER 404: Not Found.

I think this might be due to missing symlinks on your web server from https://packages.icinga.com/fedora/34/release/noarch/icinga-rpm-release/icinga-rpm-release-34-4.fc34.icinga.noarch.rpm back to the Fedora top level directory at https://packages.icinga.com/fedora/ ?

To Reproduce

See above

Expected behavior

Installation instructions on Fedora >= 34 should work.

Screenshots

Your Environment

This is on Fedora 34

tpo avatar May 30 '22 10:05 tpo

Same issue with raspian:

root@pi:/home/pi# apt update Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Ign:3 https://packages.icinga.com/ubuntu icinga-bullseye InRelease Err:4 https://packages.icinga.com/ubuntu icinga-bullseye Release 404 Not Found [IP: 185.233.189.126 443] Reading package lists... Done E: The repository 'https://packages.icinga.com/ubuntu icinga-bullseye Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. root@pi:/home/pi# apt install icinga2 Reading package lists... Done Building dependency tree... Done Reading state information... Done Package icinga2 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'icinga2' has no installation candidate

JackTheExecuter avatar May 30 '22 17:05 JackTheExecuter

@JackTheExecuter That's not the same issue. You are using the Ubuntu repository. Packages for Raspbian are at https://packages.icinga.com/raspbian/

julianbrost avatar Jun 07 '22 06:06 julianbrost

I'd like to note that adding the yum repository via its baseurl worked:

yum-config-manager --add-repo https://packages.icinga.com/fedora/

So maybe just the instructions in the manual need to be adapted. However - me not being a Fedora specialist - I do not know on which Fedora releases the above mentioned method works or doesn't, so I can't really propose a sensible patch to the manual. :-/

tpo avatar Jun 07 '22 13:06 tpo

@htriem Any objections against such or similar instructions instead of the repo RPM?

Al2Klimov avatar Jun 29 '22 14:06 Al2Klimov

@Al2Klimov It's on the right track, but for one we only want the release repo to be implemented, and only for a specific Fedora version. I will implement dnf config-manager --add-repo https://packages.icinga.com/fedora/$(. /etc/os-release; echo "$VERSION_ID")/release as an instruction.

htriem avatar Oct 18 '22 11:10 htriem