I have FC 5 on my toshiba laptop and need to upgrade the kernel in order to download the driver for my wireless card:

I got this msg when I initially try to execute yum:

[root@localhost ]# yum upgrade kernel
Loading "installonlyn" plugin
Setting up Upgrade Process
Setting up repositories
core
Cannot find a valid baseurl for repo: core
Error : Cannot find a valid baseurl for repo: core

I resolve this problem by going to the repos directory and uncommenting the lines baseurl....in the fedora repo files.

now when I execute yum I get this error:
loading "installonlyn" plugin
setting up repositories
core
http://download.fedora.redhat.com/pub/fedora/core/5/i386/os/repodata/repomd.xml:
[Errono 4] IOError: <urlopen error (-2, 'Name or service not known')> Trying other mirror.
Cannot open/read repomd.xml file for repository: core
failure: repodata/repomd.xml from core: [Errono 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from core: [Errono 256] No more
mirrors to try.


Does anyone has a solution for this kind of problem?
I will appreciate whatever help I can get.

I'm not going to try to pretend I know what I'm doing... :rolleyes:

I found the following messages on a mailing list:
http://lists.rpmforge.net/pipermail/tools/2006-March/000299.html

> Hi,
>
> Since yum 8.0 on 9th March.
> The first thing that I noticed was that updating RPMs that came in were ignored
> (ie yum said that there was nothing to update). I decided today to throw
> everything in $wwwdir away and rebuild. But it doesn't rebuild enough.
>
> I have not changed my /etc/yam.conf.
> ...

I fixed it by adding 'createrepo' to my 'metadata' line in yam.conf, throwing everything away & rebuilding.

Interesting, the default actually is that it contains createrepo. So if
you don't have the metadata line, it will use all the programs you have
installed.

The difference probably with before is that the yum you used before was an
older yum release that use the yum-arch metadata format, and now
coinciding with Yam 0.8.0 you switched to a newer yum that used the
createrepo (repomd) metadata.

Otherwise I don't know why it worked before and stopped working with Yam
0.8.0.

Thanks for sending the fix though. It's always important to know what is bugging people !

:confused look:

[edit]Oh and by the way, it's yum.conf, not yam.conf... :P[/edit]

I've never even used yum, but hopefully this will help.

Iam not sure how to add createrepo to my metadata line.
this is my yum.conf file:

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugings=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named filed.repo
#in /etc/yum.repos.d

You need to somehow add respos to the configuration file. Try something like this:

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugings=1
metadata_expire=1800

[fedora-stable]
name=Fedora Project Stable RPMS for Fedora 5
baseurl=http://download.fedora.us/fedora/5/i386/yum/stable/
gpgcheck=1

[fedora-updates]
name=Fedora Project update RPMS for Fedora 5
baseurl=http://download.fedora.us/fedora/5/i386/yum/updates/
gpgcheck=1

I'm just guessing with the base URLs, so if it doesn't work, you may want to try others respos as described in the wealth of information out there.

If you can't get it working, you may also want to post the contents of /etc/yum.respos.d and any files it contains.

[edit] I found some nice yum.conf files here:
http://www.redhat.com/archives/fedora-list/2004-May/msg05673.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.