yum 软件包树损坏

yum 软件包树损坏

我尝试使用 yum update 更新我的 EC2 实例上的操作系统,但出现以下错误:

Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile  * epel: serverbeach1.fedoraproject.org Skipping security plugin, no data Setting up Update Process Resolving Dependencies Skipping security plugin, no data
--> Running transaction check
---> Package cloud-init.noarch 0:0.5.14-13.amzn1 set to be updated
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-44.1.9.1.16.amzn1 set to be updated
---> Package python-markdown.noarch 0:2.0.3-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-markdown-2.0.3-1.el5.noarch
--> Processing Dependency: python-elementtree for package: python-markdown-2.0.3-1.el5.noarch
---> Package python26.x86_64 0:2.6.5-5.el5 set to be updated
--> Processing Dependency: libcrypto.so.6()(64bit) for package: python26-2.6.5-5.el5.x86_64
--> Processing Dependency: libdb-4.3.so()(64bit) for package: python26-2.6.5-5.el5.x86_64
--> Processing Dependency: libtermcap.so.2()(64bit) for package: python26-2.6.5-5.el5.x86_64
--> Processing Dependency: libssl.so.6()(64bit) for package: python26-2.6.5-5.el5.x86_64
--> Processing Dependency: libffi.so.5()(64bit) for package: python26-2.6.5-5.el5.x86_64
---> Package python26-libs.x86_64 0:2.6.5-5.el5 set to be updated
--> Running transaction check
---> Package db43.x86_64 0:4.3.29-10.9.amzn1 set to be updated
---> Package libffi.x86_64 0:3.0.5-1.el5 set to be updated
---> Package openssl098e.x86_64 0:0.9.8e-17.5.amzn1 set to be updated
---> Package python-markdown.noarch 0:2.0.3-1.el5 set to be updated
--> Processing Dependency: python-elementtree for package: python-markdown-2.0.3-1.el5.noarch
---> Package python24.x86_64 0:2.4.6-27.21.amzn1 set to be updated
---> Package python26.x86_64 0:2.6.5-5.el5 set to be updated
--> Processing Dependency: libtermcap.so.2()(64bit) for package: python26-2.6.5-5.el5.x86_64
--> Finished Dependency Resolution Error: Package: python26-2.6.5-5.el5.x86_64 (epel)
           Requires: libtermcap.so.2()(64bit) Error: Package: python-markdown-2.0.3-1.el5.noarch (epel)
           Requires: python-elementtree  You could try using --skip-broken to work around the problem  You could try running: rpm
-Va --nofiles --nodigest

我该如何解决这个问题?

谢谢

PS 我对基于 Debian 的系统有经验,但对基于 rpm 的系统没有经验。这是我的第一个基于 rpm 的服务器,所以请多多包涵。

答案1

安装所需的依赖项:

# libtermcap.so.2
wget ftp://ftp.sunet.se/pub/Linux/distributions/centos/5.5/os/x86_64/CentOS/libtermcap-2.0.8-46.1.x86_64.rpm
rpm -Uvh libtermcap-2.0.8-46.1.x86_64.rpm

# python-elementtree
wget ftp://ftp.sunet.se/pub/Linux/distributions/centos/5.5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh python-elementtree-1.2.6-5.x86_64.rpm

然后yum clean all尝试yum update

答案2

我会这样做..删除 python26

yum remove python26

然后更新你的系统

yum clean all
yum update

如果你需要 python 2.6,请尝试通过 yum 安装它

相关内容