Yum

RHEL5 - 由於 i386 rpm 與 x86_64 rpm 衝突,無法更新軟體包

  • April 14, 2015

嘗試執行 yum update 時,我收到以下錯誤:

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
 file /usr/lib/rpm/macros from install of rpm-4.4.2.3-36.el5_11.x86_64 conflicts with file from package rpm-4.4.2.3-36.el5_11.i386
 file /usr/lib/rpm/noarch-linux/macros from install of rpm-4.4.2.3-36.el5_11.x86_64 conflicts with file from package rpm-4.4.2.3-36.el5_11.i386
 file /usr/share/man/man8/pam_sss.8.gz from install of sssd-client-1.5.1-71.el5.x86_64 conflicts with file from package sssd-client-1.5.1-70.el5.i386
 file /usr/share/man/man8/sssd_krb5_locator_plugin.8.gz from install of sssd-client-1.5.1-71.el5.x86_64 conflicts with file from package sssd-client-1.5.1-70.el5.i386

Error Summary
-------------

我曾嘗試強制更新各個軟體包,但我沒有任何運氣。誰能幫我解決這個問題?看起來 x86_64 包和 i386 包是對頭。這是在設置了跳過損壞標誌的情況下執行的。

我認為在這種情況下使用整個數據包名稱會更好

yum remove rpm-4.4.2.3-36.el5_11.i386

yum remove sssd-client-1.5.1-70.el5.i386

刪除衝突的包:

yum 刪除 rpm sssd-client

然後重新安裝它們:

yum install rpm sssd-client

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