Yum: Cannot find a valid baseurl for repo

yum

(Christian Plaza) #1

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

What kind of problem is…???


(Markus Neuberger) #2

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


(Christian Plaza) #3

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


(Marc) #4

What is the output of this command?

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

(Christian Plaza) #5

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…?


(Marc) #6

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)


(Christian Plaza) #7

It works! What is the problem…??