我在 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
您的系统存在多个需要修复的问题:
首先,你有 rpmdb 问题(重复的包),因为之前的运行
yum
被中断了。您可以尝试使用以下方法进行清理:其次,您的系统有一个名为的第三方存储库
hop5
,它提供的软件包与 RHEL 提供的软件包有冲突。需要禁用或删除此存储库。如果您实际使用的是此存储库中的软件包,则应改为从官方 RHEL 来源获取它们,或者对于第三方软件包,使用更可靠的来源。最后,您的系统似乎被锁定到 RHEL 6.6,您需要更新到当前版本(今天是 6.8)。您可以使用以下方法解决此问题: