LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-25-2008, 11:04 AM   #1
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 41

Rep: Reputation: 15
Question How to reset yum to defualt setting?


hi guys
i just update my computer from fc5 to fc9, using the install DVD.
i have soo many issues now. most important of all is that i cant update anything.
my yum doesnt work any more. for some reason there is no files in /etc/yum.repos.d
so i needed to know how do i compeletly reset yum to defualt, and then add repos such as freshrmp and livna repo.
 
Old 10-25-2008, 12:23 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Here's a copy of the basic repo file. You could probably find these on the Fedora site, but just copying them from here to your /etc/yum.repos.d/ directory should work.

I suspect that you problem is related to the changing of the Fedora PGP keys by Red Hat a few months ago. After the keys were changes, older DVDs would, probably, be unable to do very well connecting to the repositories.

Code:
$ cat /etc/yum.repos.d/fedora.repo         
[fedora]                                                     
name=Fedora $releasever - $basearch                          
failovermethod=priority                                      
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
You'll also need these two updates definitions:
Code:
$ cat /etc/yum.repos.d/fedora-updates-newkey.repo       
[updates-newkey]                                                          
name=Fedora $releasever - $basearch - Updates Newkey                      
failovermethod=priority                                                   
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch.newkey/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever.newkey&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-8-and-9-$basearch

[updates-newkey-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug Newkey
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch.newkey/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever.newkey&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-8-and-9-$basearch

[updates-newkey-source]
name=Fedora $releasever - Updates Source Newkey
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS.newkey/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever.newkey&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-8-and-9-$basearch
and
Code:
$ cat /etc/yum.repos.d/fedora-updates.repo             
[updates]                                                                
name=Fedora $releasever - $basearch - Updates                            
failovermethod=priority                                                  
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
Old 10-25-2008, 01:10 PM   #3
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Thank for your reply. it worlk sort of.
i need to install gimp and i get this:
Quote:
yum --noplugin install gimp
Plugin "fastestmirror" uses deprecated constant TYPE_INTERFACE.
Please use TYPE_INTERACTIVE instead.
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 241, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 116, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 307, in doCommands
self._getTs()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 98, in _getTs
self._getTsInfo()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 104, in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 576, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 419, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 217, in populateSack
self.doSetup()
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 67, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 175, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 77, in postreposetup_hook
repo.set('urls', repomirrors[str(repo)])
AttributeError: 'YumRepository' object has no attribute 'set'
 
Old 10-25-2008, 08:00 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
That looks a lot like you're running your old FC5 yum, or a newer yum with an old python release, instead of the newer F9 program(s).

Do a cat /etc/fedora-release to check that things are set up properly. You should see this:
Code:
$ cat /etc/fedora-release
Fedora release 9 (Sulphur)
If you don't, then something went very wrong during your update from FC5.

If that looks correct, look at the Fedora 9 release notes to see how to use the DVD repository, locate the yum.rpm in it and use the rpm command to install it, replacing what you've got on your system now. (You may need to locate and install dependencies by hand as well.) Then do a yum update to get your system current (which will, probably, require a Gb download, so it may take a while), and then go back to finding gimp.

Note that the yum update might be best done first using the repository on the DVD since most FC5 programs -- especially system critical applications -- have been updated since FC5 was last supported. (I think support for FC5 terminated more than three years ago.)
 
Old 10-26-2008, 12:08 AM   #5
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 41

Original Poster
Rep: Reputation: 15
hi
thanks for the reply.
i tried reading online about what PTrenholme sugested but i had no luck.
however after few reboots and playing about when i run

Quote:
yum --noplugins update
---> Package log4net.i386 0:1.2.10-4.fc9 set to be updated
--> Running transaction check
--> Processing Dependency: libsysfs.so.1 for package: vlc
---> Package mono-nunit.i386 0:1.9.1-2.fc9 set to be updated
---> Package xmlrpc-c.i386 0:1.14.8-1.fc9 set to be updated
--> Processing Dependency: xmms = 1:1.2.10 for package: xmms-faad2
--> Finished Dependency Resolution
xmms-faad2-2.0-15.20050131.lvn5.i386 from installed has depsolving problems
--> Missing Dependency: xmms = 1:1.2.10 is needed by package xmms-faad2-2.0-15.20050131.lvn5.i386 (installed)
vlc-0.8.4a-1.lvn5.i386 from installed has depsolving problems
--> Missing Dependency: libsysfs.so.1 is needed by package vlc-0.8.4a-1.lvn5.i386 (installed)
Error: Missing Dependency: xmms = 1:1.2.10 is needed by package xmms-faad2-2.0-15.20050131.lvn5.i386 (installed)
Error: Missing Dependency: libsysfs.so.1 is needed by package vlc-0.8.4a-1.lvn5.i386 (installed)
( I JUST PASTED SOME OF THE LAST LINES HERE)
here is my try to update yum itsself:
Quote:
[root@localhost ali]# yum --noplugins update yum
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.2.19-3.fc9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
yum noarch 3.2.19-3.fc9 updates-newkey 833 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)

