PHP Issue - Ubuntu 22.04
Posted: Wed Jul 23, 2025 10:43 am
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
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