Jump to Navigation

212 - yum corrupted

You get the following error after execute yum command. Probably yum is corruped.

Error :

Traceback (most recent call last):
  File "/usr/bin/yum", line 28, in ?
    import yummain
  File "/usr/share/yum-cli/yummain.py", line 30, in ?
    from yum import _
ImportError: cannot import name _

Solution :

Update the yum forcefully. You can get the latest yum from net.

Download using wget:
# wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-37.el5.cento...

Install it:
# rpm -Uvh --force yum-3.2.22-37.el5.centos.noarch.rpm

* Yum Remove and then Install

# yum remove PACKAGE
# yum install PACKAGE

* Force Erase and then Yum Install

# rpm -e --nodeps PACKAGE
# yum install PACKAGE

or

# yum reinstall  required_package

* Prune RPM Database and then Yum Install

# rpm -e --justdb --nodeps PACKAGE
# yum install PACKAGE

 

 

 

 



Main menu 2

Story | by Dr. Radut