PDA

View Full Version : Yum went poof



zeromaster
24th November 2007, 06:14 AM
Ive been having problems getting yum to work at all not sure whats causing it when i run it I get


There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: undefined symbol: rpmdbCheckTerminate

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.4 (#1, Oct 23 2006, 13:58:00)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq

Ive tried removing yum and reinstalling also tried removing and updating python


rpm -qa | grep -i python
returns the following


mod_python-3.2.8-3
python-2.4.4-1.fc6
python-devel-2.4.4-1.fc6
gnome-python2-2.16.2-2.fc6
python-urlgrabber-2.9.8-2
python-elementtree-1.2.6-4.2.1
libxml2-python-2.6.29-1.fc6
rpm-python-4.4.2.1-1.fc6
python-sqlite-1.1.7-1.2
gnome-python2-bonobo-2.16.2-2.fc6
python-numeric-23.7-2.2.1
python-docs-2.4.4-1.fc6
gnome-python2-gconf-2.16.2-2.fc6
audit-libs-python-1.4.2-5.fc6
libselinux-python-1.33.4-2.fc6
python-ldap-2.0.6-5.2.1
dbus-python-0.70-6
python-tools-2.4.4-1.fc6
notify-python-0.1.0-3.fc6
gnome-python2-gnomevfs-2.16.2-2.fc6
gnome-python2-canvas-2.16.2-2.fc6

Any suggestions would really be appreciated this is driving me nuts

RHamel
24th November 2007, 07:10 AM
Fedora Core 6 is really at end-of-life. You should update to Fedora 7 or Fedora 8.

zeromaster
24th November 2007, 09:40 AM
Ya thats precisely why I need to get yum working

leigh123linux
24th November 2007, 09:59 AM
Ya thats precisely why I need to get yum working


post the full error message ( what module ? this is normally listed in the error message )

zeromaster
24th November 2007, 10:19 AM
I did
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: undefined symbol: rpmdbCheckTerminate

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.4 (#1, Oct 23 2006, 13:58:00)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq

I think the problem is residing with python reinstalling to the wrong directory
instead of usr/lib its going to usr/local/lib

Is there an easy way to totally strip python out to reinstall ive tried installing from rpm and from source which I think has cause problems

leigh123linux
24th November 2007, 09:14 PM
Can you post


rpm -qa |grep rpm

zeromaster
24th November 2007, 10:41 PM
[root@webhosting ~]# rpm -qa |grep rpm
rpm-build-4.4.2.1-2.fc6
redhat-rpm-config-8.0.40-1
rpm-devel-4.4.2.1-2.fc6
rpm-debuginfo-5.0-0.1.0.fc6.rf
rpm-libs-4.4.2-15.2
rpm-python-4.4.2.1-2.fc6

leigh123linux
24th November 2007, 11:40 PM
[root@webhosting ~]# rpm -qa |grep rpm
rpm-build-4.4.2.1-2.fc6
redhat-rpm-config-8.0.40-1
rpm-devel-4.4.2.1-2.fc6
rpm-debuginfo-5.0-0.1.0.fc6.rf
rpm-libs-4.4.2-15.2
rpm-python-4.4.2.1-2.fc6


Your rpm-libs looks like the wrong version to me try



su
wget http://fedora.tu-chemnitz.de/pub/linux/fedora-core/updates/6/i386/rpm-libs-4.4.2.1-2.fc6.i386.rpm
rpm -U rpm-libs-4.4.2.1-2.fc6.i386.rpm --replacefiles --replacepkgs --oldpackage

zeromaster
25th November 2007, 12:20 AM
well i got that fixed yum still not working
[root@webhosting /]# rpm -qa |grep rpm
rpm-build-4.4.2.1-2.fc6
rpm-libs-4.4.2.1-2.fc6
redhat-rpm-config-8.0.40-1
rpm-devel-4.4.2.1-2.fc6
rpm-debuginfo-5.0-0.1.0.fc6.rf
rpm-python-4.4.2.1-2.fc6
rpm-4.4.2.1-2.fc6

iamzen
25th November 2007, 02:03 AM
A simpler solution since you stated you are going to update--download the ISO for Fedora 8 since the install will work better that way especially since you are trying a 2 version upgrade. Just back up your home folder before doing the install.

doniking
2nd July 2009, 08:59 AM
Your rpm-libs looks like the wrong version to me try



su
wget http://fedora.tu-chemnitz.de/pub/linux/fedora-core/updates/6/i386/rpm-libs-4.4.2.1-2.fc6.i386.rpm
rpm -U rpm-libs-4.4.2.1-2.fc6.i386.rpm --replacefiles --replacepkgs --oldpackage

hey, i was facing this problem too when installing on openvz centos5 minimal.
but i added --nodeps



rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-libs-4.4.2.3-9.el5.i386.rpm --replacefiles --replacepkgs --oldpackage --nodeps


thanks!