I’m a relatively new Fedora user (still a Linux beginner, to be honest) and I’m having some issues with package updates. The Fedora mirror hosted by a state university in my country seems to be down, causing dnf update to show error commands regarding the currently selected mirror.
I don’t expect this downtime to last too long, but I’d like to temporarily switch to another mirror until it’s resolved. Could someone guide me through how to do this properly?
For reference, here’s my current issue: Bash Paste
Aside from the bash outputs I shared in the link above, I haven’t encountered any other errors.
How can I check if DNF is using a different mirror?
As a temporary workaround, I enabled fastestmirror=True in the DNF config and performed the necessary updates. After the update, I set it back to False.
At the moment, my local mirror seems to be active, so I’m not sure if I can reproduce the error again.
erencm@192:~$ sudo dnf makecache
Updating and loading repositories:
Fedora 41 - x86_64 - Updates 100% | 545.8 KiB/s | 11.7 MiB | 00m22s
>>> Curl error (6): Could not resolve hostname for http://linus.iyte.edu.tr/linux/fedora/linux/updates/41/E
>>> Curl error (6): Could not resolve hostname for http://linus.iyte.edu.tr/linux/fedora/linux/updates/41/E
>>> Curl error (6): Could not resolve hostname for http://linus.iyte.edu.tr/linux/fedora/linux/updates/41/E
>>> Curl error (6): Could not resolve hostname for http://linus.iyte.edu.tr/linux/fedora/linux/updates/41/E
Fedora 41 - x86_64 100% | 1.5 MiB/s | 35.4 MiB | 00m24s
>>> Curl error (6): Could not resolve hostname for http://linus.iyte.edu.tr/linux/fedora/linux/releases/41/
>>> Curl error (6): Could not resolve hostname for http://linus.iyte.edu.tr/linux/fedora/linux/releases/41/
>>> Curl error (6): Could not resolve hostname for http://linus.iyte.edu.tr/linux/fedora/linux/releases/41/
Fedora 41 openh264 (From Cisco) - x86_64 100% | 5.9 KiB/s | 6.0 KiB | 00m01s
RPM Fusion for Fedora 41 - Free 100% | 194.2 KiB/s | 158.7 KiB | 00m01s
RPM Fusion for Fedora 41 - Free - Updates 100% | 67.5 KiB/s | 72.7 KiB | 00m01s
RPM Fusion for Fedora 41 - Nonfree - Updates 100% | 30.4 KiB/s | 32.9 KiB | 00m01s
RPM Fusion for Fedora 41 - Nonfree 100% | 125.5 KiB/s | 99.7 KiB | 00m01s
Repositories loaded.
Metadata cache created.
you can see that all the metadata has been successfully downloaded from some other mirror. If it had failed it would say somthing similar to “all mirror failed”.
Perhaps it would be better if dnf would not display the Curl error when the next mirror worked successful.
It might also make sense to include a line indicating that the system switched from the failed mirror to a working one and was able to fetch data properly.