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キャッシュを再初期化します。 「ローカルyumキャッシュの再初期化」など、いくつかの有望なリンクがGoogleに登場しました。これを行う前後にローカルキャッシュサイズを確認してください。

sudo du -sh /var/cache/yum/

頑張ってください。

おすすめ記事