HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Stuck on Centos Yum update (http://www.howtoforge.com/forums/showthread.php?t=5899)

fgaughan 30th July 2006 19:31

Stuck on Centos Yum update
 
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=centosplu s
#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!

falko 31st July 2006 16:21

Can you try the update again? Maybe it was a temporary problem. Also make sure you have valid name servers in /etc/resolv.conf.

fgaughan 31st July 2006 19:53

Quote:

Originally Posted by falko
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

falko 1st August 2006 13:39

Quote:

Originally Posted by fgaughan
or should it be the fixed ip address given to my by my isp? I was given 2 ip addresses

Use the IP addresses of your ISP.
What's in /etc/resolv.conf now?

fgaughan 1st August 2006 23:41

Quote:

Originally Posted by falko
Use the IP addresses of your ISP.
What's in /etc/resolv.conf now?

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 :-)

tricky 18th September 2013 09:18

same problem i am facing please do help me which command u give in the centos 6?? please guide me properly. thanks

jasonorland88 20th September 2013 14:40

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


All times are GMT +2. The time now is 10:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.