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>