|
自己搞了两天了,看了几乎所有这方面的贴子,还是没有成功,大家帮帮我!
我的是fc5,按milkline在帖子《教育网用户yum使用总结 》中说的那样,改了fedora-core.repo中的内容如下:
[core]
name=fedora core $releasever - $basearch - base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/i386/os/
baseurl=http://dxmirror.vmmatrix.net/Fedora/core/$releasever/i386/os/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
改了fedora-updates.repo中的内容如下:
[updates]
name=fedora core $releasever - $basearch - updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/i386/
baseurl=http://dxmirror.vmmatrix.net/Fedora/core/updates/$releasever/i386/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
改了fedora-extra.repo中的内容如下:
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
baseurl=http://dxmirror.vmmatrix.net/Fedora/extras/$releasever/i386/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
上面的都是只改了相应文件的第一段,但还是出现了下面的错误:
[root@localhost yum.repos.d]# yum list |more
http://dxmirror.vmmatrix.net/Fedora/...rimary.xml.gz: [Errno -1 ] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from core: [Errno 256] No more mirrors to try .
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
[root@localhost yum.repos.d]# yum install luamqq
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/3]
updates [2/3]
extras [3/3]
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 411 kB 01:21
http://dxmirror.vmmatrix.net/Fedora/...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from core: [Errno 256] No more mirrors to try.
请大家帮我看看是哪的问题,另外,我想问问
1。这样改配置文件就不用导入http://dxmirror.vmmatrix.net这个网站的RPM-GPG-KEY了吗?
2。/etc/yum.repos.d下的其他文件和上面三个文件的其他部分就不用改baseurl了吗?
3。用rpm --import ###导入的RPM-GPG-KEY存到哪了,为什么我导了一个发现/etc/pki/rpm-gpg/没有呢
非常谢谢! |
|