Re: Hosed yum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I ran into this problem aswell, and fixed it by installing python, rpm, and yum from the development tree.


[root@DONut ~]# rpm -qa |grep --regexp="yum" --regexp="rpm" --regexp="python"
gnome-python2-2.6.0-4
dbus-python-0.22-12
rpm-python-4.3.3-8
gnome-python2-bonobo-2.6.0-4
redhat-rpm-config-8.0.32-2
python-2.4-3
libxml2-python-2.6.16-5
gnome-python2-gtkhtml2-2.6.0-4
rpm-4.3.3-8
mod_python-3.1.3-7
rpm-build-4.3.3-8
gnome-python2-canvas-2.6.0-4
rpm-libs-4.3.3-8
rpm-devel-4.3.3-8
yum-2.1.12-2
python-devel-2.4-3


Per Bjornsson wrote:

On Thu, 2005-02-03 at 17:19 +1100, Rodd Clarkson wrote:
...
Now when I try to run yum i get:

[rodd@trevally packages]$ sudo yum update
Traceback (most recent call last):
 File "/usr/bin/yum", line 6, in ?
   import yummain
 File "/usr/share/yum-cli/yummain.py", line 23, in ?
   import yum
 File "__init__.py", line 21, in ?
ImportError: No module named rpm
[rodd@trevally packages]$

I recognize this. I ran into it a little while back when trying to
upgrade a box that had too little disk space to do it all at once. Turns
out that somewhere in the RPM/yum stack there's an SELinux dependency
that shows up at runtime. I don't really know what's going on, but at
least for me it went away after updating libselinux. (Of course, since
both yum and up2date use the rpm Python bindings and a simple "import
rpm" in yum is what dies, well, they're both hosed at the moment so
you'll have to download and 'rpm -Uvh' that package manually.)

Turns out we're not the only ones to hit this, it's in bugzilla:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144446

Good luck,
Per



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]