I’m building a Docker image with Rocky 9.5 as the base.
This works great, but this morning I ran into a weird problem.
I got the following error:
Error: Failed to download metadata for repo ‘devel’: Cannot prepare internal mirrorlist: No URLs in mirrorlist
I went down the rabbit hole a bit and noticed dnf will load
https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=Devel-9.5
which returnsrepo = Devel-9.5 arch = x86_64
The link does not it exist because of the capitol letter “D” in devel. If you change it to lowercase it works fine.
I think there must be a mis-configuration for the URL because in /etc/yum.repos.d/rocky-devel.repo the URL is hardcoded with a lower case “d”.