Portal Home > Knowledgebase > Articles Database > Fixing a broken yum?


Fixing a broken yum?




Posted by Johnburk, 11-24-2010, 07:02 PM
Whatever I try to do with Yum I get the following message It seems that there is an CentOS 4 version on a CentOS 5.5 version OS. So I tried removing the old one to replace it with python-elementtree-1.2.6-5.i386.rpm Is there a way to fix this problem?

Posted by Johnburk, 11-24-2010, 07:07 PM
Every had a situation where you are looking for a solution and expecting something complex so you don't see the answer! Even if it is right in-front of you! Right after I posted this I said to my self "Why not force it". And fixed the problem with: Hopefully it can help someone else!

Posted by suhailc, 11-24-2010, 07:48 PM
Thanks for sharing!

Posted by Johnburk, 11-25-2010, 05:04 PM
It was a short victory. Yum is still broken and gives the same error. With yum update I can see that python-elementtree i386 1.2.6-7.el4.rf is still part of the system. How can I get rid of this and replace it with python-elementtree-1.2.6-5.i386.rpm Last edited by Johnburk; 11-25-2010 at 05:12 PM.

Posted by trustedurl.com, 11-25-2010, 05:43 PM
No guarantees, use at own risk rpm -e --justdb python-elementtree-1.2.6-7.el4.rf rpm -ivh --force --nodeps python-elementtree-1.2.6-5.i386.rpm

Posted by trustedurl.com, 11-25-2010, 05:43 PM
Btw, looks like you went from centos4 to 5?

Posted by Johnburk, 11-27-2010, 06:02 PM
Thank you. What is the risk? No, probably a wrong rpm install in the past.

Posted by Johnburk, 11-30-2010, 07:52 AM
Does not seem to work

Posted by 247allies, 11-30-2010, 10:45 AM
Well, would you think about reinstaling yum and python completely? As it would save your time bothering why its not working.. But dont even try to remove rpm package anywhere.. that would be my advice!!!

Posted by jankocharlie, 11-30-2010, 11:14 AM
yeah i'm also in the same views as Jeffmonte... go for a fresh installation of both python and yum..



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
NTWX Information (Views: 610)
RAID1 - Failed drive? (Views: 588)
mod_security issues (Views: 592)