CentOS use the Yum command to install error prompts: Loaded plugins:fastestmirror, Refresh-packagekit, security

Source: Internet
Author: User

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






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.