I have a Red Hat server hosted in Azure and when I try to use yum to install software or do a system update I get the below error,

Errors during downloading metadata for repository 'rhui-rhel-8-for-x86_64-baseos-rhui-rpms':

The system has been registered in subscription manager.

  • Do you have egress firewall rules defined? Sep 15, 2020 at 19:47
  • The VM can only access RHUI with Azure assigned public IP address, so make sure the traffic from VM is sent to Internet without any intermediates, such as proxy, VPN gateway and so on. These intermediates may alter the source IP address of packets from VM.
    – fpmurphy
    Sep 16, 2020 at 17:10

1 Answer 1


Try: yum clean all rm -f /var/lib/rpm/__db* rpm --rebuilddb

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.