[linux]Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.
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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。