我的 yum 安裝有問題。
Yum 需要 Python:
rpm -i yum-3.2.29-81.el6.centos.noarch.rpm
error: Failed dependencies:
python(abi) = 2.6 is needed by yum-3.2.29-81.el6.centos.noarch
Python 需要 Python 函式庫:
rpm -i python-2.6.6-68.el6_10.x86_64.rpm
error: Failed dependencies:
libpython2.6.so.1.0()(64bit) is needed by python-2.6.6-68.el6_10.x86_64
python-libs(x86-64) = 2.6.6-68.el6_10 is needed by python-2.6.6-68.el6_10.x86_64
Python 函式庫需要 expat 函式庫(以及 Python 本身!這個迴圈已經閉合!):
rpm -i python-libs-2.6.6-66.el6_8.x86_64.rpm
warning: python-libs-2.6.6-66.el6_8.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
libexpat.so.1(EXPAT_2_0_1_RH)(64bit) is needed by python-libs-2.6.6-66.el6_8.x86_64
libffi.so.5()(64bit) is needed by python-libs-2.6.6-66.el6_8.x86_64
libgdbm.so.2()(64bit) is needed by python-libs-2.6.6-66.el6_8.x86_64
python(abi) = 2.6 is needed by python-libs-2.6.6-66.el6_8.x86_64
但 expat 已經安裝了:
rpm -i expat-2.0.1-13.el6_8.x86_64.rpm
warning: expat-2.0.1-13.el6_8.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
package expat-2.1.0-10.el7_3.x86_64 (which is newer than expat-2.0.1-13.el6_8.x86_64) is already installed
file /lib64/libexpat.so.1 from install of expat-2.0.1-13.el6_8.x86_64 conflicts with file from package expat-2.1.0-10.el7_3.x86_64
file /usr/bin/xmlwf from install of expat-2.0.1-13.el6_8.x86_64 conflicts with file from package expat-2.1.0-10.el7_3.x86_64
我不知道如何解決這個問題。請幫忙。先致謝!
答案1
這裡有兩個問題:
1)一次安裝它們:
rpm -i yum-3.2.29-81.el6.centos.noarch.rpm python-2.6.6-68.el6_10.x86_64.rpm python-libs-2.6.6-66.el6_8.x86_64.rpm
2)您需要一個提供libexpat.so.1(EXPAT_2_0_1_RH)(64bit)
.檢查您的包裹提供什麼rpm -q --provides expat