CentOS is one of the nicest operating system for web server nowadays. Sometimes after installing this software and when we tried running yum update we got:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=oserror was 14: PYCURL ERROR 6 - "" Error: Cannot find a valid baseurl for repo: base
Another error is when we ping google.com or any domain, we got:
Destination Host Unreachable or unknown host error
Here are some of the solutions of these problem:
1. Try adding these entries to /etc/resolv.conf:
nameserver 8.8.8.8
nameserver 8.8.4.4
2. Check your firewall settings.
Try to disable iptables and run the yum update command. If it's working then it might be that your outbound DNS is not working so it cannot resolve names to IP addresses. To fix that you will need to open or allow DNS port (53) in your firewall.
Try to disable iptables and run the yum update command. If it's working then it might be that your outbound DNS is not working so it cannot resolve names to IP addresses. To fix that you will need to open or allow DNS port (53) in your firewall.
0 comments :
Post a Comment