Fix Failed to download metadata for repo ‘Stream-centosplus’

In this article, I will give a tutorial on how to fix Failed to download metadata for repo ‘Stream-centosplus’ when do yum update on Centos 8 Stream. This problem occurs because of the Centos client can’t find a valid URL for the Stream-centoplus repository.

Fix Failed to download metadata for repo ‘Stream-centosplus’
Fix Failed to download metadata for repo ‘Stream-centosplus’

To fix this we just need to change the Stream-centosplus repository to a valid URL. Centos has usually put a comment in front of this repository line URL, so we need to uncomment that line.

To do that, open the terminal and log in as an administrator or superuser.

# sudo su

open and edit this Stream-centosplus repository configuration file using text editor, in this case, I’m using nano.

# nano /etc/yum.repos.d/CentOS-Stream-centosplus.repo



   GNU nano 2.9.8                                       /etc/yum.repos.d/CentOS-Stream-centosplus.repo                                                 

# CentOS-centosplus.repo
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.

#additional packages that extend functionality of existing packages

name=CentOS-Stream - Plus

Just uncomment on the mirrorlist line, so it would be like this.


Then save and exit on editing the file by clicking on ctrl+x and ctrl+y, then enter.

Now you can test to run the yum command to test if this works.

# yum update


[[email protected] sdetectives]# yum update
CentOS-8 - AppStream                            2.4 kB/s | 4.3 kB     00:01    
CentOS-8 - Base                                 3.7 kB/s | 3.8 kB     00:01    
CentOS-8 - Extras                               1.3 kB/s | 1.5 kB     00:01    
CentOS-Stream - AppStream                       3.4 kB/s | 4.4 kB     00:01    
CentOS-Stream - Base                            3.8 kB/s | 3.8 kB     00:01    
CentOS-Stream - Extras                          1.7 kB/s | 1.5 kB     00:00    
CentOS-Stream - Plus                            1.4 kB/s | 1.5 kB     00:01    
CentOS-8 - Plus                                 1.9 kB/s | 1.5 kB     00:00    
google-chrome                                   8.4 kB/s | 1.3 kB     00:00    
Dependencies resolved.
 Package                       Arch   Version               Repository     Size
 kernel                        x86_64 4.18.0-168.el8        Stream-BaseOS 2.7 M
 firefox                       x86_64 68.4.1-1.el8_1        AppStream      95 M
Transaction Summary
Install    4 Packages
Upgrade  138 Packages

Total download size: 410 M
Is this ok [y/N]: 

Leave a Reply

Your email address will not be published. Required fields are marked *