Status code 404 on mirrors upon dnf update

On a new install of 8.4 I have a working network but am unable to perform a yum/dnf update.
It appears as if the list of mirrors being provided is not valid. Following are the error messages.

Rocky Linux 8 - BaseOS 133 kB/s | 291 kB 00:02
Errors during downloading metadata for repository ‘baseos’:

and more similar errors.

1 Like

I experienced this as well. I tried to migrate from CentOS 8 to Rocky 8 but failed due to this.

Preparing to migrate Rocky Linux 8.4 (Green Obsidian) to Rocky Linux 8.

Determining repository names for Rocky Linux 8.4 (Green Obsidian).Error: Failed to download metadata for repo 'baseos': Yum repo downloading error: Downloading error(s): repodata/b69dcdba0b0bac37b0759f0fec96d31d04a5afbf6578765a9f167a4b77f87cf6-primary.xml.gz - Cannot download, all mirrors were already tried without success; repodata/1a0312d013e0edb28fe31e2e8b8908fa47095360db4197a01f039d188dae3bd7-filelists.xml.gz - Cannot download, all mirrors were already tried without success

Failed to fetch info for package apr-util-ldap.x86_64.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

 A log of this installation can be found at /var/log/migrate2rocky.log

I got the same problem.
In addition, I can help hosting repository for rocky.

I am also getting the same error.

OS : Rocky-8.4-x86_64-minimal

root@localhost ~]# yum install dnsutils
Rocky Linux 8 - AppStream                                                                                                                                                   49 kB/s | 465 kB     00:09    
Errors during downloading metadata for repository 'appstream':
  - Status code: 404 for https://mirror.misakamikoto.network/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 119.201.28.53)
  - Status code: 404 for https://hkg.mirror.rackspace.com/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 180.150.156.88)
  - Status code: 404 for http://mirror.cs.ucy.ac.cy/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 194.42.17.150)
  - Status code: 404 for http://ftp.tc.edu.tw/Linux/Rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 163.17.38.18)
  - Status code: 404 for http://mirror.cs.ucy.ac.cy/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 194.42.17.150)
  - Status code: 404 for https://mirrors.sdu.edu.cn/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 101.76.224.14)
  - Status code: 404 for http://rocky.mirror.co.ge/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 185.19.98.106)
  - Status code: 404 for http://ftp.riken.jp/Linux/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 134.160.38.1)
  - Status code: 404 for https://mirrors.sdu.edu.cn/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 101.76.224.14)
  - Status code: 404 for https://hkg.mirror.rackspace.com/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 180.150.156.88)
  - Status code: 404 for http://mirror.cs.ucy.ac.cy/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 194.42.17.150)
  - Status code: 404 for http://rocky.mirror.co.ge/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 185.19.98.106)
  - Status code: 404 for https://mirrors.sdu.edu.cn/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 101.76.224.14)
  - Status code: 404 for https://hkg.mirror.rackspace.com/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 180.150.156.88)
  - Status code: 404 for http://ftp.riken.jp/Linux/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 134.160.38.1)
  - Status code: 404 for http://ftp.riken.jp/Linux/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 134.160.38.1)
  - Status code: 404 for http://rocky.mirror.co.ge/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 185.19.98.106)
  - Status code: 404 for http://ftp.yjsoft.xyz/rocky-linux/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 3.36.224.178)
  - Status code: 404 for http://rockylinux.ccns.ncku.edu.tw/pub/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 140.116.163.144)
  - Status code: 404 for https://mirror.telkomuniversity.ac.id/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 103.233.100.107)
  - Status code: 404 for http://ftp.tc.edu.tw/Linux/Rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 163.17.38.18)
  - Status code: 404 for https://mirrors.sjtug.sjtu.edu.cn/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 202.120.58.155)
  - Status code: 404 for https://mirror.misakamikoto.network/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 119.201.28.53)
  - Status code: 404 for https://mirror.misakamikoto.network/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 119.201.28.53)
  - Status code: 404 for http://rockylinux.ccns.ncku.edu.tw/pub/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 140.116.163.144)
  - Status code: 404 for http://ftp.yjsoft.xyz/rocky-linux/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 3.36.224.178)
  - Status code: 404 for https://mirrors.sjtug.sjtu.edu.cn/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 202.120.58.155)
  - Status code: 404 for https://mirror.telkomuniversity.ac.id/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 103.233.100.107)
  - Status code: 404 for https://mirrors.sjtug.sjtu.edu.cn/rocky/8.4/AppStream/x86_64/os/repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz (IP: 202.120.58.155)
  - Status code: 404 for http://ftp.tc.edu.tw/Linux/Rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 163.17.38.18)
  - Status code: 404 for https://mirror.telkomuniversity.ac.id/rocky/8.4/AppStream/x86_64/os/repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz (IP: 103.233.100.107)
  - Status code: 404 for http://rockylinux.ccns.ncku.edu.tw/pub/rocky/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 140.116.163.144)
  - Status code: 404 for http://ftp.yjsoft.xyz/rocky-linux/8.4/AppStream/x86_64/os/repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz (IP: 3.36.224.178)
Error: Failed to download metadata for repo 'appstream': Yum repo downloading error: Downloading error(s): repodata/fe75963db57adbd467579baf726905f9804f2fa359f8e94a6040bc1cc827f275-primary.xml.gz - Cannot download, all mirrors were already tried without success; repodata/6c940fff142c3a71aee300b52427b9f0c729e6893eebd11779db8b14dd1b57c4-filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/4471fa872d75b1006a8aaa508d04e2434b51696e6114699e61a50aec6cf2b4f4-modules.yaml.gz - Cannot download, all mirrors were already tried without success

Same here in a Vbox VM and Nat. Using .ge mirrors.

I have found a workaround:
The appropriate .repo files in /etc/yum.repos.d/ can be edited to provide a fixed url instead of the mirror list.
In each needed repository file, comment out the mirrolist line (often line 13) and uncomment the baseurl line (usually the following line).

2 Likes

one liner for lazy people :grinning:

find /etc/yum.repos.d -name "Rocky-*.repo" -exec sed -i 's/^mirrorlist=/#&/' {} \; -exec sed -i '/^#baseurl=/s/^#//' {} \;
1 Like

This has been fixed it seems.

I concur. This has been fixed on the infrastructure side. The mirror list is being resolved OK.

Just apply this fix

sudo sed -i ‘s/10.2/10.3/’ /etc/yum.repos.d/MariaDB.repo

and re-run yum update
It wil work

But I don’t think they were talking about the MariaDB repo, they were talking about the Rocky repos.

404 error that I was getting was same as being discussed in the group and using the sed -i as mentioned above - solved it for all mirrors 404