我正在做一个yum update
但我有这个错误:
Error: Package: php56w-opcache-5.6.18-1.w6.x86_64 (webtatic)
Requires: php56w-common(x86-64) = 5.6.18-1.w6
Removing: php56w-common-5.6.17-1.w6.x86_64 (@webtatic)
php56w-common(x86-64) = 5.6.17-1.w6
Obsoleted By: php-common-5.6.18-1.el6.remi.x86_64 (remi-php56)
Not found
Updated By: php56w-common-5.6.18-1.w6.x86_64 (webtatic)
php56w-common(x86-64) = 5.6.18-1.w6
Error: Package: php56w-mysql-5.6.18-1.w6.x86_64 (webtatic)
Requires: php56w-pdo(x86-64)
Removing: php56w-pdo-5.6.17-1.w6.x86_64 (@webtatic)
php56w-pdo(x86-64) = 5.6.17-1.w6
Obsoleted By: php-pdo-5.6.18-1.el6.remi.x86_64 (remi-php56)
Not found
Updated By: php56w-pdo-5.6.18-1.w6.x86_64 (webtatic)
php56w-pdo(x86-64) = 5.6.18-1.w6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我应该怎么做才能解决这个问题?我尝试使用 --skip-broken,但它不会更新。谢谢。
您同时配置了Webtatic和Remi存储库,两者都提供了PHP堆栈。这只能引起各种冲突问题。
启用"remi-php56"时,尝试安装 php-opcache 和 php-mysqlnd(而不是 php56w-opcache 和 php56w-mysql)。
P.S. Remi 的 RPM 存储库中的软件包尝试促进从其他第三方后备升级,但缺少一些帮助程序,将在下一个版本(5.6.19、7.0.4...)
绝对不要运行类似的存储库,它只会给你带来痛苦。
您可以使用上面答案中提到的 disablerepo 命令,或手动编辑/etc/yum.repos.d/*.repo set enabled=0 中的存储库列表来禁用存储库。
EPEL 存储库是主流受支持版本的最佳选择