Keep getting a curl timeout error (28) whenever dnf updates/loads repos

Hi, I’m new to fedora (running 42) and have been using dnf with no issue until today where, when I try sudo dnf swap ffmpeg-free ffmpeg --allowerasing I get a timeout error:


Btw the reason I’m running that command is because I think it’ll solve the issue I’m having where youtube videos wont play and according to a reddit post, it’s cause fedora doesn’t come with the required codecs yet ffmpeg has them - is that correct?
Thankful for any/all responses : )

Welcome to Fedora @ccreature

Please check first with sudo dnf repolist if rpmfusion free & nonfree are listed.

If not you have to install them as shown below.

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

sudo dnf upgrade --refresh

After you should be able to repeate your command.

Hi - those repos weren’t listed so I used the command you wrote and I’m just getting that curl timeout again


In case this is relevant, I did enable third party repos when I initially set up the os

This could be a temporary network issue, but it would be nice to know if this used to work when you run dnf check-upgrade. Sometimes, the network issue is ate the remote end, in which case you just have to try again a day or two later.

Yeah there’s a large list of packages when I write that, but I get the same curl timeout error when I do dnf upgrade --refresh.

I added fastestmirror=true to dnf’s config file in hopes that could do something but I’m still getting the timeout error

I fixed it!! Someone had the same issue as me and they got a solution that also works for me :))))

TLDR I had to add ip_resolve=4 in dnf.conf

2 Likes

It is relevant but can be misleading.
The rpmfusion repo of interest there would be rpmfusion-nonfree-nvidia-drivers which is enabled when enabling the 3rd party repos, but the rpmfusion-nonfree{-updates} and rpmfusion-free{-updates} repos are not enabled that way. It is necessary to enable them as shown at the rpmfusion configuration page before the multimedia packages can be pulled down and installed.

3 Likes