Error: Failed to download metadata for repo 'devel':

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 returns

repo = Devel-9.5 arch = x86_64

http://dl.rockylinux.org/pub/rocky/9.5/Devel/x86_64/os/

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”.

Hi @jan.sundgaard

Thanks for the repor!

This should be resolved now–we had an outage of the mirrorlist service and our fallback code in the CDN was handing out bad URLs. I’ve created an issue to track that fix.

–Neil

1 Like