Repo error and yum not working

yum update
EA4 ( EasyApache 4 - c8 ) 2.4 MB/s | 3.7 MB 00:01
cPanel Addons Production Feed 12 kB/s | 10 kB 00:00
cPanel Plugins project 396 kB/s | 517 kB 00:01
AlmaLinux 8 - BaseOS 20 MB/s | 13 MB 00:00
AlmaLinux 8 - AppStream 27 MB/s | 15 MB 00:00
AlmaLinux 8 - Extras 30 kB/s | 13 kB 00:00
AlmaLinux 8 - AppStream 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository ‘AppStream’:

The default AlmaLinux 8 config has repos, like:

[AL8]$ cat /etc/yum.repos.d/almalinux.repo
# almalinux.repo

[baseos]
name=AlmaLinux $releasever - BaseOS
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
enabled = 1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

[appstream]
name=AlmaLinux $releasever - AppStream
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/$basearch/os/
enabled = 1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

...

Note how the default for ‘appstream’ is to get a list of URLs from:
https://mirrors.almalinux.org/mirrorlist/8/appstream

If you do have that setup, then the list would have had URL
http://repo.almalinux.org/almalinux/8.10/AppStream/x86_64/os/

That is unlikely – traffic is mainly directed to mirrors. Furthermore, the ‘mirror.almalinux.org’ is not same as ‘mirrors.almalinux.org’ and as said,
the hostname would be ‘repo.almalinux.org’ if it would be in the list.


In other words, the mirror.almalinux.org is not a name of any host, and
do check the config that you have.