感谢支持
我们一直在努力

Fedora 15 更新源的问题

安装Fedora 15 后发现一个问题,就是yum 安装时候老是出现HTTP Error 404等问题,看:


[root@www.linuxidc.com yum.repos.d]# yum search openssh
Loaded plugins: langpacks, presto, refresh-packagekit
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 – Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 – Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora-firefox4. Please verify its path and try again


然后我索性把全部源给更换掉,找到了一些教育网的源,如上海交大的。


为了以防万一,我先备份原来的源:

[root@www.linuxidc.com etc]# mkdir yum.repo.bak

[root@www.linuxidc.com etc]# mv yum.repos.d/* yum.repo.bak/


新建一个源文件*.repo


[root@www.linuxidc.com yum.repos.d]# vim sjtu.repo
粘贴一下内容:


[Fedora-ftp.sjtu.edu.cn]
name=Fedora 15 – i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/15/Fedora/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[Everything-ftp.sjtu.edu.cn]
name=Everything 15 – i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/14/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/updates/15/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


保存退出后,执行源更新命令就ok了


[root@www.linuxidc.com yum.repos.d]# yum update


更新速度很给力,达到4,5M/s

赞(0) 打赏
转载请注明出处:服务器评测 » Fedora 15 更新源的问题
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