码迷,mamicode.com
首页 > 系统相关 > 详细

[linux]Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.

时间:2014-10-29 19:24:19      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:fedora   linux   yum   过期   不可用   

在使用fedora17 系统的yum源的时候出现了如下错误:

Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.


参照网上的做法: (一般yum有变更都需要这两个操作)

yum clean all 
yum clean metadata

然后在使用

 yum update

还是错误。


仔细看下错误:

http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/x86_64/os/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/x86_64/os/repodata/repomd.xml

就是源的配置问题嘛!

搜狐源配置文件地址: http://mirrors.sohu.com/help/fedora.html

按照说明还是不行,然后去官网和搜狐看了下,17下的文件夹已经空了 (查看http://ftp.iij.ad.jp/pub/linux/fedora/updates/17/),确实没法在更新了。


那我们只能想一个使用其他版本或者兼容版本的方式来更新了。


查看本机配置的yum源:yum repolist enabled

结果是可用的为0.


最后发现fedora17过了社区支持版本了,找到了一个历史版本的地方 http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/17/Fedora/x86_64/os/repodata/ 

这里有很多老版本的源。


下面是个后来可行的办法:

我是把/etc/yum.repos.d/下面出了fedora.repo 以外的源文件都删除了,然后把fedora.repo的base_url修改

http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/


[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
baseurl=http:http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/debug/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/source/SRPMS/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

然后执行 

yum clean metadata
yum clean all
yum update


最后查看是否可用

[root@Erya yum.repos.d]# yum repolist 
Loaded plugins: langpacks, presto, refresh-packagekit
repo id                                                                               repo name                                                                                        status
fedora                                                                                Fedora 17 - x86_64                                                                               27,033
repolist: 27,033


这样yum又可以使用了。


本文出自 “orangleliu笔记本” 博客,转载请务必保留此出处http://blog.csdn.net/orangleliu/article/details/40588799

作者: orangleliu  

[linux]Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.

标签:fedora   linux   yum   过期   不可用   

原文地址:http://blog.csdn.net/orangleliu/article/details/40588799

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