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.asc
file on RHEL client while runningyum update
and have encountered[Errno 14] HTTPS Error 404 - Not Found
error 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_gpgcheck
is set to 0 inyum.conf
file for RHEL clients.- NOTE :
repo_gpgcheck
either 1 or0
tells 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 update
to confirm.
- Alternately you can create your own local repository with a custom
repo_gpgkey
based 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 gpgcheck
option yet. yum
was trying to downloadrepomd.xml.asc
andrepo_gpgcheck
was set as 1.- As yum was unable to locate
repomd.xml.asc
on the server due to GPG armor disabled, it was failing with[Errno 14] HTTPS Error 404 - Not Found
error message. - On RHEL 7.4, the
stig-rhel7-disa
profile 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