I'm using Rocky 9. Yesterday, dnf was working perfectly fine. Today, it's failing with this:
tal@nuc ~> sudo dnf upgrade
Docker CE Stable - x86_64 20 kB/s | 7.7 kB 00:00
determining the fastest mirror (129 hosts).. done. [ === ] --- B/s | 0 B --:-- ETA
Extra Packages for Enterprise Linux 9 - x86_64 699 kB/s | 9.4 MB 00:13
determining the fastest mirror (20 hosts).. done. [ === ] --- B/s | 0 B --:-- ETA
Rocky Linux 9 - BaseOS 83 B/s | 588 B 00:07
Errors during downloading metadata for repository 'baseos':
- Status code: 404 for http://mirrors.radwebhosting.com/rockylinux/9.0/BaseOS/x86_64/os/repodata/940ab520-228b-43b6-adc2-ece0886ad597-PRIMARY.xml.gz (IP: 23.130.97.24)
- Status code: 404 for https://dl.rockylinux.org/pub/rocky/9.0/BaseOS/x86_64/os/repodata/940ab520-228b-43b6-adc2-ece0886ad597-PRIMARY.xml.gz (IP: 151.101.214.132)
- Status code: 404 for http://mirrors.rit.edu/rocky/9.0/BaseOS/x86_64/os/repodata/9ae65830-497c-4c16-abe8-0d6ecd017b46-GROUPS.xml.gz (IP: 129.21.171.72)
- Status code: 404 for http://mirror.phx1.us.spryservers.net/rockylinux/9.0/BaseOS/x86_64/os/repodata/9ae65830-497c-4c16-abe8-0d6ecd017b46-GROUPS.xml.gz (IP: 23.130.97.21)
- Status code: 404 for https://repos.eggycrew.com/rockylinux/9.0/BaseOS/x86_64/os/repodata/940ab520-228b-43b6-adc2-ece0886ad597-PRIMARY.xml.gz (IP: 144.172.118.199)
...
- Status code: 404 for http://nyc.mirrors.clouvider.net/rocky/9.0/BaseOS/x86_64/os/repodata/9ae65830-497c-4c16-abe8-0d6ecd017b46-FILELISTS.xml.gz (IP: 94.154.159.241)
Error: Failed to download metadata for repo 'baseos': Yum repo downloading error: Downloading error(s): repodata/940ab520-228b-43b6-adc2-ece0886ad597-PRIMARY.xml.gz - Cannot download, all mirrors were already tried without success; repodata/9ae65830-497c-4c16-abe8-0d6ecd017b46-FILELISTS.xml.gz - Cannot download, all mirrors were already tried without success; repodata/9ae65830-497c-4c16-abe8-0d6ecd017b46-GROUPS.xml.gz - Cannot download, all mirrors were already tried without success
You'll notice that the filenames it's trying to download have the prefix of 940ab520-228b-43b6-adc2-ece0886ad597-*.xml.gz
. If I go to those URLs in my browser, none of them have those files, but all of them seem to have 1ab0e62e-9df7-4fc0-ac2c-b1fc2e354505-*.xml.gz
.
Where is dnf getting that filename prefix? Why is it ending up with the wrong one?
I tried clearing the cache with these commands, but it didn't help:
sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo dnf upgrade
Update: It seems to have started working on its own a few minutes later. Was this likely an error on the servers? Is there something I can do, or look at next time?