码迷,mamicode.com
首页 > 其他好文 > 详细

yum [Errno 256] No more mirrors to try 解决方法

时间:2018-12-23 16:49:31      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:ast   curl   requested   fresh   test   security   turn   lin   res   

[root@localhost yum]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Determining fastest mirrors
epel/metalink                                            | 4.6 kB     00:00
 * epel: mirrors.yun-idc.com
 * rpmforge: mirrors.neusoft.edu.cn
http://mirrors.163.com/centos/$releasever/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@localhost yum]# vi /etc/yum.conf
[root@localhost yum]# yum update -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
epel/metalink                                            | 4.6 kB     00:00
 * epel: mirrors.yun-idc.com
 * rpmforge: mirrors.neusoft.edu.cn
base                                                     | 3.7 kB     00:00
extras                                                   | 3.5 kB     00:00
rpmforge


输入下面的命令即可解决问题:

yum clean all
yum makecache

yum [Errno 256] No more mirrors to try 解决方法

标签:ast   curl   requested   fresh   test   security   turn   lin   res   

原文地址:https://www.cnblogs.com/ios9/p/10164375.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!