VimIy微民网,让世界倾听微民的声音! 设为首页 | 加入收藏 | 网站地图
当前位置:主页 > 大杂烩 >

【微民网救我】 【你们最专业了】 【老司机带带我】 CentOS更新yum源失败,用Yum装任何东西也全都失败,这咋办。

整理时间:2014-04-09 00:55 热度:°C

【楼主】2014-04-29 01:10

» CentOS更新yum源失败,用Yum装任何东西也全都失败,这咋办。
    # cd /etc/yum.repos.d/
    # wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
    --2014-04-29 01:08:03-- http://mirrors.163.com/.help/CentOS6-Base-163.repo
    Resolving mirrors.163.com... 123.58.173.106
    Connecting to mirrors.163.com|123.58.173.106|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2006 (2.0K)
    Saving to: 鈥CentOS6-Base-163.repo.1鈥
    
    100% 2,006 --.-K/s in 0.001s
    
    2014-04-29 01:08:03 (2.65 MB/s) - 鈥CentOS6-Base-163.repo.1鈥saved
    
    # yum makecache
    Loaded plugins: fastestmirror
    Repository base is listed more than once in the configuration
    Repository updates is listed more than once in the configuration
    Repository addons 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
    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
     * addons: mirrors.163.com
     * base: mirrors.163.com
     * extras: mirrors.163.com
     * updates: mirrors.163.com
    http://mirrors.163.com/centos/6/addons/x86_64/repodata/repomd.xml: PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.
    http://mirror.centos.org/centos/6/addons/x86_64/repodata/repomd.xml: PYCURL ERROR 22 - "The requested URL returned error: 404"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
    #
    
    老司机救救我,我是初学者,也不知道把哪里玩坏了,这还有救吗?
    
    目前yum makecache、yum update。yum install XXX,之类的命令全部变成404了,咋办
    


网友评论2014-04-29 01:15


    貌似设置有问题,源也连不上,不知道是源的问题还是你设置的问题了
    
    去centos的wiki上yum相关内容看吧……
    
网友评论2014-04-29 01:17


    还有,为什么要用root用户操作…………
    
网友评论2014-04-29 01:23


    Reply Post by 德拉克斯勒 (2014-04-29 01:17):
    
    还有,为什么要用root用户操作…………
    
    wiki上啥都么有- -,用root因为服务器是我买的……
    
网友评论2014-04-29 01:27


    看错误是404了。会不会是强了?最近发现搜狐的源很给力
    
网友评论2014-04-29 01:30


    Reply Post by ghost2006 (2014-04-29 01:27):
    
    看错误是404了。会不会是强了?最近发现搜狐的源很给力
    
    我ping网易的地址是可以收发数据的……但是为什么yum不能用就不得而知了……
    
网友评论2014-04-29 01:30


    我也没用过yum系的系统,不太清楚yum的设置。根据你贴的,简单来看就是你的源指向的两个镜像地址全都打不开……叫你先检查源镜像的路径设置是否正确……还有提示就是每个仓库都在设置文件中列出了多次,检查下yum的设置文件吧……
    
    根据错误提示上网搜吧,参考其他yum系的系统的设置和解决方法。
    
网友评论2014-04-29 01:31


    直接打开你贴出的内容中的两个网址都提示404…………
    
网友评论2014-04-29 01:34


    你进 http://mirrors.163.com/centos/6/ 看……这个路径下根本没有addons……
    
网友评论2014-04-29 01:36


    Reply Post by 德拉克斯勒 (2014-04-29 01:34):
    
    你进 http://mirrors.163.com/centos/6/ 看……这个路径下根本没有addons……
    
    看懂了……
    

    
    
    

关于网站 | 网站声明 | 用户反馈 | 合作伙伴 | 联系我们
Copyright 2012年2月8日 苏ICP备12030052号-3