Fedora 41 dnf update Curl error timeouts

Hi, I have a freshly installed Fedora 41 on my PC and sudo dnf update doesn’t work. Some repos load fine but most of them give me Curl error (28): Timeout was reached for ***.

Somewhere I saw that someone had this problem while dualbooting windows, and the answer was to get into windows and set time to UTC which I did, and yes my time is set correcly, but that just doesn’t fix the issue.
Also I have seen fix for something similar to this on a post about Fedora 41 Beta, that included running sudo dnf5 update instead of sudo dnf update, as well as running update command with --refresh but none of that seems to work for me.
I’m a newbie, if anyone could help me out I would be really thankful.

That looks like a network issue. You can try to browse using firefox to one of the URLs that timedout.

FYI please avoid postinhg screen shots of text. copy-n-paste then select and choose the </> buttom for pre-formatted text.

1 Like

Noted for the next time.

I have tried accessing one of them through firefox and, while it does take some time those URLs do open.

Edit: It seems that only ones that are timing out now are http://ciscobinary.openh264.org/ and indeed I can’t access them even through firefox.
Now I get

[294/313] Total                                                                                                                                                                                  100% |   0.0   B/s |   0.0   B |  00m00sFailed to download packages
 Librepo error: Cannot download Packages/o/openh264-2.4.1-2.fc41.x86_64.rpm: All mirrors were tried

The mirror you are timing out on looks odd.
What does dnf repolist report?

You can probe for the mirror manually.
Here is what I see:

$ curl  "https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64"
<?xml version="1.0" encoding="utf-8"?>
<metalink version="3.0" xmlns="http://www.metalinker.org/" type="dynamic" pubdate="Sun, 03 Nov 2024 20:44:45 GMT" generator="mirrormanager" xmlns:mm0="http://fedorahosted.org/mirrormanager">
 <files>
  <file name="repomd.xml">
   <mm0:timestamp>1710184951</mm0:timestamp>
   <size>2338</size>
   <verification>
    <hash type="md5">c29e941a059a0412028af260c7b8feb1</hash>
    <hash type="sha1">b126a6ef31e3b926cac66d5c7b9d6eea5183fc42</hash>
    <hash type="sha256">d55228768254190dedbd4862c10e1640e73349d2dbda12b5465e68958245fb56</hash>
    <hash type="sha512">740530d95fb7689913510d116230602bdabfc42b1438ce23a994e319d9820a655912a1fd73cf7f1e9e196b7f0b60e4223e087d9e91ca39a8028d6a1825b77246</hash>
   </verification>
   <resources maxconnections="1">
    <url protocol="https" type="https" location="US" preference="100">https://codecs.fedoraproject.org/openh264/41/x86_64/os/repodata/repomd.xml</url>
   </resources>
  </file>
 </files>
</metalink>

From that command I get:

$ dnf repolist
repo id                                            repo name                                                 
copr:copr.fedorainfracloud.org:phracek:PyCharm     Copr repo for PyCharm owned by phracek                    
fedora                                             Fedora 41 - x86_64                                        
fedora-cisco-openh264                              Fedora 41 openh264 (From Cisco) - x86_64                  
google-chrome                                      google-chrome                                             
rpmfusion-nonfree-nvidia-driver                    RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver        
rpmfusion-nonfree-steam                            RPM Fusion for Fedora 41 - Nonfree - Steam                
updates                                            Fedora 41 - x86_64 - Updates                              

I am not using WIFI, but it does seem like its my ethernet connection. After connecting to my phones hotspot, sudo dnf update works just fine. Seems like it isn’t a problem with my PC but rather with my network. Thanks to everyone for helping me out!

I was also hoping you would try curl "https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64". Please run that and post what it outputs.

Alright, the output is

