yum が失敗して [Errno 14] Peer cert cannot be verified or peer cert invalid エラーが発生する
Issue
- yum が失敗し、以下のエラーが発生します。
[Errno 14] Peer cert cannot be verified or peer cert invalid
または、
Error: failed to retrieve repodata/<long-string>-primary.xml.gz from rhel-x86_64-server-6
error was [Errno 14] Peer cert cannot be verified or peer cert invalid
- Red Hat Subscription Manager に登録しているときに "yum check-update" を実行すると、以下のエラーが発生します。
[root@rserver ~]# yum check-update
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
https://cdn.redhat.com/content/dist/rhel/server/6///optional/os/repodata/repomd.xml:[Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Error:Cannot retrieve repository metadata (repomd.xml) for repository: example_repo1.Please verify its path and try again
- Red Hat Enterprise Linux 6 においては、
yum.repoファイル でmirrorlist=URL をhttpからhttpsに変更するとエラーが表示されますが、Red Hat Enterprise Linux 5 では有効です。
Environment
- Red Hat Enterprise Linux 6
- Red Hat Network (RHN) Classic
- Red Hat Subscription Manager (RHSM)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
