Errors during downloading metadata for repository 'fedora'

To upgrade fedora 31 by ‘dnf’ I faced the following problem

[mrsandipannayak@localhost ~]$ sudo dnf upgrade
Fedora 31 - x86_64 - Updates                    2.4 MB/s |  19 MB     00:08    
Fedora 31 - x86_64                              3.1 MB/s |  43 MB     00:13    
Errors during downloading metadata for repository 'fedora':
  - Curl error (23): Failed writing received data to disk/application for http://mirrors.piconets.webwerks.in/fedora-mirror/fedora/linux/releases/31/Everything/x86_64/os/repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck [Failed writing body (0 != 1448)]
Error: Failed to download metadata for repo 'fedora': Yum repo downloading error: Downloading error(s): repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck - Download failed: Curl error (23): Failed writing received data to disk/application for http://mirrors.piconets.webwerks.in/fedora-mirror/fedora/linux/releases/31/Everything/x86_64/os/repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck [Failed writing body (0 != 1448)]

[mrsandipannayak@localhost ~]$ 

[mrsandipannayak@localhost ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.3G     0  7.3G   0% /dev
tmpfs           7.4G   85M  7.3G   2% /dev/shm
tmpfs           7.4G  1.8M  7.4G   1% /run
tmpfs           7.4G     0  7.4G   0% /sys/fs/cgroup
/dev/sdb9       187G  9.8G  167G   6% /
tmpfs           7.4G  124K  7.4G   1% /tmp
/dev/sdb8       198G   45G  143G  24% /home
/dev/sdb11       11G  2.3G  8.0G  23% /var
/dev/sdb5       1.6G  269M  1.2G  19% /boot
/dev/sdb2        96M   49M   48M  51% /boot/efi
tmpfs           1.5G   12K  1.5G   1% /run/user/42
tmpfs           1.5G   14M  1.5G   1% /run/user/1000
[mrsandipannayak@localhost ~]$ 

I typed the following command but nothing happend:

[mrsandipannayak@localhost ~]$ sudo dnf clean all
[sudo] password for mrsandipannayak: 
11 files removed
[mrsandipannayak@localhost ~]$
1 Like

Hello @sandipannayak, welcome to Fedora! Please take a look at the introductory posts in #start-here if you’ve not had a chance.

Did you run:

sudo dnf update --refresh

after the dnf clean all command? Did it result in the same error? If it did, you’re hitting a bad mirror. If you can confirm, we can look at making dnf use a different mirror for you, and we can report this mirror to the Fedora infrastructure team too.

Yes sir, I typed the following command but nothing happened and the I face the same problem. Please help me.
[mrsandipannayak@localhost ~] sudo dnf clean all** 51 files removed **[mrsandipannayak@localhost ~] sudo dnf update --refresh
Fedora 31 openh264 (From Cisco) - x86_64 1.8 kB/s | 5.1 kB 00:02
Fedora Modular 31 - x86_64 1.6 MB/s | 5.2 MB 00:03
Fedora Modular 31 - x86_64 - Updates 1.2 MB/s | 4.0 MB 00:03
Fedora Modular 31 - x86_64 - Test Updates 563 kB/s | 1.4 MB 00:02
Fedora 31 - x86_64 - Test Updates 53 kB/s | 8.8 MB 02:50
Fedora 31 - x86_64 - Updates 1.8 MB/s | 19 MB 00:10
Fedora 31 - x86_64 4.0 MB/s | 43 MB 00:10
Errors during downloading metadata for repository ‘fedora’:

Well, I changed my configuration to use this mirror too, but it works for me:

$ cat /etc/yum.repos.d/fedora.repo 
[fedora]
name=Fedora $releasever - $basearch
baseurl=http://mirrors.piconets.webwerks.in/fedora-mirror/fedora/linux/releases/$releasever/Everything/$basearch/os/
#http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

...

Can you please try with:

sudo dnf clean all; sudo dnf makecache --refresh -v

and paste the output here?

[mrsandipannayak@localhost ~]$  vi /etc/yum.repos.d/fedora.repo


#[fedora]
#name=Fedora $releasever - $basearch
##baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
#enabled=1
#metadata_expire=7d
#repo_gpgcheck=0
#type=rpm
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
#skip_if_unavailable=False

[fedora]
name=Fedora $releasever - $basearch
baseurl=http://mirrors.piconets.webwerks.in/fedora-mirror/fedora/linux/releases/$releasever/Everything/$basearch/os/  
#http:// download. fedoraproject. org /pub/fedora/linux/releases/$releasever/Everything/$basearch/ os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False


[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/tree/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[fedora-source]
name=Fedora $releasever - Source
"/etc/yum.repos.d/fedora.repo" [readonly] 49L, 1787C                                                                                        4,1           Top

[mrsandipannayak@localhost ~]$ sudo dnf clean all; sudo dnf makecache --refresh -v
51 files removed
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.2.18
cachedir: /var/cache/dnf
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-cisco-openh264.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Making cache files for all metadata files.
fedora-cisco-openh264: has expired and will be refreshed.
fedora-modular: has expired and will be refreshed.
updates-modular: has expired and will be refreshed.
updates-testing-modular: has expired and will be refreshed.
updates-testing: has expired and will be refreshed.
updates: has expired and will be refreshed.
fedora: has expired and will be refreshed.
google-chrome: has expired and will be refreshed.
rpmfusion-free-updates-testing: has expired and will be refreshed.
rpmfusion-free-updates: has expired and will be refreshed.
rpmfusion-free: has expired and will be refreshed.
rpmfusion-nonfree-updates-testing: has expired and will be refreshed.
rpmfusion-nonfree-updates: has expired and will be refreshed.
rpmfusion-nonfree: has expired and will be refreshed.
repo: downloading from remote: fedora-cisco-openh264
Fedora 31 openh264 (From Cisco) - x86_64                                                                                      1.9 kB/s | 5.1 kB     00:02    
fedora-cisco-openh264: using metadata from Tue 17 Sep 2019 11:50:34 PM IST.
repo: downloading from remote: fedora-modular
Fedora Modular 31 - x86_64                                                                                                    1.6 MB/s | 5.2 MB     00:03    
fedora-modular: using metadata from Thu 24 Oct 2019 04:23:13 AM IST.
repo: downloading from remote: updates-modular
Fedora Modular 31 - x86_64 - Updates                                                                                          1.4 MB/s | 4.0 MB     00:02    
updates-modular: using metadata from Sat 01 Feb 2020 07:40:46 AM IST.
repo: downloading from remote: updates-testing-modular
Fedora Modular 31 - x86_64 - Test Updates                                                                                     514 kB/s | 1.4 MB     00:02    
updates-testing-modular: using metadata from Sun 02 Feb 2020 08:28:24 AM IST.
repo: downloading from remote: updates-testing
Fedora 31 - x86_64 - Test Updates                                                                                             1.1 MB/s | 8.8 MB     00:08    
updates-testing: using metadata from Mon 03 Feb 2020 07:23:40 AM IST.
repo: downloading from remote: updates
Fedora 31 - x86_64 - Updates                                                                                                  2.4 MB/s |  19 MB     00:07    
updates: using metadata from Mon 03 Feb 2020 06:21:02 AM IST.
repo: downloading from remote: fedora
error: Curl error (23): Failed writing received data to disk/application for http://mirrors.piconets.webwerks.in/fedora-mirror/fedora/linux/releases/31/Everything/x86_64/os/repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck [Failed writing body (0 != 16384)] (http://mirrors.piconets.webwerks.in/fedora-mirror/fedora/linux/releases/31/Everything/x86_64/os/repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck).
Fedora 31 - x86_64                                                                                                            4.4 MB/s |  43 MB     00:09    
Errors during downloading metadata for repository 'fedora':
  - Curl error (23): Failed writing received data to disk/application for http: // mirrors.piconets.webwerks. in  /fedora-mirror/fedora/linux/releases/31/Everything/x86_64/os/repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck [Failed writing body (0 != 16384)]
Error: Failed to download metadata for repo 'fedora': Yum repo downloading error: Downloading error(s): repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck - Download failed: Curl error (23): Failed writing received data to disk/application for http:// mirrors.piconets.webwerks.in/fedora-mirror/fedora/linux/releases/31/Everything/x86_64/os/repodata/d601f9ef02bca6948263031733c69a1dbdc8ad11750d4e8dbd91256d775ecaf5-filelists.xml.zck [Failed writing body (0 != 16384)]

[mrsandipannayak@localhost ~]$

1 Like

Hi,

Please try adding:

fastestmirror=false

to:

/etc/dnf/dnf.conf

Then again try issuing:

sudo dnf clean all; sudo dnf makecache --refresh -v

Thanks Tom.

1 Like

Looks like there’s another post on this already:

Please try the steps there and see if they work. Disabling fastestmirror is one of the things that seemed to have worked for people.

5 Likes

This is about Mac, but the error is the same “Curl error (23): Failed writing body”:

I saw that too, but that’s just a general cURL error. That is the symptom and can be caused by a multitude of things as the other post indicates. So, the suggestions from the other post are more relevant than general cURL hacking, especially since we’re not using the cURL client here, it’s being used by dnf internally.

1 Like

Thank you. Using “zchunk = False” in /etc/dnf/dnf.conf works for me. It solves my problem.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.