Hello, I would like to monitor a new Linux system.
Unfortunately, the installation does not go through, see error:
:~# apt-get install icinga2
Reading package lists... Done
Building dependency tree... Done
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:
icinga2-bin : Depends: libboost-coroutine1.74.0 (>= 1.74.0) but it is not installable
Depends: libboost-filesystem1.74.0 (>= 1.74.0) but it is not installable
Depends: libboost-program-options1.74.0 (>= 1.74.0) but it is not installable
Depends: libboost-regex1.74.0-icu70 but it is not installable
Depends: libboost-thread1.74.0 (>= 1.74.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
I don’t quite understand why it can’t install the dependencies?
It is an Ubuntu 22.04.2 LTS Jammy machine.
I would be very grateful for any tips.
Hello, thanks for the fast response.
I did, due to the firewall SSL decryption the SSL handshake does not work properly. That’s why I put --no-check-certificate after wget. This seems to work so far, at least there is something in the generated file.
apt update
Hit:1 https://packages.icinga.com/ubuntu icinga-jammy InRelease
Err:1 https://packages.icinga.com/ubuntu icinga-jammy InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C6E319C334410682
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.icinga.com/ubuntu icinga-jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C6E319C334410682
W: Failed to fetch http://packages.icinga.com/ubuntu/dists/icinga-jammy/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C6E319C334410682
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:2 and /etc/apt/sources.list.d/jammy-icinga.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'apt' instead of 'apt-transport-https'
apt is already the newest version (2.4.9).
gnupg is already the newest version (2.2.27-3ubuntu2.1).
wget is already the newest version (1.21.2-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
File '/usr/share/keyrings/icinga-archive-keyring.gpg' exists. --2023-11-22 09:56:17-- https://packages.icinga.com/icinga.key
Overwrite? (y/N) Resolving packages.icinga.com (packages.icinga.com)... 185.233.189.126
Connecting to packages.icinga.com (packages.icinga.com)|185.233.189.126|:443... connected.
WARNING: cannot verify packages.icinga.com's certificate, issued by ‘CN=PaloAlto-Trust’:
Self-signed certificate encountered.
HTTP request sent, awaiting response... 200 OK
Length: 1723 (1.7K) [application/pgp-keys]
Saving to: ‘STDOUT’
- 100%[====================================================================================================================================================================================================>] 1.68K --.-KB/s in 0s
2023-11-22 09:56:17 (1.31 GB/s) - written to stdout [1723/1723]
Enter new filename: /usr/share/keyrings/icinga-archive-keyring.gpg
File '/usr/share/keyrings/icinga-archive-keyring.gpg' exists. Overwrite? (y/N) y
Hit:1 https://packages.icinga.com/ubuntu icinga-jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:2 and /etc/apt/sources.list.d/jammy-icinga.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:2 and /etc/apt/sources.list.d/jammy-icinga.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/jammy-icinga.list:1
root@SERVER:~# apt-get install -y icinga2
Reading package lists... Done
Building dependency tree... Done
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:
icinga2-bin : Depends: libboost-coroutine1.74.0 (>= 1.74.0) but it is not installable
Depends: libboost-filesystem1.74.0 (>= 1.74.0) but it is not installable
Depends: libboost-program-options1.74.0 (>= 1.74.0) but it is not installable
Depends: libboost-regex1.74.0-icu70 but it is not installable
Depends: libboost-thread1.74.0 (>= 1.74.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
Before that I did it like this, I guess this is no longer supported:
wget -O - https://packages.icinga.com/icinga.key | apt-key add -
echo "deb http://packages.icinga.com/ubuntu icinga-$(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/icinga2.list
echo "deb-src http://packages.icinga.com/ubuntu icinga-$(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/icinga2.list