Mirrorlist.centos.org cannot be resolved by DNS

Anyone also has this problem since today?
I can resolve centos.org, but not mirrorlist.centos.org
This means, not yum installs…

1 Like

Decommission legacy mirrorlist.centos.org infra

2 Likes

Thank you very much!!

If you are needing to keep using CentOS Linux 7 for a while, I would suggest mirroring the content locally from one of the archive sites.

1 Like

Mirrorlist.centos.org cannot be resolved by DNS继续讨论:

you haved resolved it? HOW? I aslo meet the question.please help me.

@fujiawei welcome to the chat.

The issue is that mirrorlist.centos.org no longer exists after CentOS 7 went out of support on 2024-06-30. The possible solutions to deal with this are the following:

  1. Move to a supported version of a different projects Enterprise Linux product of 8 or 9 through either LEAPP or similar products. There are many projects and commercial offerings which offer replacements.
  2. Look for long term support via one of the several companies offering continued EL7 support.

In the mean time you can comment out the mirrorlist lines in /etc/yum.repos.d/centos.repo and put in

[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/7.9.2009/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates 
[updates]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/7.9.2009/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/7.9.2009/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7