首页 > 解决方案 > Centos 8,yum 更新命令不起作用。给出以下错误。找不到 php-common-7.2

问题描述

  1. 我试图删除 php-common-7.2 但找不到它的位置。

     Problem: package php-pecl-igbinary-3.2.2-1.el8.remi.7.2.x86_64 requires php(api) = 20170718-64, but none of the providers can be installed
     - package php-pecl-igbinary-3.2.2-1.el8.remi.7.2.x86_64 requires php(zend-abi) = 20170718-64, but none of the providers can be installed
     - cannot install both php-common-7.2.34-3.el8.remi.x86_64 and php-common-7.4.16-1.el8.remi.x86_64
     - cannot install both php-common-7.2.34-4.el8.remi.x86_64 and php-common-7.4.16-1.el8.remi.x86_64
     - cannot install the best update candidate for package php-pecl-igbinary-3.2.1-1.el8.remi.7.4.x86_64
     - problem with installed package php-common-7.4.16-1.el8.remi.x86_64
     - package php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is filtered out by modular filtering
     (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
    
  2. 我的服务器配置是

     NAME="CentOS Linux"
     VERSION="8"
     ID="centos"
     ID_LIKE="rhel fedora"
     VERSION_ID="8"
     PLATFORM_ID="platform:el8"
     PRETTY_NAME="CentOS Linux 8"
     ANSI_COLOR="0;31"
     CPE_NAME="cpe:/o:centos:centos:8"
     HOME_URL="https://centos.org/"
     BUG_REPORT_URL="https://bugs.centos.org/"
     CENTOS_MANTISBT_PROJECT="CentOS-8"
     CENTOS_MANTISBT_PROJECT_VERSION="8"
     Apache Web Server
     php7.4-cli
     using Webmin & virtaulmin`
    

标签: centos8

解决方案


您正在尝试使用 PHP 7.4 为 PHP 7.2 安装 igbinary 扩展。这行不通。

如需正确配置,请按照向导说明进行操作

并且没有足够的信息来获得更多帮助:

rpm -qa php\*
dnf repolist
dnf module list PHP

推荐阅读