New Install on Ubuntu 22.04

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tpepitone
Posts: 2
Joined: Thu Oct 29, 2015 9:12 am

New Install on Ubuntu 22.04

Post by tpepitone »

Having some trouble with a fresh install on 22.04:


The following information may help to resolve the situation:

The following packages have unmet dependencies:
chromium : Depends: libzstd1 (>= 1.5.2) but 1.4.8+dfsg-3build1 is to be installed
Recommends: chromium-sandbox but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: Subcomponent 'chromium' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1

Running the version:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy


Thanks.
sgardil
Posts: 350
Joined: Wed Aug 09, 2023 9:58 am

Re: New Install on Ubuntu 22.04

Post by sgardil »

tpepitone wrote: Wed Aug 07, 2024 9:19 am Having some trouble with a fresh install on 22.04:


The following information may help to resolve the situation:

The following packages have unmet dependencies:
chromium : Depends: libzstd1 (>= 1.5.2) but 1.4.8+dfsg-3build1 is to be installed
Recommends: chromium-sandbox but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: Subcomponent 'chromium' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1

Running the version:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy


Thanks.
Hey @tpepitone

Can you double check to see that your system is fulling up to date before installing? I believe I've noticed this issue before and it was an issue of not having my system up to date. You can do so with `sudo apt update` and `sudo apt upgrade`. Let us know if this is a quick fix, if not we'll have to look into it more.
tpepitone
Posts: 2
Joined: Thu Oct 29, 2015 9:12 am

Re: New Install on Ubuntu 22.04

Post by tpepitone »

Up to date except for a couple of kept-back packages:

The following packages have been kept back:
python3-update-manager update-manager-core
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
DoubleDoubleA
Posts: 273
Joined: Thu Feb 09, 2017 5:07 pm

Re: New Install on Ubuntu 22.04

Post by DoubleDoubleA »

Hi @tpepitone,

Some upstream packages got updated for Ubuntu. We have this addressed in the upcoming XI 2024R1.2 release.

For now, please add the following lines to the end of subcomponents/chromium/chromium_22.pref:

Package: libzstd1
Pin: origin "deb.debian.org"
Pin-Priority: 700

and re-run the install.

Thanks,

Aaron
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: New Install on Ubuntu 22.04

Post by eloyd »

We ran into this today as well. New installation on Ubuntu 22.04.4 LTS that was fully updated, straight off the Ubuntu install. Trying to install 2024R1.1.5.

Added the package bits to the chromium pref file and we'll see how it goes. Too bad this step of the install requires full re-compile and everything. It takes....so....long... on a dinky virtual test box. :D
Last edited by eloyd on Wed Aug 07, 2024 3:55 pm, edited 1 time in total.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: New Install on Ubuntu 22.04

Post by eloyd »

Updating the pref file allowed the install to complete properly.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: New Install on Ubuntu 22.04

Post by eloyd »

So, funny thing. It looks like maybe the random MySQL password generator actually selected passwords the first time through, and then when trying to do it the second time through with the pref file updated, it tried to generate them again. Except it couldn't, because they were already specified. So the install finished, but Nagios could not connect to MySQL and it basically wasn't running.

Reverted back to pre-install snap and am trying again.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
danderson

Re: New Install on Ubuntu 22.04

Post by danderson »

eloyd wrote: Wed Aug 07, 2024 4:26 pm So, funny thing. It looks like maybe the random MySQL password generator actually selected passwords the first time through, and then when trying to do it the second time through with the pref file updated, it tried to generate them again. Except it couldn't, because they were already specified. So the install finished, but Nagios could not connect to MySQL and it basically wasn't running.

Reverted back to pre-install snap and am trying again.
Looking at how the random passwords are generated and saved, I see how this would become an issue under these circumstances. I will make an internal issue for this.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: New Install on Ubuntu 22.04

Post by eloyd »

Thanks. For completeness, I can say that with the pref file updated PRIOR to running the install, it finished fine in our 22.04 test box.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
danderson

Re: New Install on Ubuntu 22.04

Post by danderson »

That makes sense!
Locked