Why is `dnf5` unable to download a specific package past 47% each try?

I’d expect that there had been a problem with the repository, except that it is always able to download 47% of the package, yet stops there. At that point, it constantly switches between ≈ 60 KiB and 0.

Script started, output log file is '/home/RokeJulianLockhart/output.txt.log', input log file is '/home/RokeJulianLockhart/input.txt.log', timing file is '/home/RokeJulianLockhart/timings.txt.log'.
PowerShell 7.4.5

   A new PowerShell stable release is available: v7.4.6 
   Upgrade now, or check out the release page at:       
     https://aka.ms/PowerShell-Release?tag=v7.4.6       

PS /home/RokeJulianLockhart> sudo dnf upgrade --offline --refresh -y && sudo dnf5 offline reboot
[sudo] password for RokeJulianLockhart: 
Updating and loading repositories:
 RPM Fusion for Fedora 41 - Nonfree - Steam                                                                         100% |  15.3 KiB/s |   7.3 KiB |  00m00s
 Fedora 41 - x86_64 - Debug                                                                                         100% |  40.4 KiB/s |  18.2 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - Steam Debug                                                                   100% |  58.7 KiB/s |   7.5 KiB |  00m00s
 RPM Fusion for Fedora 41 - Free tainted                                                                            100% |  23.5 KiB/s |   7.2 KiB |  00m00s
 Visual Studio Code                                                                                                 100% |  15.1 KiB/s |   1.5 KiB |  00m00s
 warpdotdev                                                                                                         100% |   9.6 KiB/s |   1.5 KiB |  00m00s
 Copr repo for CoolerControl owned by codifryed                                                                     100% |   8.9 KiB/s |   1.5 KiB |  00m00s
 Fedora 41 - x86_64                                                                                                 100% |  55.9 KiB/s |  23.3 KiB |  00m00s
 RPM Fusion for Fedora 41 - Free                                                                                    100% |  27.1 KiB/s |   7.9 KiB |  00m00s
 Fedora 41 - x86_64 - Test Updates                                                                                  100% |  49.8 KiB/s |  21.8 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree                                                                                 100% |  26.6 KiB/s |   8.1 KiB |  00m00s
 Copr repo for Koi owned by birkch                                                                                  100% |  11.6 KiB/s |   1.5 KiB |  00m00s
 Fedora 41 - x86_64 - Test Updates Debug                                                                            100% |  17.2 KiB/s |  20.4 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - Updates                                                                       100% |  61.6 KiB/s |   7.9 KiB |  00m00s
 RPM Fusion for Fedora 41 - Free - Updates                                                                          100% |  64.7 KiB/s |   7.8 KiB |  00m00s
 TeamViewer - x86_64                                                                                                100% |  24.7 KiB/s |   3.4 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree tainted                                                                         100% |  58.4 KiB/s |   7.4 KiB |  00m00s
 google-chrome-unstable                                                                                             100% |  11.6 KiB/s |   1.3 KiB |  00m00s
 google-chrome                                                                                                      100% |  18.4 KiB/s |   1.3 KiB |  00m00s
 Fedora 41 - x86_64 - Updates                                                                                       100% |  28.6 KiB/s |  23.7 KiB |  00m01s
 Fedora 41 - x86_64 - Updates - Debug                                                                               100% |  35.6 KiB/s |  19.0 KiB |  00m01s
 Fedora 41 openh264 (From Cisco) - x86_64                                                                           100% |   3.1 KiB/s | 989.0   B |  00m00s
 Brave Browser                                                                                                      100% |  22.7 KiB/s |   2.0 KiB |  00m00s
 Fedora 41 openh264 (From Cisco) - x86_64 - Debug                                                                   100% |   1.7 KiB/s | 997.0   B |  00m01s
 Copr repo for prismlauncher owned by g3tchoo                                                                       100% |  11.6 KiB/s |   1.5 KiB |  00m00s
