내가 실행할 때 :
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 패키지를 다시 설치하세요.