Yum error Error: Cannot find a valid baseurl for repo: addons

  

centos yum error Error: Cannot find a valid baseurl for repo: addons installed a CentOS 5.x, the following error message appears when using yum. Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was[Errno 4] IOError: <urlopen error (-3, ‘Temporary failure in name resolution’)>Error: Cannot find a valid baseurl for repo: addons and then ping mirrorlist.centos.org found that ping nowhere. Suspect is the dns setup problem. Ping www.ctohome.com also has an error with unknown host www.ctohome.com. Try it more often and ping it, indicating that dns does have problems. So, let's modify the dns configuration: echo “nameserver 8.8.8.8″ >> /etc/resolv.conf again yum, success.

Copyright © Windows knowledge All Rights Reserved