On RHEL client, yum update fails with error "[Errno 14] HTTPS Error 404 - Not Found", yum was unable to download "repomd.xml.asc" file.
Environment
- Red Hat Satellite 6.x
- Red Hat Update Infrastructure 2.1
- yum
- Red Hat Enterprise Linux
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 to0inyum.conffile for RHEL clients.NOTE :
repo_gpgcheckeither1or0tells yum whether or not it should perform a GPG signature check on the repodata. When this is set in the [main] section, it sets the default for all repositories. The default is0. -
Now run
yum updateto confirm.
- Alternately you can create your own local repository with a custom repo_gpgkey with this kcs
Root Cause
- Currently Red Hat products (Customer Portal, Red Hat Satellite, RHUI..etc) does not support repo gpgcheck option yet.
- Yum was trying to download
repomd.xml.ascasrepo_gpgcheckwas set to1. -
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. -
With 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
