Cannot find a valid baseurl for repo: update

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
ZAPP
Posts: 3
Joined: 2008/01/21 15:23:43

Cannot find a valid baseurl for repo: update

Post by ZAPP » 2008/01/21 15:34:20

Hallo!

I'm getting an error running yum on my system:

[b]yum update[/b]
[code][root@MJR001 ~]# yum update
Setting up Update Process
Setting up repositoriesCannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
[root@MJR001 ~]#[/code]

I've changed the [b]/etc/resolv.conf[/b] and added the correct nameservers after 127.0.0.1


[b]/etc/resolv.conf [/b]
[code]search meinedomain.de*
nameserver 127.0.0.1
nameserver 62.212.64.xxx*
nameserver 62.212.78.xxx*
nameserver 83.149.64.xxx*[/code]
* censored


after using ping www.centos.com, i get this answer back:

[b]ping www.centos.com [/b]
[code]
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=5 ttl=64 time=0.020 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=6 ttl=64 time=0.033 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=7 ttl=64 time=0.030 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=8 ttl=64 time=0.022 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=9 ttl=64 time=0.021 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=10 ttl=64 time=0.022 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=11 ttl=64 time=0.024 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=12 ttl=64 time=0.033 ms
64 bytes from reverse.yourserver.com (85.17.154.xxx*): icmp_seq=13 ttl=64 time=0.022 ms
....
[/code]

* censored


I hope someone can hlpe me.

thanks!

yyagol
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E
Contact:

Re: Cannot find a valid baseurl for repo: update

Post by yyagol » 2008/01/22 22:55:14

this happen allot , i'm not sure why but the way one can over come it
is by running :

[code]yum clean all
yum update[/code]

ZAPP
Posts: 3
Joined: 2008/01/21 15:23:43

Re: Cannot find a valid baseurl for repo: update

Post by ZAPP » 2008/01/23 16:07:34

hi!


doesn't work, got same error again :-(

User avatar
toracat
Forum Moderator
Posts: 7327
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Cannot find a valid baseurl for repo: update

Post by toracat » 2008/01/23 16:24:54

Can you post your /etc/yum.repos.d/CentOS-Base.repo file?
And the output of rpm -q centos-release as well.

ZAPP
Posts: 3
Joined: 2008/01/21 15:23:43

Re: Cannot find a valid baseurl for repo: update

Post by ZAPP » 2008/01/24 18:46:45

[code]# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#released updates
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4[/code]

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Cannot find a valid baseurl for repo: update

Post by gerald_clark » 2008/01/24 19:31:04

If you are using a web proxy, you have to also setup the proxy in /etc/yum.conf

Post Reply