Icinga2-ido-mysql failed to install on Raspberry

Setting up icingaweb2 fails to complete as IDO is missing But I am currently not able to install it on my Raspberry PI du to the following conflict:

# apt-get install icinga2-ido-mysql
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-ido-mysql : Depends: libmariadbclient18 (>= 10.1.37-0+deb9u1) but it is not installable
E: Unable to correct problems, you have held broken packages.

That is on Raspbian GNU/Linux 10 (buster).

It seems the libmariadbclient functionality has moved to a different package but icinga2-ido-mysql package is not (yet) aware of that.

Does anyone have a solution or workaround?

Regards, Hugo.

Let me add to that:

$ sudo apt install libmariadbclient18
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libmariadbclient18 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
However the following packages replace it:
  libmariadb3

E: Package 'libmariadbclient18' has no installation candidate

$ sudo apt install libmariadb3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libmariadb3 is already the newest version (1:10.3.25-0+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So somehow this chain is broken in a way that Idon’t know how to fix.

Hi Hugo,

How is this problem going?
I am sure you have seen / been following this:

The problem that you are running into is most likely with the Raspbian os

There is ubuntu for the pi:

That might get you further.

It did resolve a lot of issues.
But I then ran into the next trap:
icinga2: Can’t send external Icinga command to the local command file “/var/run/icinga2/cmd/icinga2.cmd”: Permission denied.

Need to figure out how to switch modes once icinga is installed.

@hvdkooij

What user is runnning the icinga process ? and what are the permissions on the icinga.cmd ?

I forgot to enable it as feature.

Happens to the best of us :smiley:

Hi Hugo,

How did you manage to get rid of the above error?

Thx for help!

Ákos

icinga2 enable cmd
If memory serves me well.

Thanx for quick response!
I was wondering about the one related to libmariadbclient18, but I figured it out.
Shame on me…
I was uying the wrong icinga repo on my RasPi4 (stretch instead of buster)
Correcting in /etc/apt/sources.list.d/icinga.list did the trick.

Thanks again!

Ákos