PDA

View Full Version : Problems with yum repositories...



mcastel
6th September 2006, 10:07 AM
Hello,

I am experiencing problems in using yum, after the upgrade from FC4 to FC5: as a matter of fact, any attempt to run commands like

#yum list update

returns me an error:



Setting up repositories
core [1/2]
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core"


My file yum.conf is the following (this worked well with FC4):



[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
gpgcheck=1
tolerant=1
exactarch=1


in the directory /etc/yum/repos.d/ I created a file named fc5-base.repo, whose content was taken from "fedoratracker.org":



[core]
mirrorlist = http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
name = Fedora Core $releasever - $basearch
gpgcheck = 1
distribution = fedora_core
gpgkey = http://fedora.redhat.com/about/security/4F2A6FD2.txt
enabled = 1


I've tried different repositories, but I always return the same error.:confused: It seems that the URL of the repository is not understood by my system...Could anyone help me to understand (and to correct) the problem?

Thanks in advance,

tuesday20102006
6th September 2006, 10:47 AM
try this first: add these repositories to your (/etc/yum.repo.d/) which is described here:(http://forums.fedoraforum.org/forum/showthread.php?t=47428)under my post.test the new repositories with yum update yum.if that works then: back up the file that is givin you the bad "base url". then delete it from /etc/yum.repo.d

hope that works for ya

tuesday20102006
6th September 2006, 10:53 AM
P.S.
your repository above should look like this:
[core]
name=Fedora Core $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1

gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

notice your base url above:
look like it is missing the "baseurl=":
example: "baseurl=http://mirrors.ircam.fr/pub/dag/dries/fedora/fc5/i386/dries/RPMS/"

mcastel
6th September 2006, 11:48 AM
Thanks a lot for your answer! As soon as I come back home (now I'm at work, facing with Xubuntu and SUSE... :) ) I'll try to follow your suggestions, and I'll post the results in this forum.

kind regards,

Marco

mcastel
6th September 2006, 11:24 PM
try this first: add these repositories to your (/etc/yum.repo.d/) which is described here:(http://forums.fedoraforum.org/forum/showthread.php?t=47428)under my post.test the new repositories with yum update yum.if that works then: back up the file that is givin you the bad "base url". then delete it from /etc/yum.repo.d

hope that works for ya

It is strange (to me) but keeps NOT working :(

I've tried to backup my original file .repo, and add both your repository, but all what I obtain is the following error message (nb, obviously, my internet connection is fully working..)



# yum update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
livna [1/2]
Cannot find a valid baseurl for repo: livna
Error: Cannot find a valid baseurl for repo: livna


Generally speacking, seems I am unable to connect to any repository.... :confused:

teotihuacano
7th September 2006, 02:19 PM
same problem for the lst month or so...

sandynuts
8th September 2006, 08:14 AM
It is strange (to me) but keeps NOT working :(

I've tried to backup my original file .repo, and add both your repository, but all what I obtain is the following error message (nb, obviously, my internet connection is fully working..)

# yum update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
livna [1/2]
Cannot find a valid baseurl for repo: livna
Error: Cannot find a valid baseurl for repo: livna


Generally speacking, seems I am unable to connect to any repository.... :confused:

In case baseurl error msgs, the base url line in the /etc/yum.repos.d/something.repo is either commented or does not exist. To rectify, uncomment the line or add the appropriate line.
In case of livna repository add
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/
http://mirror.atrpms.net/livna/fedora/$releasever/$basearch/
ftp://mirrors.tummy.com/pub/rpm.livna.org/fedora/$releasever/$basearch/