在 Redhat 上安装 HHVM 时出现依赖和重复错误

在 Redhat 上安装 HHVM 时出现依赖和重复错误

我在 Redhat-6.6 (Santiago) 上安装了 HHVM using yum install hhvm,但它返回以下错误

Error: Package: gcc-java-4.4.7-17.el6.x86_64 (rhel-6-server-rpms)
 Requires: gcc = 4.4.7-17.el6
             Removing: gcc-4.4.7-11.el6.x86_64 (@rhel-x86_64-server-6)
                            gcc = 4.4.4-15.el6
                            gcc = 4.4.7-11.el6
                        Updated By: gcc-4.8.2-8.el6.x86_64 (hop5)
                            gcc = 4.8.2-8.el6
                        Available: gcc-4.4.4-13.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.4-13.el6
                        Available: gcc-4.4.5-6.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.5-6.el6
                            gcc = 4.4.4-15.el6
                        Available: gcc-4.4.6-3.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.6-3.el6
                            gcc = 4.4.4-15.el6
                        Available: gcc-4.4.6-4.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.6-4.el6
                            gcc = 4.4.4-15.el6
                        Available: gcc-4.4.7-3.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.7-3.el6
                            gcc = 4.4.4-15.el6
                        Available: gcc-4.4.7-4.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.7-4.el6
                            gcc = 4.4.4-15.el6
                        Available: gcc-4.4.7-4.1.el6_5.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.7-4.1.el6_5
                            gcc = 4.4.4-15.el6_5
                        Available: gcc-4.4.7-16.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.7-16.el6
                            gcc = 4.4.4-15.el6
                        Available: gcc-4.4.7-17.el6.x86_64 (rhel-6-server-rpms)
                            gcc = 4.4.7-17.el6
                            gcc = 4.4.4-15.el6
                        Available: gcc-4.6.3-2.el6.x86_64 (hop5)
                            gcc = 4.6.3-2.el6
                        Available: gcc-4.8.2-7.el6.x86_64 (hop5)
                            gcc = 4.8.2-7.el6  You could try using --skip-broken to work around the problem
             ** Found 8 pre-existing rpmdb problem(s), 'yum check' output follows: 12:dhcp-common-4.1.1-51.P1.el6.x86_64 is a duplicate with
             12:dhcp-common-4.1.1-43.P1.el6_6.1.x86_64
             glibc-common-2.12-1.192.el6.x86_64 is a duplicate with
             glibc-common-2.12-1.149.el6_6.5.x86_64
             glibc-common-2.12-1.192.el6.x86_64 has missing requires of glibc =
             ('0', '2.12', '1.192.el6') kernel-headers-2.6.32-642.3.1.el6.x86_64 is
             a duplicate with kernel-headers-2.6.32-504.12.2.el6.x86_64
             libgcc-4.4.7-17.el6.x86_64 is a duplicate with
             libgcc-4.4.7-11.el6.x86_64 ncurses-base-5.7-4.20090207.el6.x86_64 is a
             duplicate with ncurses-base-5.7-3.20090208.el6.x86_64
             nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 is a duplicate with
             nss-softokn-freebl-3.14.3-22.el6_6.x86_64 tzdata-2016f-1.el6.noarch is
             a duplicate with tzdata-2015a-1.el6.noarch

我尝试了以下

yum clean all
rpm --rebuilddb
yum update

答案1

您的系统有多个问题需要修复:

  • 首先,由于之前的运行yum中断,导致 rpmdb 出现问题(重复包)。您可以尝试清理一下和:

    yum-complete-transaction   # which may fail
    package-cleanup --cleandupes
    
  • 其次,您的系统有一个名为的第三方存储库,hop5它提供的软件包与 RHEL 提供的软件包相冲突。此存储库需要已禁用或已删除。如果您确实正在使用此存储库中的软件包,则应从官方 RHEL 来源获取它们,或者对于第三方软件包,从更可靠的来源获取它们。

    yum-config-manager --disable hop5
    
  • 最后,你的系统似乎锁定升级到 RHEL 6.6,您需要更新到当前版本(今天是 6.8)。您可以使用以下方法修复此问题:

    subscription-manager release --unset
    yum --releasever=6.8 update
    

相关内容