CentOS下yum安装 无法连接镜像(尝试链接其它镜像)

回复 收藏
本帖最后由 小杰 于 2016-6-17 15:07 编辑

[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
尝试其他镜像。


解决方法如下:
vi /etc/yum/pluginconf.d/fastestmirror.conf
[main]
enabled=0//把1改为0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov,facebook


  • #vi/etc/yum.conf
    [main]
    cachedir=/var/cache/yum/$basearch/$releasever
    keepcache=0
    debuglevel=2
    logfile=/var/log/yum.log
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1#将plugins的值修改为0
    installonly_limit=5



2016-06-14 16:32 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: