On RHEL client, yum update fails with error "[Errno 14] HTTPS Error 404 - Not Found", yum was unable to download "repomd.xml.asc" file.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x
  • Red Hat Update Infrastructure 2.1
  • yum

Issue

  • Yum was trying to download repomd.xml.asc file on RHEL client while running yum 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 in yum.conf file for RHEL clients.

    NOTE : repo_gpgcheck either 1 or 0 tells 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 is 0.

  • Now run yum update to confirm.

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.asc as repo_gpgcheck was set to 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.

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.