yum install --enablerepo=base <package>
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Cannot find a valid baseurl for repo: base
================================================================
No new rpms were installed. No additional commands are required.
================================================================
db yum_repositories show base, with the following result:
base=repository
BaseURL=http://mirror.centos.org/centos/4/os/$basearch
EnableGroups=0
Exclude=kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,initscripts
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
Name=CentOS - os
Visible=yes
status=enabled
cat /etc/yum.conf
[base]
enabled=1
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/4/os/$basearch
name=CentOS - os
gpgcheck=1
enablegroups=0
exclude=kernel kernel-smp kernel-xenU mkinitrd mdadm initscripts
yum clean all
?
Did not change a thing, but it is working now for both servers.I had the same problem with one of our CentOS 5 servers today, reported this bug in the bugtracker of CentOS (http://bugs.centos.org/view.php?id=2524). You were probably hit by the same problem as you mentioned it is now working again.
Seems to have been a temporary and localized? problem.
regards,
Marcel
[base]
enabled=1
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep
name=CentOS - os
gpgcheck=1
enablegroups=0
exclude=kernel kernel-smp mkinitrd mdadm initscripts
http://styx.biochem.wfubmc.edu/mirror/CentOS/4.6/os/i386/
http://mirrors.rit.edu/centos/4.6/os/i386/
http://mirror.rhsmith.umd.edu/pub/centos/4.6/os/i386/
http://ftp.usf.edu/pub/centos/4.6/os/i386/
http://holmes.umflint.edu/centos/4.6/os/i386/
http://centos.omnispring.com/4.6/os/i386/
http://pubmirrors.reflected.net/centos/4.6/os/i386/
http://dds.gina.alaska.edu/public/mirrors/centos/4.6/os/i386/
http://mirror.cs.vt.edu/pub/CentOS/4.6/os/i386/
http://updates.interworx.info/centos/4.6/os/i386/
And let me add this...I guess you have some local issues then as I am (at the time of writing able to dig both:
From the SME machine, I can DIG www.centos.org but not mirrorlist.centos.org
Isn't that odd?
[root@sme73test ~]# dig www.contribs.org
; <<>> DiG 9.2.4 <<>> www.contribs.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12970
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.contribs.org. IN A
;; ANSWER SECTION:
www.contribs.org. 43193 IN CNAME contribs.org.
contribs.org. 293 IN A 75.146.90.141
;; Query time: 17 msec
;; SERVER: 192.168.55.1#53(192.168.55.1)
;; WHEN: Tue Jul 15 17:34:21 2008
;; MSG SIZE rcvd: 64
[root@sme73test ~]#
[root@sme73test ~]# dig mirrorlist.centos.org
; <<>> DiG 9.2.4 <<>> mirrorlist.centos.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50590
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mirrorlist.centos.org. IN A
;; ANSWER SECTION:
mirrorlist.centos.org. 87 IN A 204.15.73.243
;; Query time: 14 msec
;; SERVER: 192.168.55.1#53(192.168.55.1)
;; WHEN: Tue Jul 15 17:34:25 2008
;; MSG SIZE rcvd: 55
[root@sme73test ~]#