LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-02-2005, 12:59 PM   #1
Wheat_Thins
Member
 
Registered: Nov 2005
Location: Michigan
Distribution: Primary: Ubuntu 8.10
Posts: 94

Rep: Reputation: 15
Unhappy I Killed Yum.


I was trying to add some repositories but was only getting errors with every single repositoriy I added to the yum config file, So I tried deleting anything that I added and it still was broke when trying to use yum it would always check a different mirror and fail, well anyways thats old problems. I removed yum and wanted to reinstall it, so I downloaded the YUM rpm straight from fedora's ftp server. After the install of the RPM, I run Yum from the terminal and this is the error that I get:

[xxx@LinuxBed ~]$ yum
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pyc
[xxx@LinuxBed ~]$

This file is some type of python file that I cannot view because it is object code. Is there anyways I can start all over, and how would I go about this? I have Yum files scattered all over and its a real mess, have I fubared my yum possibilities for good?
A couple other questions:

How do you remove packages that install with RPMS from the terminal? I know with yum you can remove things because it keeps track of what has been installed, is there any way of doing this if the RPM was installed from the terminal with RPM -i command?

How come the forum does not subcribe me to my own threads I make? It makes it hard to keep track of them because I have to bookmark everything instead of using my user profile page that is supposed to list them?

Sorry I'm such a
 
Old 12-03-2005, 11:35 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I would find out what yum you have installed with
rpm -qa | grep yum

then, remove it using the correct info from previous command...
rpm -e yum-bunch-of-numbers

then, remove the yum related stuff...
rm -rf /var/cache/yum
rm -rf /etc/yum.repos.d
rm -f /etc/yum.conf

Next, re-install yum from the rpm which you have downloaded. Make sure to have the version designed for FC4


You can use yum to remove rpm files which are installed locally and you can use yum to install local rpm files.
yum --help and man yum are good for examples.
 
Old 12-16-2005, 09:53 AM   #3
Wheat_Thins
Member
 
Registered: Nov 2005
Location: Michigan
Distribution: Primary: Ubuntu 8.10
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by homey
I would find out what yum you have installed with
rpm -qa | grep yum

then, remove it using the correct info from previous command...
rpm -e yum-bunch-of-numbers

then, remove the yum related stuff...
rm -rf /var/cache/yum
rm -rf /etc/yum.repos.d
rm -f /etc/yum.conf

Next, re-install yum from the rpm which you have downloaded. Make sure to have the version designed for FC4


You can use yum to remove rpm files which are installed locally and you can use yum to install local rpm files.
yum --help and man yum are good for examples.
Ok, I have tried everything that you said. Now when I go to install the new RPM for Fedora Core 4 I get the following error:

[xxx@LinuxBed Desktop]$ ls
user-guide-us.pdf yum-2.4.0-63.rhfc4.at.i386.rpm
[xxx@LinuxBed Desktop]$ su -c 'rpm -i yum-2.4.0-63.rhfc4.at.i386.rpm'
Password:
warning: yum-2.4.0-63.rhfc4.at.i386.rpm: Header V3 DSA signature: NOKEY, key ID 66534c2b
error: Failed dependencies:
/etc/yum.conf is needed by yum-2.4.0-63.rhfc4.at.i386
[xxx@LinuxBed Desktop]$

So it looks like I am missing the yum.conf file. I recreated this file and threw in some of the default repositories. I still get the same exact error even with the /etc/yum.conf file present on the system.

Any ideas???

Thanks for the Help!
 
Old 12-16-2005, 10:28 AM   #4
Wheat_Thins
Member
 
Registered: Nov 2005
Location: Michigan
Distribution: Primary: Ubuntu 8.10
Posts: 94

Original Poster
Rep: Reputation: 15
I was able to fix it and have it install correctly with moving up to the newest version (Which I don't believe was available when I first posted)

This is the RPM that did it for me if anybody else is unlucky enough to mess up thier yum:

yum-2.4.1-1.fc4.noarch.rpm

Now what killed my Yum in the first place,

I have tried to use google as much as possible and read manuals and such but every attempt has seem to break my yum when trying to add repositories, can anybody please aid me in doing this? I would like to use the official FC4 repositories and also a couple others that will give me some of the better options of Mplayer and other goodies that are not on the FDC servers.

Last edited by Wheat_Thins; 12-16-2005 at 10:37 AM.
 
Old 03-02-2006, 12:13 PM   #5
nlkrio
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
http://stanton-finley.net/fedora_cor...tes_nocss.html
use Stanton Finley's yum configuration
 
  


Reply



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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
Yum fails with Running Transaction Test, Killed rosholm Fedora 2 10-19-2005 07:48 AM
FC4 yum update killed video - dell laptop xlancealotx Linux - Laptop and Netbook 3 09-28-2005 11:04 PM
Upgrade from RH9 to FC1 with yum killed mysqld physics Fedora - Installation 1 09-03-2004 08:52 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:38 PM.

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