Operating system: Linux (ubuntu 22.04)
64bit
Manual Install
No special configuration on the system, VM is brand new spun up for this purpose (nothing else installed on it)
I'm trying to install Nagios on a fresh VM to migrate a Nagios XI 2024R1.1.5 configuration and then upgrade to a newer version. According to the Compatability Matrix this should be possible on Ubuntu 22.04. However, when I run the install instructions I keep running into an error with php. Ive verified php is installed and updated yet I still encounter the same error. Any ideas on how I can resolve this and complete the install? Let me know if any more information is needed, I am happy to provide it. Thank you.
Install Log:
Nagios XI Installation Log
==========================
DATE: Tue Jul 22 18:29:11 UTC 2025
DISTRO INFO:
Ubuntu
22.04
x86_64
THIS IS A NEW INSTALL!
INSTALLING:
full=2024R1.1.5
major=2024
minor=1.1.5
releasedate=2024-07-23
release=60105
Configuring Repos...
Repos configured OK
Installing prerequisites...
Checking conflicting packages
dpkg-query: package 'nagios' is not installed and no information is available
dpkg-query: package 'nagios-nrpe' is not installed and no information is available
dpkg-query: package 'nagios-nsca' is not installed and no information is available
dpkg-query: package 'ndoutils' is not installed and no information is available
dpkg-query: package 'ndoutils-mysql' is not installed and no information is available
dpkg-query: package 'nrpe' is not installed and no information is available
dpkg-query: package 'nsca' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 http://deb.debian.org/debian bookworm InRelease
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2764 kB]
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1225 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [303 kB]
Fetched 4676 kB in 1s (4183 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package php-pdo is a virtual package provided by:
php8.4-common 8.4.10-1+ubuntu22.04.1+deb.sury.org+1
php8.3-common 8.3.23-1+ubuntu22.04.1+deb.sury.org+1
php8.2-common 8.2.29-1+ubuntu22.04.1+deb.sury.org+1
php8.1-common 8.1.33-1+ubuntu22.04.1+deb.sury.org+1
php8.0-common 1:8.0.30-15+ubuntu22.04.1+deb.sury.org+1
php7.4-common 1:7.4.33-21+ubuntu22.04.1+deb.sury.org+1
php7.3-common 7.3.33-24+ubuntu22.04.1+deb.sury.org+1
php7.2-common 7.2.34-54+ubuntu22.04.1+deb.sury.org+1
php7.1-common 7.1.33-67+ubuntu22.04.1+deb.sury.org+1
php7.0-common 7.0.33-79+ubuntu22.04.1+deb.sury.org+1
php5.6-common 5.6.40-81+ubuntu22.04.1+deb.sury.org+1
E: Package 'php-pdo' has no installation candidate
Nagios XI Installation Log
==========================
DATE: Wed Jul 23 15:06:33 UTC 2025
DISTRO INFO:
Ubuntu
22.04
x86_64
THIS IS A NEW INSTALL!
INSTALLING:
full=2024R1.1.5
major=2024
minor=1.1.5
releasedate=2024-07-23
release=60105
Repos already configured - exiting.
Installing prerequisites...
Checking conflicting packages
dpkg-query: package 'nagios' is not installed and no information is available
dpkg-query: package 'nagios-nrpe' is not installed and no information is available
dpkg-query: package 'nagios-nsca' is not installed and no information is available
dpkg-query: package 'ndoutils' is not installed and no information is available
dpkg-query: package 'ndoutils-mysql' is not installed and no information is available
dpkg-query: package 'nrpe' is not installed and no information is available
dpkg-query: package 'nsca' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
Get:1 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2763 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1225 kB]
Fetched 4420 kB in 1s (3140 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package php-pdo is a virtual package provided by:
php8.4-common 8.4.10-1+ubuntu22.04.1+deb.sury.org+1
php8.3-common 8.3.23-1+ubuntu22.04.1+deb.sury.org+1
php8.2-common 8.2.29-1+ubuntu22.04.1+deb.sury.org+1
php8.1-common 8.1.33-1+ubuntu22.04.1+deb.sury.org+1
php8.0-common 1:8.0.30-15+ubuntu22.04.1+deb.sury.org+1
php7.4-common 1:7.4.33-21+ubuntu22.04.1+deb.sury.org+1
php7.3-common 7.3.33-24+ubuntu22.04.1+deb.sury.org+1
php7.2-common 7.2.34-54+ubuntu22.04.1+deb.sury.org+1
php7.1-common 7.1.33-67+ubuntu22.04.1+deb.sury.org+1
php7.0-common 7.0.33-79+ubuntu22.04.1+deb.sury.org+1
php5.6-common 5.6.40-81+ubuntu22.04.1+deb.sury.org+1
E: Package 'php-pdo' has no installation candidate
PHP Issue - Ubuntu 22.04
Re: PHP Issue - Ubuntu 22.04
Hi @sadias,
Thanks for reaching out.
Looks like there may have been a temporary issue with the php repositories.
I was able to install 2024R1.1.5 on Ubuntu 22.04, but I had to do the following due to changes in the Chromium repositories.
Thanks for reaching out.
Looks like there may have been a temporary issue with the php repositories.
I was able to install 2024R1.1.5 on Ubuntu 22.04, but I had to do the following due to changes in the Chromium repositories.
- Make sure your VM is up to date.
- After untarring XI and the cd nagiosxi, replace subcomponents/chromium/install with this...
Code: Select all
#!/bin/bash -e . ../../xi-sys.cfg apt-get install -y xdg-utils wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt-get install -y ./google-chrome-stable_current_amd64.deb rm google-chrome-stable_current_amd64.deb loginctl enable-linger $nagiosuser - Make sure you are still in or are back up to the upper level nagiosxi directory.
- Run ./fullinstall -n or whatever you normally use for flags.
Please let us know if you have any other questions or concerns.
-Laura
-Laura
Re: PHP Issue - Ubuntu 22.04
Hi @igute
I appreciate you taking your time to help me out. I gave your solution a try and I still seem to be encountering the same issue. Do you have any other ideas I can try? Let me know if you need any more information from me and I'm happy to provide it.
Thank you.
I appreciate you taking your time to help me out. I gave your solution a try and I still seem to be encountering the same issue. Do you have any other ideas I can try? Let me know if you need any more information from me and I'm happy to provide it.
Thank you.
Code: Select all
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './1-prereqs'
nagiosrescue@AZRMON002-NagiosXI:~/nagiosxi$ nano install.log
GNU nano 6.2 install.log
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package php-pdo is a virtual package provided by:
php8.4-common 8.4.11-1+ubuntu22.04.1+deb.sury.org+1
php8.3-common 8.3.24-1+ubuntu22.04.1+deb.sury.org+1
php8.2-common 8.2.29-1+ubuntu22.04.1+deb.sury.org+1
php8.1-common 8.1.33-1+ubuntu22.04.1+deb.sury.org+1
php8.0-common 1:8.0.30-15+ubuntu22.04.1+deb.sury.org+1
php7.4-common 1:7.4.33-21+ubuntu22.04.1+deb.sury.org+1
php7.3-common 7.3.33-24+ubuntu22.04.1+deb.sury.org+1
php7.2-common 7.2.34-54+ubuntu22.04.1+deb.sury.org+1
php7.1-common 7.1.33-67+ubuntu22.04.1+deb.sury.org+1
php7.0-common 7.0.33-79+ubuntu22.04.1+deb.sury.org+1
php5.6-common 5.6.40-86+ubuntu22.04.1+deb.sury.org+1
E: Package 'php-pdo' has no installation candidate
Last edited by sadias on Tue Aug 26, 2025 1:19 pm, edited 1 time in total.
Re: PHP Issue - Ubuntu 22.04
Hi @sadias,
If you're on a freshly installed Ubuntu 22 server, you should have PHP 8.1 installed. Try running this command to install the pdo extension manually:
You can check your php version with
If that version differs you may need to change the "apt install" command to match the version of PHP you have installed. Let us know how this goes!
If you're on a freshly installed Ubuntu 22 server, you should have PHP 8.1 installed. Try running this command to install the pdo extension manually:
Code: Select all
sudo apt install php8.1-mysqlCode: Select all
php -vRe: PHP Issue - Ubuntu 22.04
Hi @jsimon
It looks like I do indeed have PHP 8.1 installed but still hitting the same error. Not sure why the full install isn't picking it up. Any ideas on why that is?
See attached the output:
It looks like I do indeed have PHP 8.1 installed but still hitting the same error. Not sure why the full install isn't picking it up. Any ideas on why that is?
See attached the output:
Code: Select all
nagiosrescue@redacted-NagiosXI:~/nagiosxi$ php -v
PHP 8.1.33 (cli) (built: Jul 3 2025 16:15:48) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.33, Copyright (c) Zend Technologies
with Zend OPcache v8.1.33, Copyright (c), by Zend Technologies
Last bumped by sadias on Mon Sep 15, 2025 9:49 am.