Failed to download metadata for repo 'mariadb'

We have this problem on AlmaLinux 8.9 (Midnight Oncilla)
We have already executed the command;
sudo rm -r /var/cache/dnf
but it did not work…
Can you tell us the resolution?

You could also do

sudo dnf --enablerepo=* clean all

but the “did not work” would mean that root fails to remove a directory, which is unrelated to dnf.
Perhaps you mean that it did not affect your dnf issue?

HTTP status code 404 is “file not found”. If you had copy-pasted the error to your post, then I could have copy-pasted the URL to see what my browser says about it. You did not; you posted a bitmap image (screenshot). I won’t type from it.

Overall, the error message seems to be about your network connection having an issue or the repo server(s) having an issue. More likely the later. If so, then the issue is not in your system.

Hi, I solved the problem by updating to maria 10.5 and editing the file in /etc/yum.repos.d/mariadb.repo adding;
name = MariaDB
baseurl = Index of /yum/10.5/rhel8-amd64/

Thanks for your interest

Good. So the explanation is that Index of /yum/ does not contain “10.3” (any more) – that repo has been removed.

Note that the appstream AlmaLinux repo does provide both 10.3 and 10.5 streams for MariaDB, so it is not compulsory to use upstream versions.