Been a fedora user for years till i switched to Centos 4 Everything went well in the installs and now i have a Centos 4 server but one little problem and its driving me mad! When i first installed fedora then i type yum update it updates no problem But not Centos i get the following error Cannot find a valid baseurl for repo: update Error: Cannot find a valid baseurl for repo: update Checked my yum conf 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 I am based in England so i dont know if Great Britian on the repo list!
Can you try the update again? Maybe it was a temporary problem. Also make sure you have valid name servers in /etc/resolv.conf.
Thanks for reply Update still wont work. looked at the /etc/resolv.conf should the ip address be the same as i logged into the server box? or should it be the fixed ip address given to my by my isp? I was given 2 ip addresses
Sorted it out now.. What i did was a usr/sbin/netconfig set it to Use dynamic ip configuration i checked the /etc/resolv.conf did some thinking Then back to usr/sbin/netconfig and put my fixed ip addess and worked it out from there And now i am happy updating
same problem i am facing please do help me which command u give in the centos 6?? please guide me properly. thanks
You may have a DNS issue. Try to ensure you can resolve DNS records locally: nslookup google.com If you get an IP back from that command, you should be OK for DNS. Try then removing the fastestmirror cache and re-running your yum command: rm -f /var/cache/yum/timedhosts.txt