FedoraThis forum is for the discussion of the Fedora Project.
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 have been getting error messages when I use the command
yum-y update.
Quote:
[root@usaidwot saywot]# yum -y update
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
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.1 (#2, Nov 11 2005, 12:26:27)
[GCC 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)]
which is odd as I seem to have installed a Mandriva Linux component and this is FC5.
Also when I download and have run rpm -ivh Python-2.4.x.x.x.FC5.i386.rpm
I get you have already installed this
and the same applies to installing YUM
How can I get rid of the Mandriva components and replace with the appropriate Fedora Core equivalents
YUM needs python to work and the command I use to update all the packages is
yum -y update
so when I use this (again as su) I get
Quote:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
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.1 (#2, Nov 11 2005, 12:26:27)
[GCC 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)]
So that which doesn't exist does indeed but that which shouldn't does
The package I'm trying to remove isn't there
the package I'm trying to install is already installed
returns an error message of "Yum is not installed"
Quote:
yum clean all
will probably return the same message won't it ?
something like
Quote:
# yum clean all
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
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.1 (#2, Nov 11 2005, 12:26:27)
[GCC 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)]
this gives me the location of the file I don't want
remove the file
replace with Python 2.4.3 FC5
installs like a charm !! - (briefly happy and hopeful)
This all started because I was unable to update anything because of the incorrect version of Python now this has been solved I expected the problem to have cleared up
But
Quote:
]# yum -y 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 rpm
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, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)]
So now rpm has gone and I'm no better off (except I do have python 2.4.3 FC5 installed)
You hosed python, yum and rpm by installing Mandriva packages on Fedora Core. Whilst Mandriva and Fedora Core share the same basic package management system, their packages are not compatible. Since rpm is hosed and there is not way to reinstall yum, python and rpm a complete OS reinstall maybe necessary.
Which leads me ...
with the greatest reluctance to accept this as sage advice
Quote:
You hosed python, yum and rpm by installing Mandriva packages on Fedora Core. Whilst Mandriva and Fedora Core share the same basic package management system, their packages are not compatible. Since rpm is hosed and there is not way to reinstall yum, python and rpm a complete OS reinstall maybe necessary.
but
Since I have re-installed the correct python package, the correct yum package what's the impediment to fixing rpm ?
# rpm -Uvh --nodeps --force rpm-4.4.2-15.2.i386.rpm
Preparing... ########################################### [100%]
1:rpm ########################################### [100%]
# yum -y 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 rpm
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, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)]
OK so rpm forced itself
Now to the latest python from the fedora core repository
so python forced itself
# rpm -ivh python-2.3.4-13.1.i386.rpm
error: Failed dependencies:
libdb-4.2.so is needed by python-2.3.4-13.1.i386
libreadline.so.4 is needed by python-2.3.4-13.1.i386
So should I install the dependencies OR do the "nodeps" thing
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.