Como reinstalar o yum e o que significa 'rpm = 4.8.0-55.el6'?

0

Existe um erro com o comando yum . Eu acredito que é um problema difícil pesquisar vários dias sem solução. Eu finalmente decido reinstalar o python e o yum. Eu ainda instalei o python com sucesso, mas infelizmente, não consegui instalar o yum.

Primeiro, eu apaguei python e yum do sistema baseado no CentOS6.5

# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps 
# whereis python |xargs rm -frv
# whereis python 
# rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps
# whereis yum |xargs rm -frv

Depois, baixei esses arquivos:

-rw-r--r-- 1 root root   77968 Aug 19  2016 python-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root  176932 Aug 19  2016 python-devel-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root   37052 Jul  3  2011 python-iniparse-0.3.1-2.1.el6.noarch.rpm
-rw-r--r-- 1 root root 5589812 Aug 19  2016 python-libs-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root   78448 May 12  2016 python-pycurl-7.19.0-9.el6.x86_64.rpm
-rw-r--r-- 1 root root  343724 Jul  3  2011 python-setuptools-0.6.10-3.el6.noarch.rpm
-rw-r--r-- 1 root root   87660 May 12  2016 python-urlgrabber-3.9.1-11.el6.noarch.rpm
# System need rpm-python 
-rw-r--r-- 1 root root   61520 May 12  2016 rpm-python-4.8.0-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 1042364 Mar 23 23:04 yum-3.2.29-81.el6.centos.noarch.rpm
-rw-r--r-- 1 root root   27224 Sep 26  2011 yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
-rw-r--r-- 1 root root   30484 Mar 23 22:59 yum-plugin-aliases-1.1.30-40.el6.noarch.rpm
-rw-r--r-- 1 root root   33524 Mar 23 23:00 yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
-rw-r--r-- 1 root root   26284 Mar 23 22:59 yum-plugin-protectbase-1.1.30-40.el6.noarch.rpm
-rw-r--r-- 1 root root  115416 Mar 23 23:00 yum-utils-1.1.30-40.el6.noarch.rpm

Corri o rpm -Uvh --replacepkgs python*.rpm para reinstalar com êxito o python.

Preparing...                ########################################### [100%]
   1:python-libs            ########################################### [ 14%]
   2:python                 ########################################### [ 29%]
   3:python-pycurl          ########################################### [ 43%]
   4:python-urlgrabber      ########################################### [ 57%]
   5:python-devel           ########################################### [ 71%]
   6:python-iniparse        ########################################### [ 86%]
   7:python-setuptools      ########################################### [100%]

Na etapa final, executei rpm -Uvh --replacepkgs rpm-python*.rpm yum*.rpm , mas ele falhou. Abaixo está a mensagem de erro:

error: Failed dependencies:
    rpm = 4.8.0-55.el6 is needed by rpm-python-4.8.0-55.el6.x86_64
    libxml2-python is needed by yum-utils-1.1.30-40.el6.noarch

# rpm --version
RPM version 4.8.0

Não consigo encontrar nada sobre rpm = 4.8.0-55.el6 , o que diabos é? Espero que você tenha ajudado, obrigado antecipadamente!

    
por John Zhow 25.04.2017 / 15:08

1 resposta

0

Isso significa que o pacote rpm-python está procurando por uma versão muito específica de rpm , ou seja, rpm-4.8.0-55.el6

    
por 25.04.2017 / 16:40

Tags