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