Page 1 of 2

E: Package 'php-pdo' has no installation candidate

Posted: Thu Sep 10, 2020 1:34 am
by Nayananr
Hi,

Tried to install NagiosXI and got below installation ERROR and guide me to solve below issue.

ERROR:
E: Package 'php-pdo' has no installation candidate
RESULT=100

===================
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'

Note :
Attached install.log for reference.

PHP versions:
php7.0-common 7.0.33-0ubuntu0.16.04.15
php7.2-common 7.2.24-0ubuntu0.18.04.6

Regards,
Nayana

Re: E: Package 'php-pdo' has no installation candidate

Posted: Thu Sep 10, 2020 5:29 pm
by benjaminsmith
Hi Nayana,

Thanks for trying out Nagios XI. Is this a clean system with no other applications installed. It should just work otherwise.

Let me know.

Benjamin

Re: E: Package 'php-pdo' has no installation candidate

Posted: Fri Sep 11, 2020 12:50 am
by Nayananr
Hi Benjamin,

Yes, it is clean system. Installed only required PHP and Mysql.


Regards,
Nayana

Re: E: Package 'php-pdo' has no installation candidate

Posted: Fri Sep 11, 2020 2:36 pm
by ssax
Please attach your /etc/apt/sources.list.

Re: E: Package 'php-pdo' has no installation candidate

Posted: Mon Sep 14, 2020 12:09 am
by Nayananr
Hi ,

Sorry for the late reply.
Please find the attachment for source.list

Note:
As browser is not allowing me to attach the original file, i have copied to text file and attaching.



Regards,
Nayana

Re: E: Package 'php-pdo' has no installation candidate

Posted: Mon Sep 14, 2020 5:48 pm
by benjaminsmith
Hi,
Sorry for the late reply.
Please find the attachment for source.list
I'm going to setup test system internally here to compare the output here and I'll follow up with you shortly.

Thank you for your patience.

Re: E: Package 'php-pdo' has no installation candidate

Posted: Wed Sep 16, 2020 2:56 am
by Nayananr
Hi,

Okay.

Regards,
Nayana

Re: E: Package 'php-pdo' has no installation candidate

Posted: Wed Sep 16, 2020 4:49 pm
by benjaminsmith
HI,

Perfect, thanks for attaching that output. Just to clarify, is this a 16.04 or 18.04 system (install log says 16.04). Also, can you post the output to the following command? I'd like to confirm which PHP packages were installed properly during the installation.

Code: Select all

apt list --installed | grep php

Re: E: Package 'php-pdo' has no installation candidate

Posted: Tue Sep 22, 2020 8:01 am
by Nayananr
Hi,

Please find the attachment for "apt list --installed | grep php"


Regards,
Nayana

Re: E: Package 'php-pdo' has no installation candidate

Posted: Wed Sep 23, 2020 10:02 am
by lmiltchev
Yes, it is clean system. Installed only required PHP and Mysql.
This was not a clean system. You should not install ANYTHING on the system, prior to running the "fullinstall" script. The installer would take care of all of the dependencies. As far as php goes, you have many packages that should not be present on your system (Ubuntu 18.04):
php7.0/now 7.0.33-0ubuntu0.16.04.15 all [installed,local]
php7.0-cli/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
php7.0-common/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
php7.0-fpm/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
php7.0-json/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
php7.0-mysql/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
php7.0-opcache/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
php7.0-readline/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
php7.0-xml/now 7.0.33-0ubuntu0.16.04.15 amd64 [installed,local]
Please, start with a clean system as per our recommendations.
Installation Prerequisites

Important: Nagios Enterprises highly recommends and will only support installing Nagios XI on a newly installed, "clean" system (a bare minimal install with nothing else installed or configured).
https://assets.nagios.com/downloads/nag ... -Linux.pdf