Repositories loaded.
Package                                            Arch        Version                                             Repository                           Size
Upgrading:
 ImageMagick                                       x86_64      1:7.1.1.40-1.fc41                                   updates-testing                  92.4 KiB
   replacing ImageMagick                           x86_64      1:7.1.1.39-1.fc41                                   <unknown>                        92.4 KiB
 ImageMagick-c++                                   x86_64      1:7.1.1.40-1.fc41                                   updates-testing                 693.2 KiB
   replacing ImageMagick-c++                       x86_64      1:7.1.1.39-1.fc41                                   <unknown>                       693.2 KiB
 ImageMagick-libs                                  x86_64      1:7.1.1.40-1.fc41                                   updates-testing                   9.1 MiB
   replacing ImageMagick-libs                      x86_64      1:7.1.1.39-1.fc41                                   <unknown>                         9.1 MiB
 code-insiders                                     x86_64      1.96.0-1731305244.el8                               code                            377.0 MiB
   replacing code-insiders                         x86_64      1.96.0-1731063649.el8                               @stored_transaction             377.0 MiB
 ibus                                              x86_64      1.5.31-1.fc41                                       updates-testing                 134.2 MiB
   replacing ibus                                  x86_64      1.5.31~rc1-2.fc41                                   @stored_transaction             134.2 MiB
 ibus-gtk2                                         x86_64      1.5.31-1.fc41                                       updates-testing                  44.1 KiB
   replacing ibus-gtk2                             x86_64      1.5.31~rc1-2.fc41                                   @stored_transaction              44.1 KiB
 ibus-gtk3                                         x86_64      1.5.31-1.fc41                                       updates-testing                  48.1 KiB
   replacing ibus-gtk3                             x86_64      1.5.31~rc1-2.fc41                                   @stored_transaction              48.1 KiB
 ibus-libs                                         x86_64      1.5.31-1.fc41                                       updates-testing                 860.0 KiB
   replacing ibus-libs                             x86_64      1.5.31~rc1-2.fc41                                   @stored_transaction             860.0 KiB
 ibus-panel                                        x86_64      1.5.31-1.fc41                                       updates-testing                 281.6 KiB
   replacing ibus-panel                            x86_64      1.5.31~rc1-2.fc41                                   @stored_transaction             281.6 KiB
 ibus-setup                                        noarch      1.5.31-1.fc41                                       updates-testing                 329.7 KiB
   replacing ibus-setup                            noarch      1.5.31~rc1-2.fc41                                   @stored_transaction             329.7 KiB
 ibus-typing-booster                               noarch      2.26.11-1.fc41                                      updates-testing                   5.1 MiB
   replacing ibus-typing-booster                   noarch      2.26.8-1.fc41                                       @stored_transaction               5.1 MiB
 ibus-xinit                                        noarch      1.5.31-1.fc41                                       updates-testing                   1.6 KiB
   replacing ibus-xinit                            noarch      1.5.31~rc1-2.fc41                                   @stored_transaction               1.6 KiB
 python3-typer                                     noarch      0.13.0-1.fc41                                       updates-testing                  16.5 KiB
   replacing python3-typer                         noarch      0.12.5-1.fc41                                       <unknown>                        16.5 KiB
 python3-typer-cli                                 noarch      0.13.0-1.fc41                                       updates-testing                   6.8 KiB
   replacing python3-typer-cli                     noarch      0.12.5-1.fc41                                       <unknown>                         6.7 KiB
 python3-typer-slim                                noarch      0.13.0-1.fc41                                       updates-testing                 533.7 KiB
   replacing python3-typer-slim                    noarch      0.12.5-1.fc41                                       <unknown>                       546.4 KiB

Transaction Summary:
 Upgrading:         15 packages
 Replacing:         15 package

