Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi,
I'm somewhat new to *nix...
I'm trying to get Yum installed on my server.
I tried installing with rpm(I'm running CentOS) which some difficulty and finally got it to actually install but now I'm getting an error when I try to run yum:
Quote:
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.4.3 (#1, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http : //wiki.linux.duke.edu/YumFaq
Running "python" and trying "import yum" yields:
Quote:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named yum
I've looked over a handful of other threads and have a tried numerous solutions but nothing has worked.
I'm not sure how to proceed...
Thanks!
I figured out that I need the binary RPMs... I'm still having issues though. I cleaned out my old install of yum(which I had installed by running 'make install' from the src rpms) and installed the binary rpm from pbone.net along with a bunch of dependencies but I'm still getting the same error.
Quote:
[clay@cynicsymposium yum]$sudo rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
warning: yum-2.4.2-0.4.el4.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
[clay@cynicsymposium yum]$yum
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.4.3 (#1, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]
[clay@cynicsymposium ~]$cat /proc/version
Linux version 2.6.9-023stab046.2-enterprise (root@rhel4-32) (gcc version 3.4.5 2 0051201 (Red Hat 3.4.5-2)) #1 SMP Mon Dec 10 15:22:33 MSK 2007
It did not have yum installed by default...
Last edited by braclayrab; 05-25-2008 at 12:29 AM.
Take a look at /etc/redhat-release. That SHOULD tell you for sure. I suspect that you are running RHEL (Red Hat Enterprise Linux). While the two are very close you do have to jump through a couple of hoops to run yum on RHEL4 (RHEL5 uses it by default).
Woohoo!!
Thanks a ton Lazlow
I just had the wrong rpms(again).
I uninstalled all the CentOS 4 packages I had installed before(rpm -e) and then grabbed all the CentOS 5 ones!
Thank you!!!!
[clay@cynicsymposium yum]$sudo rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
warning: yum-2.4.2-0.4.el4.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
[clay@cynicsymposium yum]$yum
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.4.3 (#1, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]
This problem, although detailed with other linux distributions, seems to also exist when upgrading from Fedora 10 to 11.
I ended up having to download the yum RPM's for Fedora 11 manually, and install them using RPM.
I also encountered the following error immediately upon booting into Fedora 11.
Code:
Traceback (most recent call last):
File "/usr/sbin/yum-updatesd" . line 41. in <module>
from yum.config import BaseConfig. Option, IntOption, ListOption, BoolOption
ImportError: No module name yum.config
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.