[CentOS] CentOS-Base.repo baseurl commented out
Johnny Hughes
johnny at centos.org
Sun May 24 14:11:23 UTC 2015
On 05/24/2015 07:48 AM, Tim Semeijn wrote:
> 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.
>
> On 24-5-2015 14:10, Alexander Dalloz wrote:
>> Am 24.05.2015 um 13:45 schrieb Tim Semeijn:
>
>>>
>>> Dear,
>>>
>>> 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.
>
>> 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.
>
>>> Did I miss something that was planned or is this a bug?
>>>
>>> Best regards,
>>>
>>> - -- Tim Semeijn
>
>> Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20150524/b274aefa/attachment.sig>
More information about the CentOS
mailing list