sudo apt-get install -y icinga2
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:
icinga2 : Depends: icinga2-bin (= 2.12.0-1.xenial) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I’ve tried alteady installing icinga2-bin manually although I suppose I 'm not supposed to, but they springs a new set of errors.
Is this a known issue ? Should I install from another package or downgrade my Ubuntu ?
Besides the typo with apt-get & adding the sources via “vi /etc/apt/sources.list” which is just adding the two lines at the end of the sources.list file
deb http://packages.icinga.com/ubuntu icinga-focal main
deb-src http://packages.icinga.com/ubuntu icinga-focal main
then updating via “apt-get update -y”
After that as a primary step installing the plugins with “nagios-plugins-contrib” and then installing icinga 2.
root@testserver:~# apt install icinga2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
icinga2-bin icinga2-common icinga2-doc libboost-context1.71.0 libboost-coroutine1.71.0 libboost-filesystem1.71.0
libboost-program-options1.71.0 libboost-regex1.71.0 libboost-thread1.71.0
Suggested packages:
vim-icinga2
The following NEW packages will be installed:
icinga2 icinga2-bin icinga2-common icinga2-doc libboost-context1.71.0 libboost-coroutine1.71.0 libboost-filesystem1.71.0
libboost-program-options1.71.0 libboost-regex1.71.0 libboost-thread1.71.0
0 upgraded, 10 newly installed, 0 to remove and 3 not upgraded.
Need to get 11.6 MB of archives.
After this operation, 39.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://packages.icinga.com/ubuntu icinga-focal/main amd64 icinga2-common all 2.12.0-1.focal [66.3 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libboost-context1.71.0 amd64 1.71.0-6ubuntu6 [207 kB]
Get:3 http://packages.icinga.com/ubuntu icinga-focal/main amd64 icinga2-bin amd64 2.12.0-1.focal [3690 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libboost-thread1.71.0 amd64 1.71.0-6ubuntu6 [249 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 libboost-coroutine1.71.0 amd64 1.71.0-6ubuntu6 [219 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libboost-filesystem1.71.0 amd64 1.71.0-6ubuntu6 [242 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libboost-program-options1.71.0 amd64 1.71.0-6ubuntu6 [342 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 libboost-regex1.71.0 amd64 1.71.0-6ubuntu6 [471 kB]
Get:9 http://packages.icinga.com/ubuntu icinga-focal/main amd64 icinga2 amd64 2.12.0-1.focal [112 kB]
Get:10 http://packages.icinga.com/ubuntu icinga-focal/main amd64 icinga2-doc all 2.12.0-1.focal [6044 kB]
Fetched 11.6 MB in 7s (1706 kB/s)
Selecting previously unselected package icinga2-common.
(Reading database ... 77819 files and directories currently installed.)
Preparing to unpack .../0-icinga2-common_2.12.0-1.focal_all.deb ...
Unpacking icinga2-common (2.12.0-1.focal) ...
Selecting previously unselected package libboost-context1.71.0:amd64.
Preparing to unpack .../1-libboost-context1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-context1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-thread1.71.0:amd64.
Preparing to unpack .../2-libboost-thread1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-thread1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-coroutine1.71.0:amd64.
Preparing to unpack .../3-libboost-coroutine1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-coroutine1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-filesystem1.71.0:amd64.
Preparing to unpack .../4-libboost-filesystem1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-filesystem1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-program-options1.71.0:amd64.
Preparing to unpack .../5-libboost-program-options1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-program-options1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-regex1.71.0:amd64.
Preparing to unpack .../6-libboost-regex1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-regex1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package icinga2-bin.
Preparing to unpack .../7-icinga2-bin_2.12.0-1.focal_amd64.deb ...
Unpacking icinga2-bin (2.12.0-1.focal) ...
Selecting previously unselected package icinga2.
Preparing to unpack .../8-icinga2_2.12.0-1.focal_amd64.deb ...
Unpacking icinga2 (2.12.0-1.focal) ...
Selecting previously unselected package icinga2-doc.
Preparing to unpack .../9-icinga2-doc_2.12.0-1.focal_all.deb ...
Unpacking icinga2-doc (2.12.0-1.focal) ...
Setting up icinga2-common (2.12.0-1.focal) ...
Adding system-user for nagios
Created symlink /etc/systemd/system/multi-user.target.wants/icinga2.service → /lib/systemd/system/icinga2.service.
Setting up libboost-filesystem1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up icinga2-doc (2.12.0-1.focal) ...
Setting up libboost-regex1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-thread1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-context1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-program-options1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-coroutine1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up icinga2-bin (2.12.0-1.focal) ...
enabling default icinga2 features
Enabling feature checker. Make sure to restart Icinga 2 for these changes to take effect.
Enabling feature notification. Make sure to restart Icinga 2 for these changes to take effect.
Enabling feature mainlog. Make sure to restart Icinga 2 for these changes to take effect.
Setting up icinga2 (2.12.0-1.focal) ...
Processing triggers for systemd (245.4-4ubuntu3.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
And so far no error with the dependency and the the service is running fine.
Hey,
Thanks for all the work … i guess I 'll just delete everything and re-try.
No, I just downloaded from https://ubuntu.com/download/server …
Installed it, and more or less performed the steps you did… it’s so basic that I 'm puzzled to what is going wrong or different.
I believe I found what was wrong, my /etc/apt/sources.list still contained a reference to
deb-src http://packages.icinga.org/ubuntu icinga-xenial main
Changing that to deb-src Index of /ubuntu icinga-focal main…
Installer runs now, I think I can continue … thanks!