Árvore do pacote yum quebrado

1

Eu tentei atualizar o sistema operacional na minha instância do EC2 usando a atualização do yum, mas recebo o seguinte erro:

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

Como posso resolver o problema?

Obrigado

P.S. Tenho experiência em sistemas baseados em Debian mas não em rpm. Este é o meu primeiro servidor baseado em rpm, por isso seja tolerante.

    
por Roman Prykhodchenko 05.11.2010 / 06:41

2 respostas

2

Instalar as dependências necessárias:

# 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

Em seguida, experimente yum clean all e yum update

    
por 05.11.2010 / 07:04
0

Aqui está o que eu faria .. remover python26

yum remove python26

Em seguida, atualize seu sistema

yum clean all
yum update

Então, se você precisar do python 2.6, tente instalá-lo via yum

    
por 05.11.2010 / 07:02