LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 867|回复: 3

[求助]怎样在教育网使用yum升级啊?

[复制链接]
发表于 2006-4-14 20:48:02 | 显示全部楼层 |阅读模式
自己搞了两天了,看了几乎所有这方面的贴子,还是没有成功,大家帮帮我!
我的是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/没有呢
非常谢谢!
发表于 2006-4-21 15:53:34 | 显示全部楼层
我也是这个问题
请大哥(大姐)帮忙解决一下
回复 支持 反对

使用道具 举报

发表于 2006-4-21 17:13:21 | 显示全部楼层

我的也不能用

我用到是上海交大的ftp,提示信息如下:
[root@James root]# yum list
Gathering header information file(s) from server(s)
Server: Fedora Core 1 - i386 - Base
retrygrab() failed for:
  ftp://ftp.sjtu.edu.cn/pub/fedora ... headers/header.info
  Executing failover method
failover: out of servers to try
Error getting file ftp://ftp.sjtu.edu.cn/pub/fedora ... headers/header.info
[Errno 6] ERROR: Url Return no Content-Length  - something is wrong
回复 支持 反对

使用道具 举报

发表于 2006-4-21 18:32:33 | 显示全部楼层
为什么不用代理呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表