Recently I have noticed that on all my CentOS machines the CentOS-Base.repo file seems to have been modified resulting in all baseurl= lines being commented out.
Did I miss something that was planned or is this a bug?
Best regards,
–
7 thoughts on - CentOS-Base.repo Baseurl Commented Out
Am 24.05.2015 um 13:45 schrieb Tim Semeijn:
That is the case for a very long time, even if it hasn’t be the case all the time. Instead of baseurl the default is mirrorlist.
Alexander
Weird, as all CentOS machines under my control are suddenly giving the baseurl of Base repo not found error since this morning. Could be that mirrorlist is leading but all other options I found online to debug the error message seem to indicate that (un)commenting should fix it.
–
For the Base (or os) section of the CentOS-Base.repo file, the default is:
=========================================
[base]
name=CentOS-$releasever – Base mirrorlist=http://mirrorlist.CentOS.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.CentOS.org/CentOS/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
=========================================
(note: the mirrorlist line wrapped)
So mirrorlist returns a list of 10 geoip (by country) based servers where you can get updates … here is a way to test:
(that lists the os update mirrors for your location based on your IP)
If you have issues doing updates, I would first do “yum clean all” as root and try again. If that does not work make sure the server can get a list of mirrors from mirrorlist. If your machine does not have a browser, you can print the list in a terminal with:
If you can get a mirrorlist and you are getting errors still, then the issue has something to do with you yum connection to the mirrorlist servers. It could be proxy related, if you have a proxy . more info would be needed.
You CAN uncommnet the baseurl, but that is just one host, while mirrorlist gives you ten.
Am 24.05.2015 um 16:11 schrieb Johnny Hughes:
[ … ]
Empty result.
Hi Johnny,
I am getting the same problem with mirrorlist:
# LANG=C yum -d10 makecache Loading “fastestmirror” plugin Config time: 0.015
Running “init” handler for “fastestmirror” plugin Yum Version: 3.2.29
COMMAND: yum -d10 makecache Installroot: /
Running “postreposetup” handler for “fastestmirror” plugin Loading mirror speeds from cached hostfile Error: Cannot find a valid baseurl for repo: base
Did run a “yum clean all” before.
]# LANG=C yum -d10 update Loading “fastestmirror” plugin Config time: 0.013
Running “init” handler for “fastestmirror” plugin Yum Version: 3.2.29
COMMAND: yum -d10 update Installroot: /
Reading Local RPMDB
rpmdb time: 0.001
Setting up Update Process Updating Everything Building updates object Setting up Package Sacks Running “postreposetup” handler for “fastestmirror” plugin Loading mirror speeds from cached hostfile Error: Cannot find a valid baseurl for repo: base
Something is screwed on the remote end.
Alexander
Thanks for your replies.
Same empty result here. Opening the link on my computer shows 10
mirrors as expected, but server side nothing.
7 thoughts on - CentOS-Base.repo Baseurl Commented Out
Am 24.05.2015 um 13:45 schrieb Tim Semeijn:
That is the case for a very long time, even if it hasn’t be the case all the time. Instead of baseurl the default is mirrorlist.
Alexander
Weird, as all CentOS machines under my control are suddenly giving the baseurl of Base repo not found error since this morning. Could be that mirrorlist is leading but all other options I found online to debug the error message seem to indicate that (un)commenting should fix it.
–
For the Base (or os) section of the CentOS-Base.repo file, the default is:
=========================================
[base]
name=CentOS-$releasever – Base mirrorlist=http://mirrorlist.CentOS.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.CentOS.org/CentOS/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
=========================================
(note: the mirrorlist line wrapped)
So mirrorlist returns a list of 10 geoip (by country) based servers where you can get updates … here is a way to test:
http://mirrorlist.CentOS.org/?release=6&arch=x86_64&repo=os
(that lists the os update mirrors for your location based on your IP)
If you have issues doing updates, I would first do “yum clean all” as root and try again. If that does not work make sure the server can get a list of mirrors from mirrorlist. If your machine does not have a browser, you can print the list in a terminal with:
curl “http://mirrorlist.CentOS.org/?release=6&arch=x86_64&repo=os”
If you can get a mirrorlist and you are getting errors still, then the issue has something to do with you yum connection to the mirrorlist servers. It could be proxy related, if you have a proxy . more info would be needed.
You CAN uncommnet the baseurl, but that is just one host, while mirrorlist gives you ten.
Am 24.05.2015 um 16:11 schrieb Johnny Hughes:
[ … ]
Empty result.
Hi Johnny,
I am getting the same problem with mirrorlist:
# LANG=C yum -d10 makecache Loading “fastestmirror” plugin Config time: 0.015
Running “init” handler for “fastestmirror” plugin Yum Version: 3.2.29
COMMAND: yum -d10 makecache Installroot: /
Running “postreposetup” handler for “fastestmirror” plugin Loading mirror speeds from cached hostfile Error: Cannot find a valid baseurl for repo: base
Did run a “yum clean all” before.
]# LANG=C yum -d10 update Loading “fastestmirror” plugin Config time: 0.013
Running “init” handler for “fastestmirror” plugin Yum Version: 3.2.29
COMMAND: yum -d10 update Installroot: /
Reading Local RPMDB
rpmdb time: 0.001
Setting up Update Process Updating Everything Building updates object Setting up Package Sacks Running “postreposetup” handler for “fastestmirror” plugin Loading mirror speeds from cached hostfile Error: Cannot find a valid baseurl for repo: base
Something is screwed on the remote end.
Alexander
Thanks for your replies.
Same empty result here. Opening the link on my computer shows 10
mirrors as expected, but server side nothing.
–
Am 24.05.2015 um 16:54 schrieb Tim Semeijn:
Bingo.
[root@msg ~]# curl -6
“http://mirrorlist.CentOS.org/?release=6&arch=x86_64&repo=os”; echo $?
0
[root@msg ~]# curl -4
“http://mirrorlist.CentOS.org/?release=6&arch=x86_64&repo=os”; echo $?
http://ftp.wrz.de/pub/CentOS/6.6/os/x86_64/
ftp://mirror.fraunhofer.de/CentOS.org/6.6/os/x86_64/
http://mirror.eu.oneandone.net/linux/distributions/CentOS/6.6/os/x86_64/
http://CentOS.datente.com/media/6.6/os/x86_64/
http://mirror.skylink-datacenter.de/CentOS/6.6/os/x86_64/
http://mirror.softaculous.com/CentOS/6.6/os/x86_64/
http://mirror.netcologne.de/CentOS/6.6/os/x86_64/
http://ftp.fau.de/CentOS/6.6/os/x86_64/
http://mirror.23media.de/CentOS/6.6/os/x86_64/
http://mirror.jgotteswinter.com/CentOS/6.6/os/x86_64/
0
Alexander
IPv6 support is not always solid everywhere for us (as our mirrors are all donated) , we will troubleshoot as soon as we can.