Total size of inbound packages is 155 MiB. Need to download 155 MiB.
[1/1] ImageMagick-1:7.1.1.40-1.fc41.x86_64                                                                          100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[1/2] ImageMagick-libs-1:7.1.1.40-1.fc41.x86_64                                                                     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[1/3] ImageMagick-c++-1:7.1.1.40-1.fc41.x86_64                                                                      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[1/5] ibus-0:1.5.31-1.fc41.x86_64                                                                                   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[2/6] ibus-gtk2-0:1.5.31-1.fc41.x86_64                                                                              100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[3/7] ibus-gtk3-0:1.5.31-1.fc41.x86_64                                                                              100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[4/8] ibus-libs-0:1.5.31-1.fc41.x86_64                                                                              100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[5/9] ibus-setup-0:1.5.31-1.fc41.noarch                                                                             100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 6/10] ibus-xinit-0:1.5.31-1.fc41.noarch                                                                           100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 7/11] ibus-panel-0:1.5.31-1.fc41.x86_64                                                                           100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 8/12] ibus-typing-booster-0:2.26.11-1.fc41.noarch                                                                 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 9/13] python3-typer-0:0.13.0-1.fc41.noarch                                                                        100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[10/14] python3-typer-cli-0:0.13.0-1.fc41.noarch                                                                    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[11/15] python3-typer-slim-0:0.13.0-1.fc41.noarch                                                                   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[12/15] code-insiders-0:1.96.0-1731305244.el8.x86_64                                            47% [========          ] |   0.0   B/s |  64.1 MiB | -43m04s
------------------------------------------------------------------------------------------------------------------------------------------------------------
[14/15] Total                                                                                                       100% |   0.0   B/s |   0.0   B |  00m00s

1 Like

Ah, it probably is an issue with the repository:

[12/15] code-insiders-0:1.96.0-1731305244.el8.x86_64                                                                                                                                                                                                            95% [================= ] |   3.3 MiB/s | 130.5 MiB | -00m01s
>>> Curl error (92): Stream error in the HTTP/2 framing layer for https://packages.microsoft.com/yumrepos/vscode/Packages/c/code-insiders-1.96.0-1731305244.el8.x86_64.rpm [HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)] - https://packages.microsoft.com/yumrepos/vscode/Packages/c/code-insiders-1.96.0
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[14/15] Total                                                                                                                                                                                                                                                                       100% |   0.0   B/s |   0.0   B |  00m00sFailed to download packages
 Librepo error: ftruncate() failed: No such file or directory

Can anyone confirm? I used vscode-docs/docs/setup/linux.md at e0b395019dd4a064ed5445daebc639e108356b19 · microsoft/vscode-docs · GitHub to install it.

It works fine for me, try a different routing path:
Openh264 update issue - #12 by vgaetera

1 Like

@vgaetera, thanks for the advice — I’ll use torsocks in the future, to diagnose connection failures. However, it doesn’t seem to work for this:

[12/15] code-insiders-0:1.96.0-1731305244.el8.x86_64                                                                  47% [=========         ] |   0.0   B/s |  64.7 MiB | -01d01h

It also appears to cause problems with other repositories:

root@sayw4i:/home/RokeJulianLockhart# sudo torsocks dnf upgrade --offline --refresh -y
Updating and loading repositories:
1731331163 ERROR torsocks[190352]: Unable to resolve. Status reply: 4 (in socks5_recv_resolve_reply() at socks5.c:677)
 RPM Fusion for Fedora 41 - Free tainted                                                                                                                                                                                                                                            100% |   8.5 KiB/s |   7.2 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - Steam                                                                                                                                                                                                                                         100% |   6.0 KiB/s |   7.3 KiB |  00m01s
 TeamViewer - x86_64                                                                                                                                                                                                                                                                100% |   1.8 KiB/s |   3.4 KiB |  00m02s
 Copr repo for prismlauncher owned by g3tchoo                                                                                                                                                                                                                                       100% |   1.7 KiB/s |   1.5 KiB |  00m01s
 Fedora 41 - x86_64 - Updates                                                                                                                                                                                                                                                       100% |  18.9 KiB/s |  23.7 KiB |  00m01s
 Fedora 41 - x86_64                                                                                                                                                                                                                                                                 100% |  16.2 KiB/s |  23.3 KiB |  00m01s
 google-chrome                                                                                                                                                                                                                                                                      100% |   1.5 KiB/s |   1.3 KiB |  00m01s
 Fedora 41 - x86_64 - Test Updates Debug                                                                                                                                                                                                                                            100% |  14.1 KiB/s |  20.4 KiB |  00m01s
 Copr repo for Koi owned by birkch                                                                                                                                                                                                                                                  100% | 586.0   B/s |   1.5 KiB |  00m03s
 Copr repo for CoolerControl owned by codifryed                                                                                                                                                                                                                                     100% |   1.5 KiB/s |   1.5 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - Updates                                                                                                                                                                                                                                       100% |   8.5 KiB/s |   7.9 KiB |  00m01s
 Fedora 41 openh264 (From Cisco) - x86_64 - Debug                                                                                                                                                                                                                                   100% | 710.0   B/s | 997.0   B |  00m01s
 warpdotdev                                                                                                                                                                                                                                                                         100% | 677.0   B/s |   1.3 KiB |  00m02s
