Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 10-14-2009, 01:15 PM   #16
LQ Newbie
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0

$ sudo rpm -e yum
error: Failed dependencies:
yum >= 3.2.19-15 is needed by (installed) yum-rhn-plugin-0.5.3-30.el5.noarch
$ sudo rpm -e yum-rhn-plugin
error: Failed dependencies:
yum-rhn-plugin >= 0.5.3-30 is needed by (installed) rhn-client-tools-0.4.19-17.el5.noarch
$ sudo rpm -e rhn-client-tools
error: Failed dependencies:
rhn-client-tools = 0.4.19-17.el5 is needed by (installed) rhn-check-0.4.19-17.el5.noarch
rhn-client-tools = 0.4.19-17.el5 is needed by (installed) rhn-setup-0.4.19-17.el5.noarch
rhn-client-tools >= 0.4.19-9 is needed by (installed) yum-rhn-plugin-0.5.3-30.el5.noarch
$ sudo rpm -e rhn-check
error: Failed dependencies:
rhn-check >= 0.0.8 is needed by (installed) rhnsd-4.6.1-1.el5.i386
$ sudo rpm -e rhnsd
error: Failed dependencies:
rhnsd is needed by (installed) rhn-setup-0.4.19-17.el5.noarch
$ sudo rpm -e rhn-setup
error: Failed dependencies:
rhn-setup is needed by (installed) yum-rhn-plugin-0.5.3-30.el5.noarch

I'm going in loops here, what am I missing?

Here is the command I was looking for:
$ sudo rpm -e yum yum-rhn-plugin rhn-client-tools rhn-check rhn-setup rhnsd

Last edited by machvvv; 10-14-2009 at 01:26 PM. Reason: doh
Old 02-04-2010, 11:34 AM   #17
Registered: Aug 2003
Posts: 50

Rep: Reputation: 15
Don't mean to open an old thread but rather than start a new one....

I am having this same issue. I removed all the yum rpms and the python-elementtree python-sqlite python-urlgrabber

then reinstalled them from the rpms on but I am still getting this error

root@server yum-rpm]# 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 cElementTree

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, Sep  3 2009, 15:37:12) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
Can anyone help me out?

Old 03-24-2011, 09:32 AM   #18
LQ Newbie
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
My solution was to rollback to an earlier version of python-elementtree. If you run the following command you can see which packages were most recently updated. You may want to pipe it to less or another pager.

rpm -qa --last
What I noticed was that python-elementtree was updated in the recent installs. Comparing that to other RHEL 5 systems, it was a version newer than what I had running with the same version of yum elsewhere. So I decided to rollback to the previous version, the same version on other RHEL 5 systems.

First, you need to download the previous version RPM. I obtained python-elementtree-1.2.6-5 from CentOS RPMs as CentOS is Red Hat with the branding removed and some customized packages. I figured the RPM would suffice.

In order to install an older version of a package over a newer one, use the --oldpackages flag with the install command:

rpm -ivh --oldpackage python-elementtree-1.2.6-5.x86_64.rpm
Then I verified that I had the python-elementtree package installed that I wanted. The 1.2.6-7 package was still there, along with the 1.2.6-5. So I removed the 1.2.6-7 package.

rpm -e python-elementtree-1.2.6-7.el4.rf
Then I verified that only the version of python-elementtree wanted was installed.

[tmp]# rpm -qi python-elementtree
Name        : python-elementtree           Relocations: (not relocatable)This package also includes the C implementation, cElementTree-1.0.5-20051216Name        : python-elementtree           Relocations: (not relocatable)
Version     : 1.2.6                             Vendor: CentOS
Release     : 5                             Build Date: Sat 06 Jan 2007 05:03:56 PM EST
Install Date: Thu 24 Mar 2011 09:28:59 AM EDT      Build Host:
Group       : Development/Libraries         Source RPM: python-elementtree-1.2.6-5.src.rpm
Size        : 311637                           License: PSF
Signature   : DSA/SHA1, Tue 03 Apr 2007 08:26:59 PM EDT, Key ID a8a447dce8562897
URL         :
Summary     : Fast XML parser and writer
Description :
The Element type is a simple but flexible container object, designed
to store hierarchical data structures, such as simplified XML
infosets, in memory. The element type can be described as a cross
between a Python list and a Python dictionary.

This package also includes the C implementation, cElementTree-1.0.5-20051216.
Lastly, I verified that yum was still working.

# yum list updates
Loaded plugins: rhnplugin, security
Skipping security plugin, no data
Basically, any yum command could be used, even a simple, yum --version would suffice.

All extraneous repos in /etc/yum.repos.d/ were also set to disabled, enabled=0 because this the newer, unwanted package was obtained from one of them, not the RHN satellite server.


build, install, pirut, pup, python, rebuild, repo, repositories, rpm, uninstall, yum, yumex

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 info python" gave me 2 installed items. Why? gneeot Linux - General 3 06-29-2006 01:07 AM
LXer: Move to python 2.4 / Changing the packaging style for python packages LXer Syndicated Linux News 0 06-13-2006 07:54 PM
FC4: Uninstalled python mistakenly - Yum too mailforbiz Linux - Newbie 4 01-25-2006 02:28 AM
Problem with Python? Yum? Daenris Linux - Software 1 04-08-2005 10:31 AM
Fedora + yum - rpm-python = :( BrokenBrick Linux - Software 1 03-11-2005 08:41 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:31 PM.

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