Saturday, January 14, 2012

ImportError: cannot import name _ yum error

Sponsored Links
You may get this error while  installing something using yum.


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

Yum is corrupt.

Update the yum forcefully.
You can get the latest yum from net. In my case it was for openvz container.

Download using wget:

Install it:
rpm -Uvh --force yum-3.2.22-37.el5.centos.noarch.rpm
Thats it.
Sponsored Links

No comments:

Post a Comment

Be nice. That's all.