LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-23-2007, 05:45 PM   #1
zeromaster
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Rep: Reputation: 0
Yum broken Incorrect python version FC6


Ok I have a server running FC6 and cpanel somehow my python has gotten hosed and broken yum.

This is the only error i get

Code:
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.3 (#1, Oct 23 2006, 14:19:47) 
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  wiki.linux.duke.edu/YumFaq
Anyone that can help me resolve this issue would be greatly apppreciated not having yum makes life miserable on the server
 
Old 11-23-2007, 06:20 PM   #2
zeromaster
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Here if this help i upgraded fc5 to fc6 many months ago but yum only recently stopped working

rpm -qa | grep -i python
Code:
returns the following 
audit-libs-python-1.3-2.fc5
gnome-python2-2.12.4-1
gnome-python2-bonobo-2.12.4-1
mod_python-3.2.8-3
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
python-tools-2.4.3-9.FC5
python-docs-2.4.3-0.9.FC5
python-numeric-23.7-2.2.1
libselinux-python-1.33.4-2.fc6
python-ldap-2.0.6-5.2.1
python-2.4.3-9.FC5
gnome-python2-canvas-2.12.4-1
dbus-python-0.70-6
python-devel-2.4.3-9.FC5
gnome-python2-gnomevfs-2.12.4-1
obviously looks like theres some fc5 stuff that didnt update

obviously i cant just remove the python-2.4.3-9.FC5 cause it just spits out
[root@webhosting /]# rpm -e python-2.4.3-9.FC5 error:
Code:
Failed dependencies:
        libpython2.4.so.1.0 is needed by (installed) libsemanage-1.6.2-2.fc5.i386
        libpython2.4.so.1.0 is needed by (installed) mod_python-3.2.8-3.i386
        libpython2.4.so.1.0 is needed by (installed) gnome-python2-gnomevfs-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) python-urlgrabber-2.9.8-2.noarch
        python(abi) = 2.4 is needed by (installed) cracklib-2.8.6-1.2.1.i386
        python(abi) = 2.4 is needed by (installed) pygtk2-2.8.6-1.fc5.i386
        python(abi) = 2.4 is needed by (installed) libselinux-python-1.33.4-2.fc6.i386
        python(abi) = 2.4 is needed by (installed) rhpl-0.185-1.i386
        python(abi) = 2.4 is needed by (installed) python-elementtree-1.2.6-4.2.1.i386
        python(abi) = 2.4 is needed by (installed) pycairo-1.0.2-1.2.1.i386
        python(abi) = 2.4 is needed by (installed) libsemanage-1.6.2-2.fc5.i386
        python(abi) = 2.4 is needed by (installed) pyxf86config-0.3.24-1.i386
        python(abi) = 2.4 is needed by (installed) pygtk2-libglade-2.8.6-1.fc5.i386
        python(abi) = 2.4 is needed by (installed) svnmailer-1.0.8-1.fc5.noarch
        python(abi) = 2.4 is needed by (installed) kudzu-1.2.34.5-1.i386
        python(abi) = 2.4 is needed by (installed) audit-libs-python-1.3-2.fc5.i386
        python(abi) = 2.4 is needed by (installed) libxml2-python-2.6.29-1.fc6.i386
        python(abi) = 2.4 is needed by (installed) policycoreutils-1.30.10-2.fc5.i386
        python(abi) = 2.4 is needed by (installed) newt-0.52.2-6.i386
        python(abi) = 2.4 is needed by (installed) authconfig-5.2.3-1.i386
        python(abi) = 2.4 is needed by (installed) subversion-1.4.3-2.fc6.i386
        python(abi) = 2.4 is needed by (installed) rpm-python-4.4.2.1-1.fc6.i386
        python(abi) = 2.4 is needed by (installed) libuser-0.54.5-1.i386
        python(abi) = 2.4 is needed by (installed) python-sqlite-1.1.7-1.2.i386
        python(abi) = 2.4 is needed by (installed) pirut-1.0.3-0.fc5.noarch
        python(abi) = 2.4 is needed by (installed) gnome-python2-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) python-ldap-2.0.6-5.2.1.i386
        python(abi) = 2.4 is needed by (installed) tkinter-2.4.3-9.FC5.i386
        python(abi) = 2.4 is needed by (installed) python-tools-2.4.3-9.FC5.i386
        python(abi) = 2.4 is needed by (installed) gnome-python2-canvas-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) python-numeric-23.7-2.2.1.i386
        python(abi) = 2.4 is needed by (installed) dbus-python-0.70-6.i386
        python(abi) = 2.4 is needed by (installed) gnome-python2-bonobo-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) pyorbit-2.14.0-1.i386
        python(abi) = 2.4 is needed by (installed) vte-0.12.2-1.fc5.1.i386
        python(abi) = 2.4 is needed by (installed) python-devel-2.4.3-9.FC5.i386
        python(abi) = 2.4 is needed by (installed) mod_python-3.2.8-3.i386
        python(abi) = 2.4 is needed by (installed) yum-2.6.1-0.fc5.noarch
        python(abi) = 2.4 is needed by (installed) gnome-python2-gnomevfs-2.12.4-1.i386
        python-abi = 2.4 is needed by (installed) python-elementtree-1.2.6-4.2.1.i386
        python-abi = 2.4 is needed by (installed) pyxf86config-0.3.24-1.i386
        python-abi = 2.4 is needed by (installed) svnmailer-1.0.8-1.fc5.noarch
        python-abi = 2.4 is needed by (installed) gnome-python2-2.12.4-1.i386
        python-abi = 2.4 is needed by (installed) python-ldap-2.0.6-5.2.1.i386
        python-abi = 2.4 is needed by (installed) mod_python-3.2.8-3.i386
        python2 >= 2.3 is needed by (installed) pygtk2-2.8.6-1.fc5.i386
        python2 is needed by (installed) system-config-keyboard-1.2.7-1.1.noarch
        python2 is needed by (installed) system-config-users-1.2.47-1.fc5.noarch
        python2 is needed by (installed) system-config-soundcard-1.2.16-2.noarch
        python2 is needed by (installed) system-config-date-1.8.8-1.fc5.noarch
        python2 is needed by (installed) system-config-rootpassword-1.1.8-1.1.noarch
        python2 >= 2.3 is needed by (installed) pyorbit-2.14.0-1.i386
        python2 is needed by (installed) system-config-language-1.1.11-1.noarch
        python >= 2.4 is needed by (installed) rhpl-0.185-1.i386
        python >= 2.3 is needed by (installed) system-config-lvm-1.0.18-1.2.FC5.noarch
        python is needed by (installed) firstboot-tui-1.4.6-1.noarch
        python is needed by (installed) system-config-network-tui-1.3.30-2.1.noarch
        python >= 2.4 is needed by (installed) authconfig-5.2.3-1.i386
        python = 2.4.3-9.FC5 is needed by (installed) tkinter-2.4.3-9.FC5.i386
        python is needed by (installed) yum-updateonboot-0.6-3.fc5.noarch
        python = 2.4.3-9.FC5 is needed by (installed) python-tools-2.4.3-9.FC5.i386
        python = 2.4.3 is needed by (installed) python-docs-2.4.3-0.9.FC5.noarch
        python is needed by (installed) avahi-0.6.16-4.fc6.i386
        python = 2.4.3-9.FC5 is needed by (installed) python-devel-2.4.3-9.FC5.i386
        python is needed by (installed) yum-2.6.1-0.fc5.noarch
        /usr/bin/python is needed by (installed) python-urlgrabber-2.9.8-2.noarch
        /usr/bin/python is needed by (installed) gettext-0.14.5-3.i386
        /usr/bin/python is needed by (installed) pygtk2-2.8.6-1.fc5.i386
        /usr/bin/python is needed by (installed) rhpl-0.185-1.i386
        /usr/bin/python is needed by (installed) svnmailer-1.0.8-1.fc5.noarch
        /usr/bin/python is needed by (installed) system-config-network-tui-1.3.30-2.1.noarch
        /usr/bin/python is needed by (installed) kudzu-1.2.34.5-1.i386
        /usr/bin/python is needed by (installed) libxml2-python-2.6.29-1.fc6.i386
        /usr/bin/python is needed by (installed) policycoreutils-1.30.10-2.fc5.i386
        /usr/bin/python is needed by (installed) system-config-keyboard-1.2.7-1.1.noarch
        /usr/bin/python is needed by (installed) authconfig-5.2.3-1.i386
        /usr/bin/python is needed by (installed) subversion-1.4.3-2.fc6.i386
        /usr/bin/python is needed by (installed) authconfig-gtk-5.2.3-1.i386
        /usr/bin/python is needed by (installed) pirut-1.0.3-0.fc5.noarch
        /usr/bin/python is needed by (installed) python-tools-2.4.3-9.FC5.i386
        /usr/bin/python is needed by (installed) libxml2-devel-2.6.29-1.fc6.i386
        /usr/bin/python is needed by (installed) diskdumputils-1.2.8-4.i386
        /usr/bin/python is needed by (installed) smartmontools-5.36-fc5.1.i386
        /usr/bin/python is needed by (installed) system-config-language-1.1.11-1.noarch
        /usr/bin/python is needed by (installed) yum-2.6.1-0.fc5.noarch
        /usr/bin/python2 is needed by (installed) system-config-lvm-1.0.18-1.2.FC5.noarch
        /usr/bin/python2 is needed by (installed) firstboot-tui-1.4.6-1.noarch
        /usr/bin/python2 is needed by (installed) system-config-users-1.2.47-1.fc5.noarch
        /usr/bin/python2 is needed by (installed) system-config-soundcard-1.2.16-2.noarch
        /usr/bin/python2 is needed by (installed) system-config-date-1.8.8-1.fc5.noarch
        /usr/bin/python2 is needed by (installed) system-config-rootpassword-1.1.8-1.1.noarch

