PDA

View Full Version : Errors with yum.conf in Fedora Core based Lorma Linux



karelj
11th January 2004, 12:28 AM
I used the same yum.conf file in Lorma that I used for my Fedora machine.
But I get the following errors..

[root@lormasith karelj]# yum check-update
Gathering header information file(s) from server(s)
Server: Fedora Core Null - i386 - Base

retrygrab() failed for:
http://mirrors.kernel.org/fedora/core/Null/i386/os/headers/header.info
Executing failover method
retrygrab() failed for: ftp://linux.stanford.edu/pub/mirrors/fedora/linux/core/Null/i386/os/headers/header.info
Executing failover method
retrygrab() failed for: http://ftp.dulug.duke.edu/pub/fedora/linux/core/Null/i386/os/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirrors.kernel.org/fedora/core/Null/i386/os/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found

I even grabbed the latest yum.conf file from this site... any ideas??

Thanks..

karelj
11th January 2004, 03:26 AM
Never mind.. I rebuilt my yum.conf manually..

Any url that gave an error i just entered it into a browser, backtracked, found the correct path, and made the changes to the conf file...

Seems there was a problem with redirects, so the urls in the conf files are now as they appear in the browser

kai_t
11th January 2004, 04:52 PM
No, that wasn't a redirect error.

Server: Fedora Core Null - i386 - Base
The "Null" string appears because the releasever variable in /etc/yum.conf is empty. This can be due to the distroverpkg variable pointing to a non-existing RPM package or just being empty.

On a Fedora Core machine, for example, yum.conf sets distroverpkg to "fedora-release", and Yum reads this package's version to obtain the distro release version for the releasever variable.

bearau
8th January 2005, 02:57 PM
is there a way to alter this variable?

hide1713
24th June 2007, 03:37 PM
Hello,friend
I have the same problem as you mention ,the $releasever change to 7.89 and there is no such directory.

I look into the source code of yum in /usr/lib/python2.5/site-packages/yum/config.py

In this file you will find that the releasever var is matched form rpm database. After that the solution is pretty
easy.

use rpm --force --i fedora-release-7-3.rpm to install fc7
you also have to use rpm -e fedora-release-7.89.rpm to uninstall old one so that the rpm database could return a correct releasever.