$ curl "https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64"
<?xml version="1.0" encoding="utf-8"?>
<metalink version="3.0" xmlns="http://www.metalinker.org/" type="dynamic" pubdate="Wed, 06 Nov 2024 17:31:41 GMT" generator="mirrormanager" xmlns:mm0="http://fedorahosted.org/mirrormanager">
 <files>
  <file name="repomd.xml">
   <mm0:timestamp>1710184951</mm0:timestamp>
   <size>2338</size>
   <verification>
    <hash type="md5">c29e941a059a0412028af260c7b8feb1</hash>
    <hash type="sha1">b126a6ef31e3b926cac66d5c7b9d6eea5183fc42</hash>
    <hash type="sha256">d55228768254190dedbd4862c10e1640e73349d2dbda12b5465e68958245fb56</hash>
    <hash type="sha512">740530d95fb7689913510d116230602bdabfc42b1438ce23a994e319d9820a655912a1fd73cf7f1e9e196b7f0b60e4223e087d9e91ca39a8028d6a1825b77246</hash>
   </verification>
   <resources maxconnections="1">
    <url protocol="https" type="https" location="US" preference="100">https://codecs.fedoraproject.org/openh264/41/x86_64/os/repodata/repomd.xml</url>
   </resources>
  </file>
 </files>
</metalink>

Hi, Same thing here, but with different repo (hangs on nonfree steam)

sudo dnf upgrade
Removed 35 files, 25 directories. 0 errors occurred.
Updating and loading repositories:
 Fedora 41 - x86_64 - Updates                                                                                                     100% |  11.7 MiB/s |  10.9 MiB |  00m01s
 Copr repo for PyCharm owned by phracek                                                                                           100% |  29.2 KiB/s |   4.5 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - Steam                                                                                       100% | 237.0   B/s |  14.0 KiB |  01m01s
>>> Curl error (28): Timeout was reached for https://ipng.mm.fcix.net/rpmfusion/nonfree/fedora/steam/41/x86_64/repodata/repomd.xml [SSL connection timeout] - https://ipng
>>> Curl error (28): Timeout was reached for https://ipng.mm.fcix.net/rpmfusion/nonfree/fedora/steam/41/x86_64/repodata/ad54d8512754ca17f426b38d44081ede320efc637bd3d77eef
 google-chrome                                                                                                                    100% |   9.9 KiB/s |   3.2 KiB |  00m00s
 Fedora 41 - x86_64                                                                                                               100% |  16.2 MiB/s |  35.4 MiB |  00m02s
 RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver                                                                               100% | 219.0   B/s |  13.0 KiB |  01m01s
