Remi PHP5 / PHP7リポジトリyumアップデートエラー

Remi PHP5 / PHP7リポジトリyumアップデートエラー

私が実行したとき:

yum update

エラーが発生します。

Error: Package: php-pecl-zip-1.20.0-1.el7.remi.5.6.x86_64 (remi-php56)
           Requires: php(api) = 20131106-64
           Installed: php-common-7.4.0~RC1-1.el7.remi.x86_64 (@remi-modular)
               php(api) = 20190902-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-5.4.45-18.el7.remi.x86_64 (remi)
               php(api) = 20100412-64
           Available: php-common-5.5.38-11.el7.remi.x86_64 (remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.5.38-12.el7.remi.x86_64 (remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.6.40-31.el7.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
           Available: php-common-5.6.40-32.el7.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
Error: Package: php-pecl-zip-1.20.0-1.el7.remi.5.6.x86_64 (remi-php56)
           Requires: php(zend-abi) = 20131226-64
           Installed: php-common-7.4.0~RC1-1.el7.remi.x86_64 (@remi-modular)
               php(zend-abi) = 20190902-64
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.45-18.el7.remi.x86_64 (remi)
               php(zend-abi) = 20100525-64
           Available: php-common-5.5.38-11.el7.remi.x86_64 (remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.5.38-12.el7.remi.x86_64 (remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.6.40-31.el7.remi.x86_64 (remi-php56)
               php(zend-abi) = 20131226-64
           Available: php-common-5.6.40-32.el7.remi.x86_64 (remi-php56)
               php(zend-abi) = 20131226-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

yum repolist出力は次のとおりです。

yum repolist

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.plusline.net
 * epel: epel.mirror.far.fi
 * extras: ftp.plusline.net
 * remi: mirror.awanti.com
 * remi-php55: mirror.awanti.com
 * remi-php56: mirror.awanti.com
 * remi-safe: mirror.awanti.com
 * remi-test: mirror.awanti.com
 * updates: de.mirrors.clouvider.net
repo id                                                   repo name                                                                                               status
base/7/x86_64                                             CentOS-7 - Base                                                                                         10,072
docker-ce-stable/7/x86_64                                 Docker CE Stable - x86_64                                                                                  139
epel/x86_64                                               Extra Packages for Enterprise Linux 7 - x86_64                                                          13,728
extras/7/x86_64                                           CentOS-7 - Extras                                                                                          500
mariadb                                                   MariaDB                                                                                                    101
nginx/x86_64                                              nginx repo                                                                                                 260
nodesource/x86_64                                         Node.js Packages for Enterprise Linux 7 - x86_64                                                           121
remi                                                      Remi's RPM repository for Enterprise Linux 7 - x86_64                                                    7,413
remi-debuginfo/x86_64                                     Remi's RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                                        3,494
remi-php55                                                Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64                                              448
remi-php55-debuginfo/x86_64                               Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                                  319
remi-php56                                                Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64                                              452
remi-php56-debuginfo/x86_64                               Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                                  321
remi-safe                                                 Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                                               4,688
remi-test                                                 Remi's test RPM repository for Enterprise Linux 7 - x86_64                                               1,845
remi-test-debuginfo/x86_64                                Remi's test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                                     844
updates/7/x86_64                                          CentOS-7 - Updates                                                                                       3,411
vesta/x86_64                                              Vesta - cmmnt                                                                                               27
repolist: 48,183

どうですか?

ベストアンサー1

問題は、php-pecl-zip-1.20.0-1.el7.remi.5.6.x86_64インストール(PHP5.6の一部)とインストールphp-common-7.4.0~RC1-1.el7.remi.x86_64(PHP7.4)を実行しましたが、矛盾があることです。

PHP7.4に移行する場合:

  • まず、すべての現在のパッケージを書き留めますphp*rpm -qa | grep php)。
  • すべてのphp-*パッケージを削除
  • remi-php55/remi-php56リポジトリを無効にする
  • remi-php74リポジトリを有効にする

最後に、前述のPHPパッケージを再インストールしてください。

おすすめ記事