| « Book: The Charge of the Light Brigade and Other Poems | Xorg on openSuSE on certain ES1000 ATI card on HP server » |
Yum error on Redhat Enterprise 5 (rhel5)
[root@whatever ~]# yum list yum-rhn-plugin
Traceback (most recent call last):
File "/usr/bin/yum", line 28, in ?
import yummain
File "/usr/share/yum-cli/yummain.py", line 29, in ?
from yum import _
ImportError: cannot import name _
At first I though this was because there was no yum repository. But there is not supposed to be! The Redhat enterprise registration somehow takes care of this, I think /etc/sysconfig/rhn/up2date has something to do with it.
The solution was to log into redhat network and download a new yum RPM and install it the manual way
rpm -Uvh yum-3.2.19-18.el5.noarch.rpm
and then it worked again. The old version was yum-3.2.8-7.el5 and I found the package by searching for yum in the "Packages" box near the top at the redhat network web page when I was logged in.