Errors during downloading metadata for repository 'updates'

When I do sudo dnf update I get this

 - Status code: 404 for https://ftp.plusline.net/fedora/linux/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 82.98.66.54)
  - Status code: 416 for http://mirror.i3d.net/pub/fedora/linux/updates/40/Everything/x86_64/repodata/3fa8739afd99d261f9864123eff0dac5eb43404d2678d0a9e99509cb57afd48e-primary.xml.zck (IP: 109.200.199.213)
  - Status code: 404 for http://ftp.plusline.net/fedora/linux/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 82.98.66.54)
  - Status code: 404 for https://ftp.fau.de/fedora/linux/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 131.188.12.211)
  - Status code: 416 for http://mirror.i3d.net/pub/fedora/linux/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 109.200.199.213)
  - Status code: 404 for https://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 129.143.116.10)
  - Curl error (23): Failed writing received data to disk/application for http://ftp.plusline.net/fedora/linux/updates/40/Everything/x86_64/repodata/3fa8739afd99d261f9864123eff0dac5eb43404d2678d0a9e99509cb57afd48e-primary.xml.zck [Failure writing output to destination]
  - Status code: 404 for http://distrib-coffee.ipsl.jussieu.fr/pub/linux/fedora/linux/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 134.157.176.20)
  - Status code: 404 for http://mirror.serverion.com/fedora/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 185.28.39.100)
  - Status code: 416 for https://mirror.i3d.net/pub/fedora/linux/updates/40/Everything/x86_64/repodata/719b67bc2f2b17eeec4597b67123a8a705fb6633c74ee952805f19761989661f-updateinfo.xml.zck (IP: 109.200.199.213)
Errore: Failed to download metadata for repo 'updates': Yum repo downloading error: Downloading error(s): repodata/3fa8739afd99d261f9864123eff0dac5eb43404d2678d0a9e99509cb57afd48e-primary.xml.zck - Download failed: Curl error (23): Failed writing received data to disk/application for http://ftp.plusline.net/fedora/linux/updates/40/Everything/x86_64/repodata/3fa8739afd99d261f9864123eff0dac5eb43404d2678d0a9e99509cb57afd48e-primary.xml.zck [Failure writing output to destination]

Preventing me to get and install updates. How to fix it?

sudo dnf clean all
sudo dnf update

Does your internet connection work in general?

ping fau.de
1 Like

Seems like it fixed it. My internet connection does work as I am writing this from the computer with the issues. Pinging fau.de doesn’t work, but copying ‘fau.de’ into firefox does seem to work weirdly enough

Some sites block ping, fau.de is one of them.
I like to use curl to test web site access.

curl https://fau.de
1 Like

Possibly this is related to the internet issues that were seen a couple days ago with a faulty microsoft update to windows.

Very unlikely if not impossible

2 Likes

Is there a reason why this keeps happening so often?
Do I have to reinstall the os to fix this?

The issue is usually that a mirror is not in sync with Fedora in which case trying a few hours later will usually work.

Reinstalling the OS will not help as the problem is not your system it’s the state of the mirrors in the internet.

What I do is hardcode some other mirror sites into my fedora-updates.repo file as baseurls, so the below is the copy and paste of my usual fedora-updates.repo file

[updates]
name=Fedora $releasever - $basearch - Updates
#baseurl=http://download.example/pub/fedora/linux/updates/$releasever/Everything/$basearch/
#baseurl= http://forksystems.mm.fcix.net/fedora/linux/updates/$releasever/Everything/$basearch/
#baseurl=https://dl.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/$basearch/f$releasever&arch=$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
countme=1
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

(the “download.example” one is a bogus placeholder baseurl they put in the file, so you’ll want to add your own).

Then if the mirror baseurl that dnf picks is giving me problems, I just go into my fedora-updates.repo file and comment out the metalink and comment in one of the baseurl lines that points to a host that’s not the one that’s having problems. After I have the update done, I then comment the baseurl lines all back out and the metalink= back in.

So then you might be thinking “great but how do you find out another baseurl?”

you can do:

  1. run “dnf repoinfo” and look at the Base URLs it shows for “updates” repo. But when the mirror is bad, that would just parrot back to you the bad base server. So what you can do is:

  2. copy the “metalink” url, namely it’s this for Fedora 41:

https://mirrors.fedoraproject.org/metalink?repo=updates-released-f41&arch=x86_64

put it in a web browser and load that URL. It won’t show it in the browser but it will download it in your ~/Downloads as file named “metalink.metalink” , look in that file and it will have listed many baseurls you can pick. They are the lines that start with “<url protocol=”.
Use one of those that’s not the one you’re having errors with.
When you’re done with the dnf update, you edit it back to point to the “metalink=” because by the next time you try to update the mirror issue will likely be gone.

You can also find the metalink files at /var/cache/dnf/*/metalink.xml.