yum mirrorlist does not work for me

General support questions
Post Reply
ion.dulgheru
Posts: 4
Joined: 2015/01/29 17:58:15

yum mirrorlist does not work for me

Post by ion.dulgheru » 2015/01/29 18:06:46

Hi
I have the following yum config:

Code: Select all

[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
With this config, when I use yum I get the follwing error:

Code: Select all

http://repo/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: repo; Name or service not known"
This is because
returns for me
http://repo/[....]
So yum builds an url with the domain repo, which of course it does not exist.

If I uncomment baseurl, and comment mirrolist, yum works.
Do you have any idea why mirrorlist does not work for me?
I have this problem on many machines.
Thanks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum mirrorlist does not work for me

Post by TrevorH » 2015/01/29 18:57:41

Run curl 'http://mirrorlist.centos.org/?release=7 ... 64&repo=os' and post the exact output here.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ion.dulgheru
Posts: 4
Joined: 2015/01/29 17:58:15

Re: yum mirrorlist does not work for me

Post by ion.dulgheru » 2015/01/29 19:04:12

It returns:

Code: Select all

http://repo/centos/7//

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum mirrorlist does not work for me

Post by TrevorH » 2015/01/30 10:03:38

Interesting. This looks like a suitable subject for a CentOS bug report on bugs.centos.org. Are you posting from the same IP subnet as the machine you are trying to update? I can see your ip address for posting in the forum logs and that info will be useful for whoever fixes this - it looks like the geolocation stuff is not working for your location and it's generating an invalid mirrorlist entry.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ion.dulgheru
Posts: 4
Joined: 2015/01/29 17:58:15

Re: yum mirrorlist does not work for me

Post by ion.dulgheru » 2015/01/30 10:07:41

Hmmm...
Seems to work now.
It could also be related to the infrastructure I am using.
I changed the nameserver and now I get a different IP for mirrorlist.centos.org.
And this one works.
Thank you for the support and fast responses.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum mirrorlist does not work for me

Post by TrevorH » 2015/01/30 11:04:08

As a matter of interest, what was the IP that was giving you this invalid url?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ion.dulgheru
Posts: 4
Joined: 2015/01/29 17:58:15

Re: yum mirrorlist does not work for me

Post by ion.dulgheru » 2015/01/30 15:09:14

It's more complicated.
The bottom idea is that there is nothing wrong with mirrorlist.centos.org.
It was an internal infrastructure problem.

Post Reply