Linux serverNETWORK ADMINISTRATIONS

Fixing "No URLs in mirrorlist" error in CentOS8

In this tutorial, we have demonstrated how to fix the “No URLs in mirrorlist” error while issuing ‘dnf’ command in CentOS 8.

After the end of the support of CentOS 8, the CentOS team has removed all the packages for CentOS 8 from the official mirrors. Now, they’re moved to http://vault.centos.org.

Commands used in this tutorial.
sed -i -e “s|mirrorlist=|#mirrorlist=|g” /etc/yum.repos.d/CentOS-*
sed -i -e “s|#baseurl=http://mirror.centos.org/|baseurl=http://vault.centos.org/|g” /etc/yum.repos.d/CentOS-*

If you like this tutorial, please hit the ‘Like’ button and don’t forget to subscribe to this channel.

source

centos 8

4 thoughts on “Fixing "No URLs in mirrorlist" error in CentOS8

Comments are closed.