Fedora 15 更新源的问题


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

[root@www.bkjia.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.bkjia.com etc]# mkdir yum.repo.bak

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

新建一个源文件*.repo

[root@www.bkjia.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.bkjia.com yum.repos.d]# yum update

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

相关内容