连接到 RHEL5 上的 Yum Repo

连接到 RHEL5 上的 Yum Repo

当我运行 yum update 时,出现以下错误

yum update
Gathering header information file(s) from server(s)
Server: Red Hat Enterprise 5Server - RPMforge.net - dag
retrygrab() failed for:
  http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/headers/header.info
  Executing failover method
failover: out of servers to try
Error getting file http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found

这是我的 /etc/yum.conf 文件:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

有任何想法吗?

答案1

[rpmforge]从配置文件中删除该节,然后正确启用它

答案2

更改你的 baseurl 以包含 /RPMS/。

相关内容