Stuck on Centos Yum update

Discussion in 'Installation/Configuration' started by fgaughan, Jul 30, 2006.

  1. fgaughan

    fgaughan New Member

    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

    #packages used/produced in the build but not released
    name=CentOS-$releasever - Addons

    #additional packages that may be useful
    name=CentOS-$releasever - Extras

    #additional packages that extend functionality of existing packages
    name=CentOS-$releasever - Plus

    #contrib - packages by Centos Users
    name=CentOS-$releasever - Contrib

    I am based in England so i dont know if Great Britian on the repo list!
  2. falko

    falko Super Moderator ISPConfig Developer

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

    fgaughan New Member

    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
  4. falko

    falko Super Moderator ISPConfig Developer

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

    fgaughan New Member

    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 :)
  6. tricky

    tricky New Member

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

    jasonorland88 New Member

    You may have a DNS issue. Try to ensure you can resolve DNS records locally:


    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

Share This Page