Just after installing CentOS, use the Yum command to install some commonly used software, using the following command: Yum–y install GCC.
Prompt for the following error message:
Loaded Plugins:fastestmirror, Refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve Mirrorlist Http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error is
14:pycurl ERROR 6-"couldn ' t resolve Host ' mirrorlist.centos.org '"
Error:cannot find a valid baseurl for repo:base
The following error message is due to a DNS configuration error, I am installing the cent OS 6.4 Server, and there is no graphical interface, this version is installed by default, and DNS is not configured in the configuration file.
To resolve by changing the configuration file:
1. Use VI to open the DNS configuration file for modification:
At the command prompt, enter: Vi/etc/sysconfig/network-scripts/ifcfg-eth0
With VI to open this file, the next screenshot will appear in the content, which should pay attention to two configuration (according to the value set below), if you do not use VI students, please Google or Baidu use.
Onboot=yes
Mm_controlled=no
Set well after.
After restarting the CentOS everything is normal.
******************************************************************************
Error:
Loaded Plugins:fastestmirror, Refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve Mirrorlist Http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error is
14:pycurl ERROR 6-"couldn ' t resolve Host ' mirrorlist.centos.org '"
Error:cannot find a valid baseurl for repo:base
Modify/etc/resolv.conf
Add a nameserver 8.8.8.8 complete