Topic: Errors trying to upgrade from PHP 5.6 to PHP 7.2. Need help.
Hi all,
I am trying to upgrade to PHP 7 from PHP 5.6 on my Lunix Centos system:
CentOS Linux release 7.6.1810 (Core)
I follow the wizard steps but I get several messages about a package requirement like:
Error: Package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64 (@ius)
Requires: php(api) = 20131106-64
etc.
Please give me some directions on how to solve this?
Full output below :
[root@hosting peter]# php -v
PHP 5.6.39 (cli) (built: Dec 6 2018 15:01:24)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@hosting peter]# yum update
Loaded plugins: fastestmirror, langpacks, replace
Loading mirror speeds from cached hostfile
* base: centos.mirror.transip.nl
* epel: ams.edge.kernel.org
* extras: mirror.hostnet.nl
* ius: mirror.amsiohosting.net
* remi-php70: remi.mirrors.cu.be
* remi-php71: remi.mirrors.cu.be
* remi-php72: remi.mirrors.cu.be
* remi-safe: remi.mirrors.cu.be
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.denit.net
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:7.2.15-1.el7.remi will be obsoleting
--> Processing Dependency: libargon2.so.0()(64bit) for package: php-7.2.15-1.el7.remi.x86_64
---> Package php-cli.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-common.x86_64 0:7.2.15-1.el7.remi will be obsoleting
--> Processing Dependency: php-json(x86-64) = 7.2.15-1.el7.remi for package: php-common-7.2.15-1.el7.remi.x86_64
---> Package php-gd.x86_64 0:7.2.15-1.el7.remi will be obsoleting
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-7.2.15-1.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-7.2.15-1.el7.remi.x86_64
---> Package php-gmp.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-imap.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-mbstring.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-mysqlnd.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-odbc.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-pdo.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-pear.noarch 1:1.10.8-1.el7.remi will be obsoleting
--> Processing Dependency: php-composer(fedora/autoloader) for package: 1:php-pear-1.10.8-1.el7.remi.noarch
---> Package php-pecl-mcrypt.x86_64 0:1.0.2-2.el7.remi.7.2 will be obsoleting
---> Package php-pgsql.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-process.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-snmp.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-xml.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php-xmlrpc.x86_64 0:7.2.15-1.el7.remi will be obsoleting
---> Package php56u.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-cli.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-common.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
--> Processing Dependency: php(api) = 20131106-64 for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
Package php56w-common is obsoleted by php-common, but obsoleting package does not provide for requirements
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
Package php56w-common is obsoleted by php-common, but obsoleting package does not provide for requirements
---> Package php56u-gd.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-gmp.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-imap.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-mbstring.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-mcrypt.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-mysqlnd.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-odbc.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-pdo.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-pear.noarch 1:1.10.5-1.ius.centos7 will be obsoleted
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
---> Package php56u-pgsql.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-process.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-snmp.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-xml.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
---> Package php56u-xmlrpc.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.5-5.el7.remi will be installed
--> Processing Dependency: libwebp.so.4()(64bit) for package: gd-last-2.2.5-5.el7.remi.x86_64
---> Package libargon2.x86_64 0:20161029-2.el7 will be installed
---> Package php-fedora-autoloader.noarch 0:1.0.0-1.el7 will be installed
---> Package php-json.x86_64 0:7.2.15-1.el7.remi will be installed
---> Package php56u-common.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
--> Processing Dependency: php(api) = 20131106-64 for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
Package php56w-common is obsoleted by php-common, but obsoleting package does not provide for requirements
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
Package php56w-common is obsoleted by php-common, but obsoleting package does not provide for requirements
---> Package php56u-pear.noarch 1:1.10.5-1.ius.centos7 will be obsoleted
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
--> Running transaction check
---> Package libwebp.x86_64 0:0.3.0-7.el7 will be installed
---> Package php56u-common.x86_64 0:5.6.39-1.ius.centos7 will be obsoleted
--> Processing Dependency: php(api) = 20131106-64 for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
Package php56w-common is obsoleted by php-common, but obsoleting package does not provide for requirements
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
Package php56w-common is obsoleted by php-common, but obsoleting package does not provide for requirements
---> Package php56u-pear.noarch 1:1.10.5-1.ius.centos7 will be obsoleted
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64
--> Finished Dependency Resolution
Error: Package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64 (@ius)
Requires: php(api) = 20131106-64
Removing: php56u-common-5.6.39-1.ius.centos7.x86_64 (@ius)
php(api) = 20131106-64
Obsoleted By: php-common-7.2.15-1.el7.remi.x86_64 (remi-php72)
php(api) = 20170718-64
Available: php-common-5.4.16-46.el7.x86_64 (base)
php(api) = 20100412-64
Available: php-common-7.0.33-1.el7.remi.x86_64 (remi-php70)
php(api) = 20151012-64
Available: php-common-7.0.33-2.el7.remi.x86_64 (remi-php70)
php(api) = 20151012-64
Available: php-common-7.1.25-2.el7.remi.x86_64 (remi-php71)
php(api) = 20160303-64
Available: php-common-7.1.26-1.el7.remi.x86_64 (remi-php71)
php(api) = 20160303-64
Available: php-common-7.2.14-1.el7.remi.x86_64 (remi-php72)
php(api) = 20170718-64
Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)
php(api) = 20121113-64
Available: php56w-common-5.6.39-1.w7.x86_64 (webtatic)
php(api) = 20131106-64
Available: php56w-common-5.6.40-1.w7.x86_64 (webtatic)
php(api) = 20131106-64
Available: php70w-common-7.0.33-1.w7.x86_64 (webtatic)
php(api) = 20151012-64
Available: php71u-common-7.1.25-1.ius.centos7.x86_64 (ius)
php(api) = 20160303-64
Available: php71u-common-7.1.25-2.ius.centos7.x86_64 (ius)
php(api) = 20160303-64
Available: php71u-common-7.1.26-1.ius.centos7.x86_64 (ius)
php(api) = 20160303-64
Available: php71w-common-7.1.25-1.w7.x86_64 (webtatic)
php(api) = 20160303-64
Available: php71w-common-7.1.26-1.w7.x86_64 (webtatic)
php(api) = 20160303-64
Available: php72u-common-7.2.13-1.ius.centos7.x86_64 (ius)
php(api) = 20170718-64
Available: php72u-common-7.2.13-2.ius.centos7.x86_64 (ius)
php(api) = 20170718-64
Available: php72u-common-7.2.14-1.ius.centos7.x86_64 (ius)
php(api) = 20170718-64
Available: php72w-common-7.2.13-1.w7.x86_64 (webtatic)
php(api) = 20170718-64
Available: php72w-common-7.2.14-1.w7.x86_64 (webtatic)
php(api) = 20170718-64
Error: Package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64 (@ius)
Requires: php56u-pear
Removing: 1:php56u-pear-1.10.5-1.ius.centos7.noarch (@ius)
php56u-pear = 1:1.10.5-1.ius.centos7
Obsoleted By: 1:php-pear-1.10.8-1.el7.remi.noarch (remi-php70)
Not found
Error: Package: php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64 (@ius)
Requires: php(zend-abi) = 20131226-64
Removing: php56u-common-5.6.39-1.ius.centos7.x86_64 (@ius)
php(zend-abi) = 20131226-64
Obsoleted By: php-common-7.2.15-1.el7.remi.x86_64 (remi-php72)
php(zend-abi) = 20170718-64
Available: php-common-5.4.16-46.el7.x86_64 (base)
php(zend-abi) = 20100525-64
Available: php-common-7.0.33-1.el7.remi.x86_64 (remi-php70)
php(zend-abi) = 20151012-64
Available: php-common-7.0.33-2.el7.remi.x86_64 (remi-php70)
php(zend-abi) = 20151012-64
Available: php-common-7.1.25-2.el7.remi.x86_64 (remi-php71)
php(zend-abi) = 20160303-64
Available: php-common-7.1.26-1.el7.remi.x86_64 (remi-php71)
php(zend-abi) = 20160303-64
Available: php-common-7.2.14-1.el7.remi.x86_64 (remi-php72)
php(zend-abi) = 20170718-64
Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)
php(zend-abi) = 20121212-64
Available: php56w-common-5.6.39-1.w7.x86_64 (webtatic)
php(zend-abi) = 20131226-64
Available: php56w-common-5.6.40-1.w7.x86_64 (webtatic)
php(zend-abi) = 20131226-64
Available: php70w-common-7.0.33-1.w7.x86_64 (webtatic)
php(zend-abi) = 20151012-64
Available: php71u-common-7.1.25-1.ius.centos7.x86_64 (ius)
php(zend-abi) = 20160303-64
Available: php71u-common-7.1.25-2.ius.centos7.x86_64 (ius)
php(zend-abi) = 20160303-64
Available: php71u-common-7.1.26-1.ius.centos7.x86_64 (ius)
php(zend-abi) = 20160303-64
Available: php71w-common-7.1.25-1.w7.x86_64 (webtatic)
php(zend-abi) = 20160303-64
Available: php71w-common-7.1.26-1.w7.x86_64 (webtatic)
php(zend-abi) = 20160303-64
Available: php72u-common-7.2.13-1.ius.centos7.x86_64 (ius)
php(zend-abi) = 20170718-64
Available: php72u-common-7.2.13-2.ius.centos7.x86_64 (ius)
php(zend-abi) = 20170718-64
Available: php72u-common-7.2.14-1.ius.centos7.x86_64 (ius)
php(zend-abi) = 20170718-64
Available: php72w-common-7.2.13-1.w7.x86_64 (webtatic)
php(zend-abi) = 20170718-64
Available: php72w-common-7.2.14-1.w7.x86_64 (webtatic)
php(zend-abi) = 20170718-64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@hosting peter]#