別のリポジトリをインストールした後の Yum の問題

別のリポジトリをインストールした後の Yum の問題

また私です。残念ながら、別のリポジトリをインストールしようとしたときに、元の yum リポジトリを壊してしまい、エラー メッセージが表示されます。

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhscl/1/os/repodata/repomd.xml.asc: [Errno 14] HTTPS エラー 404 - 見つかりません。他のミラーを試しています。この問題に対処するには、以下のナレッジベースの記事を参照してください。

https://access.redhat.com/articles/1320623

上記の記事で問題が解決しない場合は、Red Hat サポートにチケットを開いてください。

rhel-server-rhscl-7-beta-rpms | 4.0 kB 00:00:00

構成されたリポジトリの 1 つ (Red Hat Enterprise Linux 7 Server の Red Hat Software Collections Beta RPM) が失敗し、yum には続行するのに十分なキャッシュ データがありません。この時点で、yum が実行できる唯一の安全な方法は失敗することです。これを「修正」するには、いくつかの方法があります。

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Disable the repository, so yum won't use it by default. Yum will then
    just ignore the repository until you permanently enable it again or use
    --enablerepo for temporary usage:

        yum-config-manager --disable rhel-server-rhscl-7-beta-rpms

 4. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=rhel-server-rhscl-7-beta-rpms.skip_if_unavailable=true

失敗: rhel-server-rhscl-7-beta-rpms からの repodata/repomd.xml.asc: [Errno 256] 試すミラーはもうありません。 https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhscl/1/os/repodata/repomd.xml.asc: [Errno 14] HTTPS エラー 404 - 見つかりません

この問題を解決する方法を誰か知っていますか? 問題があった他のリポジトリはすでに削除しました。

編集: wget を使用したところ、次のような結果が返されました:

wget https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhs‌​cl/1/os/repodata/rep‌​omd.xml.asc

--2016-09-22 14:52:19-- https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhs%E2%80%8C%E2%80%8Bcl/1/os/repodata/rep%E2%80%8C%E2%80%8Bomd.xml.asc cdn.redhat.com (cdn.redhat.com) を解決しています... 173.222.216.251 cdn.redhat.com (cdn.redhat.com)|173.222.216.251|:443 に接続しています... 接続されました。エラー: '/C=US/ST=North Carolina/O=Red Hat, Inc./OU=Red Hat Network/CN=Red Hat Entitlement Operations Authority/ によって発行された cdn.redhat.com の証明書を検証できません。[メールアドレス]': 自己署名証明書が見つかりました。cdn.redhat.com に安全でない方法で接続するには、--no-check-certificate を使用します。'--no-check-certificate'. --2016-09-22 14:52:19-- https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhs%E2%80%8C%E2%80%8Bcl/1/os/repodata/rep%E2%80%8C%E2%80%8Bomd.xml.asc Connecting to cdn.redhat.com (cdn.redhat.com)|173.222.216.251|:443... connected. ERROR: cannot verify cdn.redhat.com's certificate, issued by ‘/C=US/ST=North Carolina/O=Red Hat, Inc./OU=Red Hat Network/CN=Red Hat Entitlement Operations Authority/[email protected]’: Self-signed certificate encountered. To connect to cdn.redhat.com insecurely, use

答え1

最近、Red Hat Developer Subscription でも同じことに気付きました。デフォルトのサブスクリプション リポジトリのほとんどはまったく必要ありません。また、ご覧のとおり、少なくとも 1 つは動作しません。投稿したエラー出力に詳細が記載されているように、問題のあるリポジトリを無効にするのが最善策です。

yum-config-manager --disable rhel-server-rhscl-7-beta-rpms

さらに良い方法としては、大量の不要なリポジトリ データをダウンロードしないように、すべてのリポジトリを無効にして、ベース リポジトリのみを有効にします。

yum-config-manager --disable '*'
yum-config-manager --enable rhel-7-server-rpms

また、docker や *-devel パッケージなどの便利なものが含まれている と を有効にするrhel-7-server-optional-rpmsことも検討してください。rhel-7-server-extras-rpms

答え2

でクリーンアップしてみてyum clean all、それが役立つかどうか確認してください。

関連情報