zoukankan      html  css  js  c++  java
  • yum [Errno 256] No more mirrors to try 解决方法

    [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

  • 相关阅读:
    为什么linux有足够的内存还进行swap?
    vmstat命令的使用
    Windows远程服务器不能复制粘贴
    Windows可以ping通百度,但是用浏览器打不开网页
    java形式参数分别是基本类型和引用类型的调用
    Ubuntu16.04安装Python3.6 和pip
    Python2/3共存,pip2/3共存
    multiprocessing模块
    Python-进程与线程
    鼠标不能动,插上了但没反应
  • 原文地址:https://www.cnblogs.com/ios9/p/10164375.html
Copyright © 2011-2022 走看看