Yum: Cannot find a valid baseurl for repo

When I have to make a update, why appers Loaded pluging, and don´t make the update.loadedcannot find

What kind of problem is…???

Hi @kristian1369,

seems like there’s a problem with the internet connection/dns resolving.

Can you ping/nslookup the mirrors?
Do you use IPS, it may block updates?
Is your NethServer behind a proxy?

Found some info about this:

https://www.linuxquestions.org/questions/linux-newbie-8/error-cannot-find-a-valid-baseurl-for-repo-base-7-x86_64-a-4175616758/

https://www.centos.org/forums/viewtopic.php?t=47370

Google has a lot of links about this too:

https://www.google.com/search?q=centos+7+cannot+find+valid+baseurl+for+repo

I can ping any internet direction, my nethserver is not behind a proxy and my ISP don´t block updates… what I can do…?

What is the output of this command?

curl -L 'http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock'
2 Likes

This is the result of the comand…result

I think the error is in the mirrorlist, how I can change the mirrorlist to another contry…?

The output is OK.
You can try uncommenting the baseurl in /etc/yum.repos.d/CentOS-Base.repo (removing the leading # on the baseurl line)

2 Likes

It works! What is the problem…??

I tried the uncommenting and received a Permission denied? Any ideas?

Hi @Robert_Mickolay,

when exactly did you get the “permission denied”? When trying to save /etc/yum.repos.d/CentOS-Base.repo or when doing the yum update?
You may just try again, maybe the system did an auto update in the background.

1 Like