Linux

為什麼我的 RHEL6 x86_64 伺服器試圖安裝 libselinux.i686?

  • February 14, 2012

剛剛在測試 VirtualBox 伺服器上使用 RHEL 6 DVD 進行了全新安裝:

[root@bt-rhel6-1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)

我確定它是 x86_64 機器:

[root@bt-rhel6-1 ~]# uname -a
Linux bt-rhel6-1.local 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

並且沒有安裝其他 i686 軟體包:

[root@bt-rhel6-1 ~]# rpm -qa | grep i686
[root@bt-rhel6-1 ~]# rpm -qa | grep x86_64 | wc -l
331

但是當我這樣做時yum update

[root@bt-rhel6-1 ~]# yum update 2>&1 | grep i686
---> Package libselinux.i686 0:2.0.94-5.el6 will be installed
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libdl.so.2 for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.8) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.2.4) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.2.3) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.2) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.2) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: libc.so.6 for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: ld-linux.so.2(GLIBC_2.3) for package: libselinux-2.0.94-5.el6.i686
--> Processing Dependency: ld-linux.so.2 for package: libselinux-2.0.94-5.el6.i686
---> Package glibc.i686 0:2.12-1.47.el6_2.5 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.47.el6_2.5.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.47.el6_2.5.i686
---> Package nss-softokn-freebl.i686 0:3.12.9-11.el6 will be installed
Error: Protected multilib versions: libselinux-2.0.94-5.2.el6.x86_64 != libselinux-2.0.94-5.el6.i686

這是我的儲存庫:

[root@bt-rhel6-1 ~]# yum repolist
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
repo id                                                                           repo name                                                                                                              status
epel                                                                              Extra Packages for Enterprise Linux 6 - x86_64                                                                         6,893
rhel-x86_64-server-6                                                              Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)                                                               6,806
repolist: 13,699

是什麼賦予了?

這是由於selinux-ruby包錯誤。

yum -v update@Mark 推薦的命令幫助我解決了這個問題。我能夠通過手動安裝更新的軟體包來解決它,一切都很好。

引用自:https://serverfault.com/questions/356674