>>> Curl error (28): Timeout was reached for https://ipng.mm.fcix.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/repomd.xml [Failed to connect to ipng.mm.f
>>> Curl error (28): Timeout was reached for https://ipng.mm.fcix.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1ed0942
>>> Curl error (6): Could not resolve hostname for http://ftp.upjs.sk/pub/mirrors/rpmfusion.org/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131d
>>> Curl error (6): Could not resolve hostname for http://ipng.mm.fcix.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1e
>>> Curl error (6): Could not resolve hostname for http://mirrors.coreix.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d
>>> Curl error (6): Could not resolve hostname for https://ftp.fi.muni.cz/pub/linux/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de9
>>> Curl error (6): Could not resolve hostname for http://ftp.fi.muni.cz/pub/linux/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93
>>> Curl error (6): Could not resolve hostname for https://rpmfusion.ip-connect.info/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1e
>>> Curl error (6): Could not resolve hostname for http://rpmfusion.ip-connect.info/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1ed
>>> Curl error (6): Could not resolve hostname for http://mirror.nl.leaseweb.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bb
>>> Curl error (6): Could not resolve hostname for https://mirror.netsite.dk/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d
>>> Curl error (6): Could not resolve hostname for http://mirror.netsite.dk/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1
>>> Curl error (6): Could not resolve hostname for http://ftp.nluug.nl/os/Linux/distr/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131d
>>> Curl error (6): Could not resolve hostname for http://ftp.icm.edu.pl/pub/Linux/dist/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a013
>>> Curl error (6): Could not resolve hostname for https://ftp.icm.edu.pl/pub/Linux/dist/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a01
>>> Curl error (6): Could not resolve hostname for http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e73
>>> Curl error (6): Could not resolve hostname for https://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e7
>>> Curl error (6): Could not resolve hostname for http://www.mirrorservice.org/sites/download1.rpmfusion.org/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e7
>>> Curl error (6): Could not resolve hostname for http://rpmfusion.ip-connect.vn.ua/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1e
>>> Curl error (6): Could not resolve hostname for http://fedora.tu-chemnitz.de/pub/linux/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0
>>> Curl error (6): Could not resolve hostname for http://mirrors.neterra.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4
>>> Curl error (6): Could not resolve hostname for https://mirrors.neterra.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf
>>> Curl error (6): Could not resolve hostname for ftp://mirrors.neterra.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d
>>> Curl error (6): Could not resolve hostname for http://mirror.de.leaseweb.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bb
>>> Curl error (6): Could not resolve hostname for http://fr2.rpmfind.net/linux/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbc
>>> Curl error (6): Could not resolve hostname for ftp://mirrors.netix.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1e
>>> Curl error (6): Could not resolve hostname for http://mirrors.netix.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1
>>> Curl error (6): Could not resolve hostname for https://mirrors.netix.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d
>>> Curl error (6): Could not resolve hostname for http://mirror.yandex.ru/fedora/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93b
>>> Curl error (6): Could not resolve hostname for http://mir01.syntis.net/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1e
>>> Curl error (6): Could not resolve hostname for http://ftp.cc.uoc.gr/mirrors/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbc
>>> Curl error (6): Could not resolve hostname for https://ftp.cc.uoc.gr/mirrors/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bb
>>> Curl error (6): Could not resolve hostname for http://www.fedora.is/rpmfusion/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1ed09
>>> Curl error (6): Could not resolve hostname for http://download1.rpmfusion.org/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1ed09
>>> Curl error (6): Could not resolve hostname for https://download1.rpmfusion.org/nonfree/fedora/nvidia-driver/41/x86_64/repodata/f4b859fb49e737c99a14a0131de93bbcf4d1ed0
>>> Librepo error: Yum repo downloading error: Downloading error(s): repodata/f4b859fb49e737c99a14a0131de93bbcf4d1ed09425b4c30a743e0cfd60e7d37-primary.xml.gz - Cannot dow
 Fedora 41 openh264 (From Cisco) - x86_64                                                                                         ???% |   0.0   B/s |   0.0   B |  00m00s
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64 [Could not resolve host: mirrors.f
>>> Librepo error: Cannot prepare internal mirrorlist: Curl error (6): Could not resolve hostname for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh26

Same on l

ocal network and on mobilephone's hotspot (switzerland)

curl  "https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=x86_64"
<?xml version="1.0" encoding="utf-8"?>
<metalink version="3.0" xmlns="http://www.metalinker.org/" type="dynamic" pubdate="Tue, 04 Mar 2025 17:40:09 GMT" generator="mirrormanager" xmlns:mm0="http://fedorahosted.org/mirrormanager">
 <files>
  <file name="repomd.xml">
   <mm0:timestamp>1710184951</mm0:timestamp>
   <size>2338</size>
   <verification>
    <hash type="md5">c29e941a059a0412028af260c7b8feb1</hash>
    <hash type="sha1">b126a6ef31e3b926cac66d5c7b9d6eea5183fc42</hash>
    <hash type="sha256">d55228768254190dedbd4862c10e1640e73349d2dbda12b5465e68958245fb56</hash>
    <hash type="sha512">740530d95fb7689913510d116230602bdabfc42b1438ce23a994e319d9820a655912a1fd73cf7f1e9e196b7f0b60e4223e087d9e91ca39a8028d6a1825b77246</hash>
   </verification>
   <resources maxconnections="1">
    <url protocol="https" type="https" location="US" preference="100">https://codecs.fedoraproject.org/openh264/41/x86_64/os/repodata/repomd.xml</url>
   </resources>
  </file>
 </files>
</metalink>
dnf repolist
repo id                                                                     repo name                                                                                     
copr:copr.fedorainfracloud.org:phracek:PyCharm                              Copr repo for PyCharm owned by phracek                                                        
fedora                                                                      Fedora 41 - x86_64                                                                            
fedora-cisco-openh264                                                       Fedora 41 openh264 (From Cisco) - x86_64                                                      
google-chrome                                                               google-chrome                                                                                 
rpmfusion-nonfree-nvidia-driver                                             RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver                                            
rpmfusion-nonfree-steam                                                     RPM Fusion for Fedora 41 - Nonfree - Steam                                                    
updates                                                                     Fedora 41 - x86_64 - Updates                                                    
 uname -a
Linux fedora 6.13.5-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 27 15:07:31 UTC 2025 x86_64 GNU/Linux

My network should be ok, everything else works. Should you need other info, I’ll be happy to provide it.

Seems your DNS is not working.
Try to use the host command to lookup some of the failing host names in the dnf update error reports.