Problem of CentOS repository error

258 views
Skip to first unread message

Jianshu Liu

unread,
Jul 1, 2024, 5:29:53 PM (3 days ago) Jul 1
to cloudlab-users
Dear Cloudlab admin,

I have requested c6220 servers with CentOS (https://www.cloudlab.us/status.php?uuid=5a190780-37ed-11ef-9f39-e4434b2381fc). However, I encountered errors when using "yum install" command.
The error is "Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error""

I wonder if the DNS configuration for C6220 servers has some problems since I requested new C6220 servers and the same error exists. Could you please help me check and fix it?

Thanks for your help in advance.

Best regards,
-Jianshu-

David M Johnson

unread,
Jul 1, 2024, 6:46:33 PM (3 days ago) Jul 1
to cloudla...@googlegroups.com
On 7/1/24 15:29, Jianshu Liu wrote:
> Dear Cloudlab admin,
>
> I have requested c6220 servers with CentOS
> (https://www.cloudlab.us/status.php?uuid=5a190780-37ed-11ef-9f39-e4434b2381fc). However, I encountered errors when using "yum install" command.
> The error is "Could not retrieve mirrorlist
> http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock
> error was
> 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error""

Hi. CentOS 7 reached end-of-maintenance yesterday
(https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/),
and it looks like this is propagating through the mirrors. Note also
that CentOS 8 Stream was archived last month and is no longer being
updated. Your best bet is to migrate to CentOS 9 Stream (our image is
named CENTOS9S-64-STD) if possible. If not, you can update your nodes
to point to the repositories at https://vault.centos.org/ . Change each
file in /etc/yum.repos.d/ , commenting the `mirrorlist=` line, and
uncommenting the `mirror=` line, and replacing `mirror.centos.org` with
`vault.centos.org`, as I show below:

#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=AppStream&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$stream/AppStream/$basearch/os/

Then you'll be able to run `yum makecache`.

However, you should plan to migrate to a supported version (9 Stream).

> I wonder if the DNS configuration for C6220 servers has some problems
> since I requested new C6220 servers and the same error exists. Could you
> please help me check and fix it?
>
> Thanks for your help in advance.
>
> Best regards,
> -Jianshu-

David
Reply all
Reply to author
Forward
0 new messages