Yum 2.2 w/ HTTP proxy fails w/ error "Cannot find a valid baseurl for repo:"

Paul Howarth paul at city-fan.org
Wed Mar 30 21:01:32 UTC 2005


On Wed, 2005-03-30 at 12:46 -0800, Kam Leo wrote:
> On Wed, 30 Mar 2005 08:40:09 +0100, Paul Howarth <paul at city-fan.org> wrote:
> > On Tue, 2005-03-29 at 22:35 +0100, Mike Fleetwood wrote:
> > > Recently "yum check-update" and "yum update" has started producing the
> > > error "Cannot find a valid baseurl for repo: ...".  Googling suggests
> > > that other occurrences have been caused by network connectivity errors
> > > or miss configured yum repository locations.  I am convinced that in my
> > > case it is yum 2.2's inability to successfully download files through a
> > > HTTP proxy that is the problem.  To work around the problem I
> > > reinstalled yum 2.1 and upgrade using "yum --exclude=yum update".
> > 
> > yum 2.2 provides a way to specify the proxy globally or separately for
> > each repo if required (see "man yum.conf"). Did you try that?
> 
> The OP commented out the baseurl line in
> /et/cyum.repos.d/fedora-updates.repo leaving only mirrorlist as the
> repositoryid.  Per 'man yum.conf':

This is perfectly normal. The baseurl is in fact commented out by
default. See:
http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/core/3/i386/os/Fedora/RPMS/fedora-release-3-8.i386.rpm//etc/yum.repos.d/fedora-updates.repo?extract=true

> Either the mirrorlist list is defective or there is a bug in yum-2.2.

Clearly the proxy configuration using environment variables, which used
to work, is no longer doing so. I would however be interested to hear if
the yum.conf way of specifying proxies now works in yum 2.2.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list