LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2009, 08:02 PM   #1
firemangreg
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
Yum issues


I was getting a segmentation fault whenever I would run yum anything. There would be no output, just a segmentation fault. I removed yum and just reinstalled it via and rpm. The following is the output I now get:


[Greg@localhost ~]$ yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

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.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)]

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


Any help would be appreciated, thanks.

-Greg
 
Old 04-28-2009, 07:49 AM   #2
jphilput
Member
 
Registered: Nov 2007
Posts: 58

Rep: Reputation: 15
When Yum is installed as part of the OS install, there are generally several Yum RPMs installed at the same time that give it the full functionality. It is possible that in reinstalling Yum, you have inadvertently installed a version that is incompatible with the components that remained on your system. Without knowing which distro you are running, I can't give you version specific help, but in general, I would suggest that you first run the following command to see which Yum packages you have installed.

Code:
# rpm -qa |grep yum
yum-3.2.8-9.el5.centos.2.1
yum-metadata-parser-1.1.2-2.el5
yum-updatesd-0.9-2.el5
yum-fastestmirror-1.1.10-9.el5.centos
Once you've done that, I would suggest pulling new copies of the RPMs that show up in your list from your distributions RPM repository. Once you have the new copies, remove the existing ones, and install the replacements. Once that is done, you should be able to use Yum again.
 
Old 04-28-2009, 03:19 PM   #3
firemangreg
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I am running Fedora Core 10. I downloaded the rpm for FC10 from rpmfind (I believe). I'm not at home right now so I can't give you that output, I'll edit this post with it when I get home.

Edit: Here's the output.

[root@localhost Greg]# rpm -qa |grep yum
anaconda-yum-plugins-1.0-3.fc10.noarch
yum-utils-1.1.19-1.fc10.noarch
PackageKit-yum-plugin-0.3.15-2.fc10.i386
yum-metadata-parser-1.1.2-10.fc10.i386
PackageKit-yum-0.3.15-2.fc10.i386

Edit 2: While looking at the yum faq I found where in earlier versions of yum the python error could mean that it was installed wrong. It mentioned using the python command to determine what the error actually was. Upon doing this I got the following output:

[root@localhost Greg]# python
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Segmentation fault

Last edited by firemangreg; 04-28-2009 at 05:13 PM.
 
Old 04-29-2009, 07:34 AM   #4
jphilput
Member
 
Registered: Nov 2007
Posts: 58

Rep: Reputation: 15
Okay, I see one problem in the package list for Yum. The problem is that I don't see Yum itself. If you haven't already, go ahead and pull yum-3.2.20-3.fc10.noarch.rpm from RPMFind, and install it. That *may* help.

I say that because the second problem that I see is the Python segmentation fault. I am not a Python geek by any means, when I run the same command, I get the following output:

# python
Python 2.4.3 (#1, May 24 2008, 13:47:28)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

It may be that your Python install has a problem with it. Reinstalling Python might help, but it would certainly be a pain. At this point, if installing the Yum RPM doesn't improve things, I would take a look at some of the Python boards and see if they can help.
 
Old 04-29-2009, 02:44 PM   #5
firemangreg
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, I'll try that when I get home. Thanks for all of the help.

Edit: Tried the reinstall, no luck. Guess it's off to the Python forum. It's weird, one day it worked, next day it doesn't.

Last edited by firemangreg; 04-29-2009 at 04:58 PM.
 
Old 06-02-2009, 11:09 PM   #6
saurabhchokshi
Member
 
Registered: May 2007
Posts: 35

Rep: Reputation: 15
Hi,

I am getting strange problem with Yum.

I am working on Centos 5.3 with Linux Kernel 2.6.26. With this kernel, yum is working in a correct way.

However, when I upgrade the Linux Kernel 2.6.29 and then I got the segmentation fault when I use yum.

I got the segmentation fault when I use "yum --help".

If you have any idea, what is wrong with the Kernel 2.6.29 or do I need to include some kernel module to run this application successfully?
Thanks,
Saurabh
 
  


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
Issues with YUM? plenty Fedora 14 02-14-2009 03:47 PM
Yum issues short circut Fedora 1 07-10-2007 10:15 AM
YUM issues!!! kinyua Linux - Newbie 6 06-13-2007 02:02 AM
yum issues djljjm Linux - Software 3 01-30-2005 09:33 AM
FC3 Yum Issues DJOtaku Fedora 1 12-09-2004 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration