On RHEL client, yum update fails with error "[Error 14] HTTPS Errno 404 - Not Found" and it does not download the "repomd.xml.asc" file
Environment
- Red Hat Enterprise Linux (RHEL)
- yum
- Red Hat Satellite
- 5.x
- 6.x
- Red Hat Update Infrastructure
- 2.1
- 3.x
- 4.x
Issue
-
yum was trying to download
repomd.xml.ascfile on RHEL client while runningyum updateand have encountered[Errno 14] HTTPS Error 404 - Not Founderror message.-
Error from Satellite/Customer Portal Client:
https://satellite.example.com/pulp/repos/Org/Library/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. rhel-7-server-rpms/x86_64 | 2.0 kB 00:00:00 https://satellite.example.com/pulp/repos/Org/Library/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.2/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found -
Error from RHUI client:
https://cds.example.com/pulp/repos//rhui-client-config/rhel/server/7/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. rhui-REGION-client-config-server-7 | 2.9 kB 00:00:00 . . failure: repodata/repomd.xml.asc from rhui-REGION-client-config-server-7: [Errno 256] No more mirrors to try. https://cds.example.com/pulp/repos//rhui-client-config/rhel/server/7/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found https://cds.example.com/pulp/repos//rhui-client-config/rhel/server/7/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found
-
Resolution
- As GPG armor is not enabled on server side, so ensure
repo_gpgcheckis set to 0 inyum.conffile for RHEL clients.- NOTE :
repo_gpgcheckeither 1 or0tells yum whether or not it should perform a GPG signature check on therepodata. When this is set in the [main] section, it sets the default for all repositories. The default is 0.
- NOTE :
- Now run
yum updateto confirm.
- Alternately you can create your own local repository with a custom
repo_gpgkeybased on the How to create a repo gpgkey for a local repository article.
Root Cause
- Currently Red Hat products (Customer Portal, Red Hat Satellite, RHUI, etc) does not support
repo gpgcheckoption yet. yumwas trying to downloadrepomd.xml.ascandrepo_gpgcheckwas set as 1.- As yum was unable to locate
repomd.xml.ascon the server due to GPG armor disabled, it was failing with[Errno 14] HTTPS Error 404 - Not Founderror message. - On RHEL 7.4, the
stig-rhel7-disaprofile will add"repo_gpgcheck=1"to/etc/yum.conf.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments