icinga2 daemon -C need to check have restored a backup from satellite and can’t find the screenshot right now. But the message from icinga2 daemon -C ran out on this screenshot here that the two packages icinga2-common and icinga2-bin are missing.
Problem has occurred by chance. After reading in the Icinga blog that an update is available I installed it with apt-get update and apt-get upgrade.
&& will not do what you expect. It is for “chaining” commands. With && the 2nd command (after the operator) will only be executed if the first command completed without errors.
to uninstall multiple packages simply add them separated by space
apt <option> icinga2-bin icinga2-common ...
I would try removing and then installing icinga2 again.
I had this issue some time ago when upgrading from some ubuntu to another version. But (of course) I didn’t write anything down about how I fixed it.
The blogpost addresses exactly the problem I have once I run icinga2 daemon -C after the update. I will look at the problem tomorrow in a test environment and report back.
As I won’t be updating any systems with dependencies(i rarely used) in the near future (2/3 weeks) you might have to wait
But you could disable your dependency configs for the update, make the update and then re-enable the configs and see what the config validation reports.