>>> Status code: 403 for https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml (IP: 34.96.117.51) - https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml - repomd.xml
>>> Status code: 403 for https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml (IP: 34.96.117.51) - https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml - repomd.xml
>>> Status code: 403 for https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml (IP: 34.96.117.51) - https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml - repomd.xml
>>> Status code: 403 for https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml (IP: 34.96.117.51) - https://releases.warp.dev/linux/rpm/stable/repodata/repomd.xml - repomd.xml
>>> Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
 RPM Fusion for Fedora 41 - Nonfree - Steam Debug                                                                                                                                                                                                                                   100% |   6.8 KiB/s |   7.5 KiB |  00m01s

Try this way:

sudo dnf swap libcurl-minimal libcurl
sudo dnf clean all

See also: Curl; Missing protocol "smtps" in Fed40 - #17 by vekruse

1 Like

Unfortunately, @vgaetera, it appears that I’m using libcurl already:

PS /home/RokeJulianLockhart> sudo dnf swap libcurl-minimal libcurl
[sudo] password for RokeJulianLockhart: 
Updating and loading repositories:
 warpdotdev                                                                                                         100% |   8.2 KiB/s |   1.5 KiB |  00m00s
Repositories loaded.
Package "libcurl-8.9.1-2.fc41.x86_64" is already installed.
Package "libcurl-8.9.1-2.fc41.i686" is already installed.
No packages to remove for argument: libcurl-minimal

Nothing to do.
PS /home/RokeJulianLockhart> sudo dnf clean all                   
Removed 113 files, 100 directories. 0 errors occurred.

It continues to fail (even with --allowerasing) too:

[12/15] code-insiders-0:1.96.0-1731305244.el8.x86_64                                            47% [========          ] |  22.4 KiB/s |  64.1 MiB | -54m49s

Many thanks, though.

1 Like

To continue troubleshooting, check the output:

rpm -q -a "*curl*"
rpm -V -a "*curl*"
type curl
curl -V
update-crypto-policies --show
update-crypto-policies --is-applied
update-crypto-policies --check

URL="https://packages.microsoft.com/yumrepos/vscode/\
Packages/c/code-insiders-1.96.0-1731305244.el8.x86_64.rpm"

curl -v -o "${URL##*/}" "${URL}"

To isolate the problem, try this:

wget -O "${URL##*/}" "${URL}"
sudo dnf upgrade "${URL##*/}" --setopt=localpkg_gpgcheck=1
1 Like
  1. @vgaetera, apologies for the wait. That appears to be successful:

    PS /home/RokeJulianLockhart> bash
    RokeJulianLockhart@sayw4i:~$ rpm -q -a "*curl*"
    rpm -V -a "*curl*"
    type curl
    curl -V
    update-crypto-policies --show
    update-crypto-policies --is-applied
    update-crypto-policies --check
    
    URL="https://packages.microsoft.com/yumrepos/vscode/\
    Packages/c/code-insiders-1.96.0-1731305244.el8.x86_64.rpm"
    
    curl -v -o ${URL##*/} ${URL}
    libcurl-8.9.1-2.fc41.x86_64
    curl-8.9.1-2.fc41.x86_64
    nbdkit-curl-plugin-1.40.4-1.fc41.x86_64
    libcurl-8.9.1-2.fc41.i686
    qemu-block-curl-9.1.1-2.fc41.x86_64
    curl is /usr/bin/curl
    curl 8.9.1 (x86_64-redhat-linux-gnu) libcurl/8.9.1 OpenSSL/3.2.2 zlib/1.3.1.zlib-ng brotli/1.1.0 libidn2/2.3.7 libpsl/0.21.5 libssh/0.10.6/openssl/zlib nghttp2/1.62.1 OpenLDAP/2.6.8
    Release-Date: 2024-07-31
    Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
    Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets
    DEFAULT
    The configured policy is applied
    The configured policy matches the generated policy
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Host packages.microsoft.com:443 was resolved.
    * IPv6: 2620:1ec:bdf::64
    * IPv4: 13.107.246.64
    *   Trying 13.107.246.64:443...
    * Connected to packages.microsoft.com (13.107.246.64) port 443
    * ALPN: curl offers h2,http/1.1
    } [5 bytes data]
    * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
    *  CAfile: /etc/pki/tls/certs/ca-bundle.crt
    *  CApath: none
    { [5 bytes data]
    * TLSv1.3 (IN), TLS handshake, Server hello (2):
    { [88 bytes data]
    * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
    } [1 bytes data]
    * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
    * TLSv1.3 (IN), TLS handshake, Server hello (2):
    { [155 bytes data]
    * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
    { [19 bytes data]
    * TLSv1.3 (IN), TLS handshake, Certificate (11):
    { [4936 bytes data]
    * TLSv1.3 (IN), TLS handshake, CERT verify (15):
    { [520 bytes data]
    * TLSv1.3 (IN), TLS handshake, Finished (20):
    { [52 bytes data]
    * TLSv1.3 (OUT), TLS handshake, Finished (20):
    } [52 bytes data]
    * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / secp256r1 / RSASSA-PSS
    * ALPN: server accepted h2
    * Server certificate:
    *  subject: C=US; ST=WA; L=Redmond; O=Microsoft Corporation; CN=packages.microsoft.com
    *  start date: Sep 11 14:10:52 2024 GMT
    *  expire date: Sep  6 14:10:52 2025 GMT
    *  subjectAltName: host "packages.microsoft.com" matched cert's "packages.microsoft.com"
    *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft Azure RSA TLS Issuing CA 04
    *  SSL certificate verify ok.
    *   Certificate level 0: Public key type RSA (4096/152 Bits/secBits), signed using sha384WithRSAEncryption
    *   Certificate level 1: Public key type RSA (4096/152 Bits/secBits), signed using sha384WithRSAEncryption
    *   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
    } [5 bytes data]
    * using HTTP/2
    * [HTTP/2] [1] OPENED stream for https://packages.microsoft.com/yumrepos/vscode/Packages/c/code-insiders-1.96.0-1731305244.el8.x86_64.rpm
    * [HTTP/2] [1] [:method: GET]
    * [HTTP/2] [1] [:scheme: https]
    * [HTTP/2] [1] [:authority: packages.microsoft.com]
    * [HTTP/2] [1] [:path: /yumrepos/vscode/Packages/c/code-insiders-1.96.0-1731305244.el8.x86_64.rpm]
    * [HTTP/2] [1] [user-agent: curl/8.9.1]
    * [HTTP/2] [1] [accept: */*]
    } [5 bytes data]
    > GET /yumrepos/vscode/Packages/c/code-insiders-1.96.0-1731305244.el8.x86_64.rpm HTTP/2
    > Host: packages.microsoft.com
    > User-Agent: curl/8.9.1
    > Accept: */*
    > 
    * Request completely sent off
    { [5 bytes data]
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    { [281 bytes data]
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    { [281 bytes data]
    < HTTP/2 200 
    < date: Mon, 11 Nov 2024 14:45:13 GMT
    < content-type: application/octet-stream
    < content-length: 142733185
    < last-modified: Mon, 11 Nov 2024 07:07:01 GMT
    < etag: "0x8DD021F70E7C2F5"
    < x-ms-request-id: a0c93655-b01e-0007-520f-3456e8000000
    < x-ms-version: 2024-11-04
    < x-ms-version-id: 2024-11-11T07:07:01.7957109Z
    < x-ms-is-current-version: true
    < x-ms-creation-time: Mon, 11 Nov 2024 07:07:01 GMT
    < x-ms-lease-status: unlocked
    < x-ms-lease-state: available
    < x-ms-blob-type: BlockBlob
    < content-disposition: attachment;filename=code-insiders-1.96.0-1731305244.el8.x86_64.rpm
    < x-ms-server-encrypted: true
    < strict-transport-security: max-age=31536000; includeSubDomains
    < x-content-type-options: nosniff
    < x-azure-ref: 20241111T144513Z-r1559f78f6b2kn98hC1LONxfun0000000ang00000001ed3t
    < x-cache: TCP_HIT
    < cache-control: public, max-age=31536000
    < x-fd-int-roxy-purgeid: 66950209
    < x-cache-info: L1_T2
    < accept-ranges: bytes
    < 
    { [8192 bytes data]
    100  136M  100  136M    0     0  3440k      0  0:00:40  0:00:40 --:--:-- 3534k
    * Connection #0 to host packages.microsoft.com left intact
    
  2. That’s successful too!

    RokeJulianLockhart@sayw4i:~$ wget -O "${URL##*/}" "${URL}"
    sudo dnf upgrade "${URL##*/}" --setopt=localpkg_gpgcheck=1
    code-insiders-1.96.0 100% [=========================================================================================================================================================================================================================================================================>]  136.12M    2.96MB/s
                              [Files: 1  Bytes: 136.12M [3.10MB/s] Redirects: 0  Todo: 0  Errors: 0                                                                                                                                                                                                      ]
    [sudo] password for RokeJulianLockhart: 
    Updating and loading repositories:
    Repositories loaded.
    Package                                                                                                       Arch                   Version                                                                                                       Repository                                                           Size
    Upgrading:
     code-insiders                                                                                                x86_64                 1.96.0-1731305244.el8                                                                                         @commandline                                                    377.0 MiB
       replacing code-insiders                                                                                    x86_64                 1.96.0-1731063649.el8                                                                                         @stored_transaction                                             377.0 MiB
    
    Transaction Summary:
     Upgrading:          1 package
     Replacing:          1 package
    
    Total size of inbound packages is 136 MiB. Need to download 0 B.
    After this operation, 8 KiB extra will be used (install 377 MiB, remove 377 MiB).
    Is this ok [y/N]: y
    
    Running transaction
    [1/4] Verify package files                                                                                                                                                                                                                                                          100% |   3.0   B/s |   1.0   B |  00m00s
    [2/4] Prepare transaction                                                                                                                                                                                                                                                           100% |   4.0   B/s |   2.0   B |  00m00s
    [3/4] Upgrading code-insiders-0:1.96.0-1731305244.el8.x86_64                                                                                                                                                                                                                        100% |  67.1 MiB/s | 377.6 MiB |  00m06s
    [4/4] Erasing code-insiders-0:1.96.0-1731063649.el8.x86_64                                                                                                                                                                                                                          100% | 571.0   B/s |   2.8 KiB |  00m05s
    Complete!
    
1 Like
> ldd $(readlink -f $(type -P dnf)) | grep -e curl
	libcurl.so.4 => /lib64/libcurl.so.4 (0x00007fb190916000)

I’m temporarily out of ideas other than using strace or inspecting the DNF5 source code to understand which specific library calls it uses.

I guess it would be best to open an issue upstream, especially if the problem is reproducible and reoccurs on the next update:
Issues · rpm-software-management/dnf5 · GitHub

1 Like

@vgaetera, same here:

RokeJulianLockhart@sayw4i:~$ ldd $(readlink -f $(type -P dnf)) | grep -e curl
        libcurl.so.4 => /lib64/libcurl.so.4 (0x00007fb75c454000)

Of course, it now miraculously works:

  1. sudo dnf upgrade --offline --refresh -y
    
  2. PS /home/RokeJulianLockhart> sudo dnf upgrade --offline --refresh -y
    Updating and loading repositories:
     Fedora 41 openh264 (From Cisco) - x86_64                                                                           100% |   1.8 KiB/s | 989.0   B |  00m01s
     RPM Fusion for Fedora 41 - Free                                                                                    100% |  27.8 KiB/s |   7.9 KiB |  00m00s
     Fedora 41 - x86_64 - Test Updates Debug                                                                            100% |  49.1 KiB/s |  20.4 KiB |  00m00s
     Copr repo for Koi owned by birkch                                                                                  100% |   7.8 KiB/s |   1.5 KiB |  00m00s
     RPM Fusion for Fedora 41 - Nonfree                                                                                 100% |  25.8 KiB/s |   8.1 KiB |  00m00s
     RPM Fusion for Fedora 41 - Free tainted                                                                            100% |  23.5 KiB/s |   7.2 KiB |  00m00s
     Fedora 41 - x86_64 - Updates                                                                                       100% |  56.7 KiB/s |  25.1 KiB |  00m00s
     RPM Fusion for Fedora 41 - Nonfree - Steam                                                                         100% |  59.7 KiB/s |   7.3 KiB |  00m00s
     Visual Studio Code                                                                                                 100% |  18.0 KiB/s |   1.5 KiB |  00m00s
     RPM Fusion for Fedora 41 - Nonfree - Steam Debug                                                                   100% |  23.6 KiB/s |   7.5 KiB |  00m00s
     RPM Fusion for Fedora 41 - Nonfree tainted                                                                         100% |  21.8 KiB/s |   7.4 KiB |  00m00s
     google-chrome                                                                                                      100% |   3.7 KiB/s |   1.3 KiB |  00m00s
     warpdotdev                                                                                                         100% |   4.3 KiB/s |   1.5 KiB |  00m00s
     Copr repo for prismlauncher owned by g3tchoo                                                                       100% |   7.4 KiB/s |   1.5 KiB |  00m00s
     RPM Fusion for Fedora 41 - Free - Updates                                                                          100% |  35.5 KiB/s |   7.2 KiB |  00m00s
     Fedora 41 - x86_64                                                                                                 100% |  30.1 KiB/s |  23.3 KiB |  00m01s
     Fedora 41 openh264 (From Cisco) - x86_64 - Debug                                                                   100% |   3.0 KiB/s | 997.0   B |  00m00s
     google-chrome-unstable                                                                                             100% |   7.2 KiB/s |   1.3 KiB |  00m00s
     Fedora 41 - x86_64 - Updates - Debug                                                                               100% |  29.3 KiB/s |  20.2 KiB |  00m01s
     Fedora 41 - x86_64 - Test Updates                                                                                  100% |  55.0 KiB/s |  21.8 KiB |  00m00s
     Fedora 41 - x86_64 - Debug                                                                                         100% |  24.1 KiB/s |  18.2 KiB |  00m01s
     TeamViewer - x86_64                                                                                                100% |  14.4 KiB/s |   3.5 KiB |  00m00s
     RPM Fusion for Fedora 41 - Nonfree - Updates                                                                       100% |  59.4 KiB/s |   7.4 KiB |  00m00s
     Brave Browser                                                                                                      100% |  24.7 KiB/s |   2.0 KiB |  00m00s
     Copr repo for CoolerControl owned by codifryed                                                                     100% |   4.2 KiB/s |   1.5 KiB |  00m00s
    Repositories loaded.
    Package                                            Arch        Version                                             Repository                           Size
    Upgrading:
     code-insiders                                     x86_64      1.96.0-1731478130.el8                               code                            377.1 MiB
       replacing code-insiders                         x86_64      1.96.0-1731391612.el8                               @stored_transaction             377.1 MiB
    
    Transaction Summary:
     Upgrading:          1 package
     Replacing:          1 package
    
    Total size of inbound packages is 136 MiB. Need to download 136 MiB.
    After this operation, 15 KiB extra will be used (install 377 MiB, remove 377 MiB).
    [1/1] code-insiders-0:1.96.0-1731478130.el8.x86_64                                                                  100% |   3.0 MiB/s | 136.1 MiB |  00m46s
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    [1/1] Total                                                                                                         100% |   3.0 MiB/s | 136.1 MiB |  00m46s
    Testing offline transaction
    Transaction stored to be performed offline. Run `dnf5 offline reboot` to reboot and run the transaction. To cancel the transaction and delete the downloaded files, use `dnf5 offline clean`.
    Complete!
    

I presume because you helpfully allowed me to bypass dnf to download that problematic update. Thank you. A shame that despite all your work, we weren’t able to diagnose the fault… feels like I’ve wasted your effort.

1 Like

No problem, it helped me hone my troubleshooting skills and now we know what to do if a similar problem suddenly reappears.

1 Like