Author Topic: Could not resolve host: mirrorlist.centos.org  (Read 9164 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Could not resolve host: mirrorlist.centos.org
« on: July 16, 2024, 08:19:00 AM »
Hello, I recently started to get this error.

Code: [Select]
######################
Update Server Packages
######################
Errors during downloading metadata for repository 'appstream':
  - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service
Job for httpd.service failed.
See "systemctl status httpd.service" and "journalctl -xe" for details.
Redirecting to /bin/systemctl reload nginx.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl restart httpd.service

Date which backup script is using: 2024-07-15 01:21:27

Also, from the yum manager there is one available CentOs update that can't be updated and it's been like this for more than a month.



« Last Edit: July 16, 2024, 08:22:22 AM by Radical Redemption »

Offline
*****
Re: Could not resolve host: mirrorlist.centos.org
« Reply #1 on: July 16, 2024, 03:10:56 PM »
CentOS 8 Stream is EOL -- more & more mirrors are being archived & taken offline. Please migrate to AlmaLinux 8 (or another supported OS).

Offline
*****
Re: Could not resolve host: mirrorlist.centos.org
« Reply #2 on: July 16, 2024, 07:57:41 PM »
Agreed, CentOS Stream 8 went EOL before CentOS 7 actually did.

Mirrors have removed those repos to save space to current OS's.

That's why it was never recommended to run a beta OS like Stream, or an alpha OS like Fedora for production servers.

You can manually edit your repo and see if putting vault. at the beginning works, but it's not guaranteed.

Also see:
https://kb.starburstservices.com/common-issues/could-not-resolve-host-mirrorlist-centos-org-on-centos-stream-8/

« Last Edit: July 16, 2024, 08:34:48 PM by Starburst »

Offline
*
Re: Could not resolve host: mirrorlist.centos.org
« Reply #3 on: July 17, 2024, 06:51:08 AM »
Dayum, I have so much configuration and stuff on this server, migration will probably have to be manual, I guess I will have to start over with a fresh install..

Offline
*
Re: Could not resolve host: mirrorlist.centos.org
« Reply #4 on: July 17, 2024, 07:01:09 AM »
Is it possible to upgrade to AlmaLinux from current Centos 8 Stream without losing any configuration and data?

Offline
*****

Offline
*****
Re: Could not resolve host: mirrorlist.centos.org
« Reply #6 on: July 17, 2024, 06:14:36 PM »
Official site & guides to migrate to AlmaLinux.

https://almalinux.org/elevate/

Offline
*****
Re: Could not resolve host: mirrorlist.centos.org
« Reply #7 on: July 17, 2024, 06:16:27 PM »
Dayum, I have so much configuration and stuff on this server, migration will probably have to be manual, I guess I will have to start over with a fresh install..

Best is bring up another server, and use the CWP -> CWP Migration Tool.


Offline
*****
Re: Could not resolve host: mirrorlist.centos.org
« Reply #9 on: July 25, 2024, 08:40:23 PM »
I don't have any direct experience with it, since I am on the CentOS 7 -> AlmaLinux ELevate track. Did you try what Starburst recommended? (Back up your server FIRST -- full image!)

Offline
*
Re: Could not resolve host: mirrorlist.centos.org
« Reply #10 on: July 27, 2024, 02:43:33 AM »
Hi,

mirrorlist.centos.org doesn't exists anymore.

From the .repo file:

# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
To resolve the issue you can mass update all .repo files:

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Bye Bye!
Hallbook Network

Offline
*
Re: Could not resolve host: mirrorlist.centos.org
« Reply #11 on: July 28, 2024, 06:09:02 AM »
Hi,

mirrorlist.centos.org doesn't exists anymore.

From the .repo file:

# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
To resolve the issue you can mass update all .repo files:

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Bye Bye!

This helped, thanks a lot!

Offline
*
Re: Could not resolve host: mirrorlist.centos.org
« Reply #12 on: October 08, 2024, 06:42:24 PM »
Hi,

mirrorlist.centos.org doesn't exists anymore.

From the .repo file:

# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
To resolve the issue you can mass update all .repo files:

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Bye Bye!


Gracias hermano me ayudó demasiado.