Total size: 833 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6df2196f


GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-8-and-9-i386'
 
Old 10-26-2008, 12:15 AM   #6
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 41

Original Poster
Rep: Reputation: 15
guys i also tried this i hope itll help to fix this error:
Quote:
[root@localhost ali]# yum --noplugins update fedora-release
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package fedora-release.noarch 0:9-5.transition set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
fedora-release noarch 9-5.transition updates 34 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)

Total size: 34 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
fedora-release is needed by (installed) yum-fedorafaq-5-2006.05.09.noarch
Complete!
 
Old 10-26-2008, 05:05 AM   #7
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Rep: Reputation: 34
Check in the install DVD for this file: RPM-GPG-KEY-fedora-8-and-9-i386 Copy it to /etc/pki/rpm-gpg/ and then run

su -c 'rpm --import /etc/pki/rpm-gpg/*'

If it executes fine try again

su -c 'yum update yum'

I am not currently in front of a Fedora computer to tell you if you need additional gpg files.
 
Old 10-26-2008, 06:20 AM   #8
cyber.scientist
Member
 
Registered: Jan 2008
Posts: 41

Original Poster
Rep: Reputation: 15
i cant locate RPM-GPG-KEY-fedora-8-and-9-i386.
all could find on there was:
Quote:
[ali@localhost media]$ cd Fedora\ 9\ i386\ DVD/
[ali@localhost Fedora 9 i386 DVD]$ ls
GPL README-BURNING-ISOS-en_US.txt RPM-GPG-KEY-fedora-rawhide
images repodata RPM-GPG-KEY-fedora-test
isolinux RPM-GPG-KEY RPM-GPG-KEY-rawhide
media.repo RPM-GPG-KEY-beta TRANS.TBL
Packages RPM-GPG-KEY-fedora
 
Old 10-26-2008, 09:25 AM   #9
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
You could use the --nogpgcheck yum option for now (not a good idea in the long run) so you don't have to have the keys installed.

Or you could look at this article which explains how to get and install the new Fedora keys. Here's the relevant section:
Code:
Fedora 9

   1. Download the updated and signed fedora-release package.
   2. Verify that the package sha1sum matches 259165485c16d39904200b069873967e3eb5fa6e:

      sha1sum fedora-release-9-5.transition.noarch.rpm

   3. Install the package via rpm:

      su -c 'rpm -Uvh fedora-release-9-5.transition.noarch.rpm'

   4. Move on to importing the new key. 

Import the new key

   1. Verify and import the new GPG key to your GPG keyring as per https://fedoraproject.org/keys.
   2. Import the key into the RPM database:

      su -c 'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-8-and-9'

   3. Use your update tool to get and install any new updates from the new location
 
  


Reply


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
what is the defualt installation directory for yum? harry2006 Linux - Newbie 5 10-10-2008 07:16 AM
setting yum updates on FC6 jaycee4u Linux - Newbie 1 10-11-2007 05:13 PM
Newb: How do I reset yum? v2k Fedora 3 08-11-2007 02:25 AM
Timeouts setting up repositories in Yum mrtheduke Linux - Newbie 4 03-29-2007 02:23 PM
Reset Yum and Synaptic to their default configurations JRR883 Linux - Software 3 10-19-2005 04:14 PM


All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration