我在安装 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