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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Nayananr
Posts: 19
Joined: Wed Mar 18, 2020 4:29 am

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

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Nayananr
Posts: 19
Joined: Wed Mar 18, 2020 4:29 am

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

Post by Nayananr »

Hi Benjamin,

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


Regards,
Nayana
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

Post by ssax »

Please attach your /etc/apt/sources.list.
Nayananr
Posts: 19
Joined: Wed Mar 18, 2020 4:29 am

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

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Nayananr
Posts: 19
Joined: Wed Mar 18, 2020 4:29 am

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

Post by Nayananr »

Hi,

Okay.

Regards,
Nayana
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Nayananr
Posts: 19
Joined: Wed Mar 18, 2020 4:29 am

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

Post by Nayananr »

Hi,

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


Regards,
Nayana
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked