【dnf install - failed】Errors during downloading metadata for repository 'updates':...


$ cat /etc/fedora-release
Fedora release 32 (Thirty Two)

$ uname -r

$ rpm -qa dnf


When running dnf install, it may fail with the following error message.

$ sudo dnf install bpftrace
[sudo] password for fdr:
Fedora 32 - x86_64 - Updates                                                                10 kB/s | 8.0 kB     00:00
Fedora 32 - x86_64 - Updates                                                               105 kB/s | 498 kB     00:04
Errors during downloading metadata for repository 'updates':
  - Zchunk error: Unable to find multipart download range

Error: Failed to download metadata for repo 'updates': Yum repo downloading error: Downloading error: Unable to initialize zchunk file repodata/614eafe39182738a02926010fba06db5562aae022e34f9be571c0abe0154e166-primary.xml.zck: Unable to set zchunk file descriptor for repodata/614eafe39182738a02926010fba06db5562aae022e34f9be571c0abe0154e166-primary.xml.zck: Unable to find multipart download range

Resolution (in my case)

Execute the following command.

$ sudo dnf clean all 
118 files removed

Verify that the issue has been resolved.

$ sudo dnf install bpftrace
 Package                           Architecture           Version                            Repository               Size
 bpftrace                          x86_64                 0.11.0-2.fc32                      updates                 1.2 M
Installing dependencies:
  bcc-0.15.0-2.fc32.x86_64                 bcc-tools-0.15.0-2.fc32.x86_64          bpftrace-0.11.0-2.fc32.x86_64
  clang-10.0.1-3.fc32.x86_64               clang-devel-10.0.1-3.fc32.x86_64        clang-libs-10.0.1-3.fc32.x86_64
  clang-tools-extra-10.0.1-3.fc32.x86_64   cmake-filesystem-3.17.4-2.fc32.x86_64   compiler-rt-10.0.1-1.fc32.x86_64
  gcc-c++-10.2.1-9.fc32.x86_64             kernel-devel-5.10.22-100.fc32.x86_64    libbpf-2:0.0.7-1.fc32.x86_64
  libomp-10.0.1-2.fc32.x86_64              libomp-devel-10.0.1-2.fc32.x86_64       libstdc++-devel-10.2.1-9.fc32.x86_64
  python3-bcc-0.15.0-2.fc32.noarch         python3-netaddr-0.7.19-21.fc32.noarch


What if the issue still persists?

The following links may be helpful.