Solution to "Couldnotretrievemirrorlist" in CentOSyum

Source: Internet
Author: User
Couldnotretrievemirrorlisthttp: // inclulist.centos.org /? Release5 & amp; archi386 & amp; repoaddonserror error: [root@servermysql-5.0.56] # yuminstallgccLoadedplu CentOS yum when "cocould not retrieve into list http://mirrorlist.centos.org /? Release = 5 & arch = i386 & repo = addons error: [root @ server mysql-5.0.56] # yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Cocould not retrieve than list http://mirrorlist.centos.org /? Release = 5 & arch = i386 & repo = addons error was
[Errno 4] IOError:
Error: Cannot find a valid baseurl for repo: addons
It was found that resolv. conf was not configured, so configure resolv. conf in the/etc directory to add nameserver IP:
[Root @ server mysql-5.0.56] # vi/etc/resolv. conf
Nameserver 218.85.157.99
Search localdomain
Save resolv. conf and run the preceding command again.
[Root @ server mysql-5.0.56] # yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Base: centos.ustc.edu.cn
* Extras: centos.ustc.edu.cn
* Updates: centos.ustc.edu.cn
Addons | 951 B 00: 00
Addons/primary | 202 B: 00
Base | 1.1 kB
Base/primary | 961 kB
Base 2705/2705
Extras | 2.1 kB: 00
Extras/primary_db | 171 kB: 00
Updates | 1.9 kB: 00
........................................ ........................................ ..........
........................................ .........................................
........................................ ........................
 
 
This article is from the "second dwelling" blog

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.