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.
[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 ~]$
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.