Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)]
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.
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.
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 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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.