Any help would be appreciated how to get this running corectly again
 
Old 11-23-2007, 06:22 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Can you enter the command
Code:
#rpm -qa  grep -i python
I suggest you try reinstalling rpm-python.
 
Old 11-23-2007, 06:25 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Oops, just seen your updated info. For each package listed as belonging to FC5, you could download the corresponding version or FC6 and install it with rpm.
 
Old 11-23-2007, 09:13 PM   #5
zeromaster
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
hmm

Well i managed to upgrade all those packaes to fc6 versions still getting the same error

now heres the output from pyhton check

Code:
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
 
Old 11-23-2007, 09:16 PM   #6
zeromaster
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
?

[root@webhosting /]# rpm -qa grep -i python
Name : python Relocations: (not relocatable)
Version : 2.4.4 Vendor: Red Hat, Inc.
Release : 1.fc6 Build Date: Mon 23 Oct 2006 01:02:53 PM CDT
Install Date: Fri 23 Nov 2007 06:37:36 PM CST Build Host: hs20-bc2-3.build.redhat.com
Group : Development/Languages Source RPM: python-2.4.4-1.fc6.src.rpm
Size : 21630958 License: PSF - see LICENSE
Signature : DSA/SHA1, Mon 06 Nov 2006 02:15:51 PM CST, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.python.org/
Summary : An interpreted, interactive, object-oriented programming language.
Description :
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).

Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that need
a programmable interface. This package contains most of the standard
Python modules, as well as modules for interfacing to the Tix widget
set for Tk and RPM.

Note that documentation for Python is provided in the python-docs
package.
Name : grep Relocations: (not relocatable)
Version : 2.5.1 Vendor: Red Hat, Inc.
Release : 52.2 Build Date: Sat 11 Feb 2006 12:45:55 PM CST
Install Date: Fri 08 Jun 2007 03:06:54 AM CDT Build Host: hs20-bc1-4.build.redhat.com
Group : Applications/Text Source RPM: grep-2.5.1-52.2.src.rpm
Size : 438170 License: GPL
Signature : DSA/SHA1, Mon 06 Mar 2006 02:14:24 PM CST, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.gnu.org/software/grep/
Summary : The GNU versions of grep pattern matching utilities.
Description :
The GNU versions of commonly used grep utilities. Grep searches
through textual input for lines which contain a match to a specified
pattern and then prints the matching lines. GNU's grep utilities
include grep, egrep and fgrep.

You should install grep on your system, because it is a very useful
utility for searching through text.



Python is 2.4.4 but yum thinks it 2.4.3

Last edited by zeromaster; 11-23-2007 at 09:17 PM.
 
Old 11-24-2007, 12:22 AM   #7
zeromaster
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
hmm

Hmm I dont know if this helps but I tried

rpmbuild --rebuild yum*.src.rpm

It spits this out

RPM build errors:
InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 69886cc7
user skvidal does not exist - using root
group skvidal does not exist - using root
user skvidal does not exist - using root
group skvidal does not exist - using root
File not found by glob: /var/tmp/yum-3.0.6root/usr/lib/python?.?/site-packages/yum
File not found by glob: /var/tmp/yum-3.0.6root/usr/lib/python?.?/site-packages/rpmUtils
im assuming its not pulling the python version from where it should so its not finding the folder to build it I dont think python?.? is a version lol
Any Ideas??
 
Old 11-24-2007, 08:54 AM   #8
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
I have a couple of ideas for you to try and questions. Do you have any environment variables set such as $PYTHONHOME or $PYTHONPATH?

What version of rpm are you running? I have rpm-4.4.2.1-2.fc6 on my FC6 installation. I read that rpmdbCheckTerminate is new with that release.

/usr/lib/python2.4/site-packages/rpm/_rpmmodule.so comes with rpm-python-4.4.2.1-2.fc6, and it looks like you are good to go there.

Have you tried...
rpm -Uvh --replacepkgs http://download.fedora.redhat.com/pu...fc6.noarch.rpm

I'm assuming you are on an i386, if not, replace that part of the path with the correct architecture. Although it may not even matter in this particular case.

If this doesn't work we can go through the list of dependencies for yum-3.0.6-1.fc6 and compare our systems. Also post any new and exciting errors you may receive.

Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 02:03 AM
yum database incorrect rtaft Linux - Software 4 04-04-2007 12:53 PM
yum update proftpd 530 login incorrect westdoor Linux - Networking 1 10-29-2006 06:25 AM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 11:05 AM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 03:03 PM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration