Yum 存储库在 Primary_db 上给出 404

Yum 存储库在 Primary_db 上给出 404

我们正在尝试从 EPEL 存储库的内部镜像安装软件包。当我们这样做时,我们会收到以下错误消息:

epel/primary_db            FAILED
https://yum.example.com/yum/EPEL/7/x86_64/repodata/cee535f542076e9b28a71100daf379d696383d5628fdd4571f37dae6f918d0cf0-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror
https://yum.example.com/yum/EPEL/7/x86_64/repodata/cee535f542076e9b28a71100daf379d696383d5628fdd4571f37dae6f918d0cf0-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror


 One of the configured repositories failed (epel),
 and yum doesn't have enough cached data to continue. At this point, the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:
<snip several options for disabling the repository>

failure: repodata/cee535f542076e9b28a71100daf379d696383d5628fdd4571f37dae6f918d0cf0-primary.sqlite.bz2 from epel: [Errno 256] No more mirrors to try.
https://yum.example.com/yum/EPEL/7/x86_64/repodata/cee535f542076e9b28a71100daf379d696383d5628fdd4571f37dae6f918d0cf0-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found

在浏览器中查看 yum.example.com/yum/EPEL/7/x86_64/repodata/,我们看到 73d6...46bd-primary.sqlite.bz2 和 af97...d886-primary.sqlite.bz2 的条目;但是,没有 cee5...0cf0-primary.sqlite.bz2 的条目。我们如何解决这个问题?


以下是/etc/yum.repos.d/epel.repo的完整内容:

[epel]
sslverify=0
description=Extra Packages for Enterprise Linux $releasever - $basearch
baseurl=https://yum.example.com/yum/EPEL/$releasever/$basearch
gpgcheckk=0
name=epel

答案1

我要检查的第一件事是磁盘空间:

df -h

如果你做对了,我会重新初始化本地 yum 缓存。 Google 中出现了几个有希望的链接,其中包含“重新初始化本地 yum 缓存”。在执行此操作之前和之后检查本地缓存的大小:

sudo du -sh /var/cache/yum/

祝你好运。

答案2

查看 https://yum.example.com/yum/EPEL/7/x86_64/repodata/repomd.xml。该文件中的链接很可能已过时,需要由存储库管理员进行更新。

相关内容