#1  
Old 30th July 2006, 20:31
fgaughan fgaughan is offline
Junior Member
 
Join Date: Oct 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!
Reply With Quote
Sponsored Links
  #2  
Old 31st July 2006, 17:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Can you try the update again? Maybe it was a temporary problem. Also make sure you have valid name servers in /etc/resolv.conf.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 31st July 2006, 20:53
fgaughan fgaughan is offline
Junior Member
 
Join Date: Oct 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 1st August 2006, 14:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 2nd August 2006, 00:41
fgaughan fgaughan is offline
Junior Member
 
Join Date: Oct 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 :-)
Reply With Quote
  #6  
Old 18th September 2013, 10:18
tricky tricky is offline
Junior Member
 
Join Date: Sep 2013
Location: karachi
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to tricky
Default

same problem i am facing please do help me which command u give in the centos 6?? please guide me properly. thanks
Reply With Quote
  #7  
Old 20th September 2013, 15:40
jasonorland88 jasonorland88 is offline
Junior Member
 
Join Date: Sep 2013
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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
__________________
backlinksvault
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update ok! sa-update error ? lyndros Installation/Configuration 2 19th March 2008 21:05
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 06:19
ISPConfig 2.2.4 released till General 25 18th July 2006 14:04
send and receve mail on centos 4.3 tesquenure Installation/Configuration 11 25th April 2006 22:15
Notes for CentOS 4.1 install felipegeek Installation/Configuration 6 19th December 2005 11:21


All times are GMT +2. The time now is 17:00.


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