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 软件包。

相关内容