Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" Error: Cannot find a valid baseurl for repo: base
To fix this error I updated NM_CONTROLLED to “no” in the file /etc/sysconfig/network-scripts/ifcfg-eth0
After this I restarted the network interface using the following commands:
ifdown eth0 ifup eth0
dns9.greencom.com.tw
modify /etc/resolv.conf
nameserver 59.125.229.2
search greencom.greencom.com.tw greencom.com.tw