Temporary Fedora Mirror Switch Due to Local Mirror Downtime

Hello everyone,

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

Thanks in advance for any help!

System Info

System:
  Host: 192.168.1.118 Kernel: 6.13.9-200.fc41.x86_64 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.3.3 Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Desktop Mobo: Micro-Star model: B450M-A PRO MAX (MS-7C52) v: 1.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: 3.G0
    date: 07/23/2022
Memory:
  System RAM: total: 16 GiB available: 15.53 GiB used: 5.1 GiB (32.8%)
  Array-1: capacity: 128 GiB note: check slots: 2 modules: 2 EC: None
  Device-1: Channel-A DIMM 0 type: DDR4 size: 8 GiB speed: 3600 MT/s
  Device-2: Channel-B DIMM 0 type: DDR4 size: 8 GiB speed: 3600 MT/s
CPU:
  Info: 6-core model: AMD Ryzen 5 5600 bits: 64 type: MT MCP cache: L2: 3 MiB
  Speed (MHz): avg: 3599 min/max: 550/4468 cores: 1: 3599 2: 3599 3: 3599
    4: 3599 5: 3599 6: 3599 7: 3599 8: 3599 9: 3599 10: 3599 11: 3599 12: 3599
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 22 [Radeon RX 6700/6700
    XT/6750 XT / 6800M/6850M XT] driver: amdgpu v: kernel
  Display: wayland server: Xwayland v: 24.1.6 compositor: kwin_wayland
    driver: gpu: amdgpu resolution: 1: 1920x1080~165Hz 2: 1920x1080~144Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.0.2 renderer: AMD
    Radeon RX 6700 XT (radeonsi navi22 LLVM 19.1.7 DRM 3.61
    6.13.9-200.fc41.x86_64)
  API: Vulkan v: 1.4.304 drivers: N/A surfaces: xcb,xlib,wayland
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info x11: xdriinfo,
    xdpyinfo, xprop, xrandr

Usually if a mirror is not working DNF will retry from another mirror after reporting the problem.

Is that not working for you?

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.

From the listing you provided

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.

Thank you for your reply.

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.