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.
centos 8
Thank you brother!
Thank you!
Thank you for doing this! It fixed my problem on my VM.
ᎮᏒᎧᎷᎧᏕᎷ