损坏的百胜包树

我尝试使用yum更新来更新我的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的服务器,请耐心等待。

安装所需的依赖关系:

 # 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 allyum update

这是我会做..删除python26

 yum remove python26 

然后更新你的系统

 yum clean all yum update 

那么如果你需要python 2.6,请尝试通过yum进行安装