Loaded Plugins:fastestmirror, Refresh-packagekit, security Loading mirror speeds from cached HOSTF

Source: Internet
Author: User

This happened recently when we used CentOS 6.5,

Loaded Plugins:fastestmirror, Refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package GCC available.
Error:nothing Todo


There are two ways in which this situation can occur:


1, no net, try: Ping www.baidu.com


If the display is not connected, it means that there is no network, you can not use the Yum command.


2, ping through the words, or is not used Yum command, indicating that the Yum mirror is not, then you have to download one to update.


After the installation of CentOS generally need to modify the Yum source to be able to install the update RPM package to achieve a more ideal speed. Domestic relatively fast has 163 source, Sohu source. Here is an example of 163 sources.

1. CD/ETC/YUM.REPOS.D

2. MV Centos-base.repo Centos-base.repo.backup

3. wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo

4. MV Centos6-base-163.repo Centos-base.repo

5.yum Clean All

Finally in the use of Yum can be.

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.