Skip to main content

How to Fix “Cannot find a valid baseurl for repo” in CentOS

Perform the steps as mentioned in this article to fix the yum repo mirrorlist URL issues. This worked for me just fine.

 https://www.tecmint.com/fix-cannot-find-a-valid-baseurl-for-repo/ 


If you are getting Bad Gateway error related to fastestmirror. Do the following.

vi /etc/yum/pluginconf.d/fastestmirror.conf

Change enabled=1 to enabled=0 to disable the fastestmorror plugin.

That should fix it.

Comments