Page 1 of 1

When upgrading I git No package php70-imap available.

Posted: Tue Dec 15, 2020 11:06 am
by btayl
When I ma upgrading to the latest version I get No package php70-imap available.

Proceeding with upgrade...
Nagios XI Upgrade Log
==========================
DATE: Mon Dec 14 13:05:48 EST 2020

DISTRO INFO:
CentOS
7.8.2003
x86_64


Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.2.lin
Sourceguardian extension found for PHP version 7.2
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...

OLD VERSION: 5704
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sesp.northwestern.edu
* centos-sclo-rh: mirrors.usinternet.com
* centos-sclo-sclo: bay.uchicago.edu
* extras: centos.mirrors.tds.net
* remi-php72: mirror.pit.teraswitch.com
* remi-safe: mirror.pit.teraswitch.com
* updates: linux-mirrors.fnal.gov
No packages marked for update
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sesp.northwestern.edu
* centos-sclo-rh: mirror.genesishosting.com
* centos-sclo-sclo: bay.uchicago.edu
* extras: centos.mirrors.tds.net
* remi-php72: mirror.pit.teraswitch.com
* remi-safe: mirror.pit.teraswitch.com
* updates: linux-mirrors.fnal.gov
No package php70-imap available.
[root@nagios-va-ts1a nagiosxi]#

Re: When upgrading I git No package php70-imap available.

Posted: Tue Dec 15, 2020 3:40 pm
by dchurch
It's running into issues when it's encountering this line (upgrade:301):

Code: Select all

yum install `yum list installed php*common* | grep php | awk -F "-" {'print $1'} | tail -1`-imap -y
Which basically tries to install php70-imap which fails because no such package exists.

Can you post the output from the following command so we can diagnose further?

Code: Select all

rpm -qa |grep php

Re: When upgrading I git No package php70-imap available.

Posted: Tue Dec 15, 2020 4:13 pm
by btayl
[root@nagios-va-ts1a AIX]# rpm -qa |grep php
php-xml-7.2.34-1.el7.remi.x86_64
php-mbstring-7.2.34-1.el7.remi.x86_64
php-imap-7.2.34-1.el7.remi.x86_64
php70-runtime-2.0-1.el7.remi.x86_64
php-pdo-7.2.34-1.el7.remi.x86_64
php-pear-1.10.12-2.el7.remi.noarch
php-pecl-ssh2-1.2-1.el7.remi.7.2.x86_64
php-opcache-7.2.34-1.el7.remi.x86_64
php70-php-smbclient-1.0.0-1.el7.remi.x86_64
php-pdo-dblib-7.2.34-1.el7.remi.x86_64
php-cli-7.2.34-1.el7.remi.x86_64
php-fedora-autoloader-1.0.1-2.el7.noarch
php-devel-7.2.34-1.el7.remi.x86_64
php-7.2.34-1.el7.remi.x86_64
php-snmp-7.2.34-1.el7.remi.x86_64
php70-php-common-7.0.33-23.el7.remi.x86_64
php-common-7.2.34-1.el7.remi.x86_64
php-process-7.2.34-1.el7.remi.x86_64
php-gd-7.2.34-1.el7.remi.x86_64
php-mysqlnd-7.2.34-1.el7.remi.x86_64
php-ldap-7.2.34-1.el7.remi.x86_64
php70-php-json-7.0.33-23.el7.remi.x86_64
php-json-7.2.34-1.el7.remi.x86_64
php-pgsql-7.2.34-1.el7.remi.x86_64
oniguruma5php-6.9.5+rev1-4.el7.remi.x86_64
php-odbc-7.2.34-1.el7.remi.x86_64
[root@nagios-va-ts1a AIX]#

Re: When upgrading I git No package php70-imap available.

Posted: Wed Dec 16, 2020 4:17 pm
by ssax
You have multiple versions of PHP installed, please run these commands to fix your system:

Code: Select all

yum remove 'php70-*'  # Make sure this is ONLY removing those php70- packages before approving the change
service httpd restart
If you continue to have issues, run through this again after performing the steps above:

https://support.nagios.com/kb/article/n ... 7-860.html

Re: When upgrading I git No package php70-imap available.

Posted: Wed Dec 16, 2020 4:45 pm
by btayl
That Did the trick. I did have to reinstall php.
Thanks

Re: When upgrading I git No package php70-imap available.

Posted: Wed Dec 16, 2020 5:42 pm
by scottwilkerson
btayl wrote:That Did the trick. I did have to reinstall php.
Thanks
Great!

Locking thread