Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms'

Latest response

Good afternoon I am using RED HAT for the first time, and when I am executing a command to update the yum (yum update) I find this error that I can not solve:

[root@srvdevrma1 ~]# yum update
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 0.0 B/s | 0 B 00:00
Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms'
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms'

What can it be or how could it be solved?

Responses

Hi Cesar,

It might be a temporary issue with the Red Hat servers ... you can try if the following procedure solves the problem - it often does. :)

sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo dnf upgrade

Regards,
Christian

I still get the same error after executing the previous commands, I don't understand why

Hi. This didn't resolve the issue for me. Using the verbose flag can help identify the cause of the issue, e.g. sudo dnf upgrade -v

I still get the same error after executing the previous commands, I don't understand why

Hi Cesar,

As I said, it might be a temporary issue with the Red Hat servers. Wait a little bit and try it again later.
In case the problem persists for a longer time, I recommend to contact Red Hat Customer Service. :)

Regards,
Christian

I got same issue,By the way,have you solved it?

I am having the same issue Red Hat Enterprise Linux 8 for x86_64 - BaseOS 79 B/s | 10 B 00:00
Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms' Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms'

I managed to solve my problem by commenting a line in the rhsm.conf configuration file, specifically the line "proxy_scheme = https", in my case I use proxy in my company. I hope I can solve the problem for you

Hi Cesar,

Glad to read that you could solve the problem. :)

Regards,
Christian

[root@srvdevrma1 ~]# yum update Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 0.0 B/s | 0 B 00:00 Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms' Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpm

what can i do now

Hi ! :)

What you can do ? Well, I suggest you just read my first two responses above ... :)

Regards,
Christian

I had this issue and found out I was using the wrong release. https://access.redhat.com/solutions/4762961 .

subscription-manager release --show

Release not set

Once I set my version, my issue was resolved.

subscription-manager release --set=8.1

Hi All,

please cleanup unwanted repo file under /et/yum.repos.d/ dir. i mean you keep only subscribed repository . Like redhat.repo.

yum clean all subscription-manager refresh yum list perl

It works for me

I've tried all of the above but still does not work. Still get the same issue "Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpm". Any help?

I've tried everything above and it has resolved some issues that I didn't even realize that I had. However, I'm still getting this annoying line, (I know it's variations on a theme at this point): "Error: Failed to download metadata for repo 'satellite-tools-6.7-for-rhel-8-x86_64-e4s-source-rpms'" It's frustrating, but I'm still believing in the community. Let's fix this thing!!

Hi Miguel,

Do you have a Satellite installation ? If not, just disable this repository and the error message is gone. :)

Regards,
Christian

hi mayuresh i have some problem check plz This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Extra Packages for Enterprise Linux 8 - x86_64 0.0 B/s | 0 B 00:12
Failed to download metadata for repo 'epel' Error: Failed to download metadata for repo 'epel'

Hi Mayuresh,

This seems to be a temporary issue with the EPEL repository servers ... disable it and re-enable it at a later time. :)

Regards,
Christian

I fixed the issue. I had to de-register my development machine with the subscription manager, then re-register, then subscribe the machine again and set the release. I was then able to download packages again using yum without any of the previous issues. So: subscription-manager register --force (de-registers and re-registers in one command) subscription-manager subscribe (I then subscribed and got the following back... Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed Then set my release (run the following to check what releases are available and match with yours) subscription-manager release --list (in my case 8.1 is my system look at /etc/redhat-release for version) subscription-manager release --set=8.1 (set my version) Then as a test installed GCC and all was good. Hope this helps someone ;-)

Hi Ian,

Of course it helps - not only someone ... I recommended this in many cases. Thank you for providing your solution. :)

Regards,
Christian

This solution fixed the issue for me as well.

Red Hat Satellite Tools 6.5 for RHEL 8 x86_64 - 2.3 B/s | 10 B 00:04
Failed to download metadata for repo 'satellite-tools-6.5-for-rhel-8-x86_64-e4s-debug-rpms'=========>> how to solve the issue. for this reason I cant install VLC on my rhel8 system

Issue resolved for me when disable and enable the repo again:

 # subscription-manager repos --disable fast-datapath-for-rhel-8-x86_64-rpms  
 # subscription-manager repos --enable fast-datapath-for-rhel-8-x86_64-rpms

[root@node1 tomcat]# subscription-manager repos --disable rhel-8-for-x86_64-baseos-rpms Repository 'rhel-8-for-x86_64-baseos-rpms' is disabled for this system. [root@node1 tomcat]# subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms Repository 'rhel-8-for-x86_64-baseos-rpms' is enabled for this system. [root@node1 tomcat]# yum update Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 8.8 MB/s | 14 MB 00:01 Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 8.7 MB/s | 14 MB 00:01 Dependencies resolved. Nothing to do. Complete! [root@node1 tomcat]#

doesn't work for me, :-(

subscription-manager refresh yum clean all yum repolist

^^ fixed it for me

it is working after disabling of repo_gpgcheck=1

Thanks this worked for me

It works for me after setting release.

[root@tower ~]# subscription-manager release --show

Release not set [root@tower ~]# cat /etc/redhat-release

Red Hat Enterprise Linux release 8.2 (Ootpa)

[root@tower ~]# subscription-manager release --set=8.2

Release set to: 8.2

[root@tower ~]# subscription-manager release --show

Release: 8.2

Reference: https://access.redhat.com/solutions/4762961.

try this command

dnf module enable idm:DL1

then.... dnf install ipa-server ipa-server-dns -y I think this will help with both centOS and RH

I'm also constantly running into issues like this basically whenever rhel and fedora cross paths in my system. I've gone down the list and tried everything that everyone has posted and am still having the same issue come back almost right after performing these troubleshooting steps. Why is this continuing to happen and if a bunch of people like myself exchanging ideas in a comment thread can manage to work around it then why is it so difficult for developers to manage a permanent fix in a reasonable amount of time? I'm not asking for a miracle, but come on now.... Back to googling!

solved by changing enabled=1 to enabled=0 in vi /etc/yum.repos.d/geekery.repo (at least in my case)

I have the same issue in the last few days and it's nothing about the repos or the subscription.

In a fresh and outdated version of RedHat 8.1 which run in KVM what I use as my laboratory, anytime it turn on I have that issue. What I do is try with various commands until the yum update works again.

For example:

Trying the command 'yum update info' I had the error line, but then I tried with 'yum upgrade' the out was a list of packages to upgrade, around 600mb. I take NO and cancel the operation, run again 'yum update info' and saw the correct info about the system.

Total download size: 639 M Is this ok [y/N]: n Operation aborted. [root@rhel8 ~]# yum updateinfo Updating Subscription Management repositories. Last metadata expiration check: 0:01:23 ago on Mon 03 Aug 2020 03:58:43 PM EDT. Updates Information Summary: available 88 Security notice(s) 5 Critical Security notice(s) 38 Important Security notice(s) 35 Moderate Security notice(s) 10 Low Security notice(s) 188 Bugfix notice(s) 38 Enhancement notice(s)

I suppose this is an simple error of updating the repos.

I hope this help because I see that was an frequent error.