Dnf5 update --refresh --offline lags behind with available updates

Hello,

when i try to update my system (fedora 40) with dnf5 using the offline update method via the following command

sudo dnf5 update --refresh --offline

it sometimes happens, that there are no new updates found/downloaded. The attempt terminates with

Nothing to do.

although there are definitely updates available as the “normal” command shows me:

sudo dnf5 update --refresh

Here you can see the outputs in comparison:

$ sudo dnf5 update --refresh
Updating and loading repositories:
 Fedora 40 openh264 (From Cisco) - x86_64                                                                                                                                100% |   2.6 KiB/s |   6.0 KiB |  00m02s
 RPM Fusion for Fedora 40 - Free - Updates                                                                                                                               100% |  75.7 KiB/s |  53.4 KiB |  00m01s
 Fedora 40 - x86_64                                                                                                                                                      100% |   4.8 MiB/s |  20.8 MiB |  00m04s
 RPM Fusion for Fedora 40 - Free                                                                                                                                         100% | 562.7 KiB/s | 177.2 KiB |  00m00s
 RPM Fusion for Fedora 40 - Nonfree                                                                                                                                      100% | 334.2 KiB/s |  94.2 KiB |  00m00s
 RPM Fusion for Fedora 40 - Nonfree - Updates                                                                                                                            100% |  97.6 KiB/s |  29.6 KiB |  00m00s
 Fedora 40 - x86_64 - Updates                                                                                                                                            100% |   8.3 MiB/s |   8.3 MiB |  00m01s
Repositories loaded.
Problem 1: package qt5-qtwebengine-freeworld-5.15.16-2.fc40.x86_64 requires qt5-qtbase(x86-64) = 5.15.13, but none of the providers can be installed
  - cannot install both qt5-qtbase-5.15.13-2.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - cannot install both qt5-qtbase-5.15.13-1.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - cannot install the best update candidate for package qt5-qtwebengine-freeworld-5.15.16-2.fc40.x86_64
  - cannot install the best update candidate for package qt5-qtbase-5.15.13-2.fc40.x86_64
 Problem 2: problem with installed package
  - package qt5-qtwebengine-freeworld-5.15.16-2.fc40.x86_64 requires qt5-qtbase(x86-64) = 5.15.13, but none of the providers can be installed
  - cannot install both qt5-qtbase-5.15.13-2.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - cannot install both qt5-qtbase-5.15.13-1.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - package kf5-frameworkintegration-5.115.0-3.fc40.x86_64 requires qt5-qtbase(x86-64) = 5.15.14, but none of the providers can be installed
  - cannot install the best update candidate for package kf5-frameworkintegration-5.115.0-2.fc40.x86_64

Package                                                                Arch            Version                                                                Repository                                     Size
Upgrading:
 fribidi                                                               x86_64          1.0.14-2.fc40                                                          updates                                   367.6 KiB
  replacing fribidi                                                    x86_64          1.0.13-4.fc40                                                          fedora                                    365.3 KiB
 kf6-ksvg                                                              x86_64          6.3.0-2.fc40                                                           updates                                   607.9 KiB
  replacing kf6-ksvg                                                   x86_64          6.3.0-1.fc40                                                           @commandline                              603.9 KiB
 libxslt                                                               x86_64          1.1.41-1.fc40                                                          updates                                   482.7 KiB
  replacing libxslt                                                    x86_64          1.1.40-1.fc40                                                          @commandline                              482.1 KiB
 mesa-dri-drivers                                                      x86_64          24.1.2-2.fc40                                                          updates                                   126.6 MiB
  replacing mesa-dri-drivers                                           x86_64          24.1.1-5.fc40                                                          @commandline                              126.6 MiB
 mesa-filesystem                                                       x86_64          24.1.2-2.fc40                                                          updates                                     3.6 KiB
  replacing mesa-filesystem                                            x86_64          24.1.1-5.fc40                                                          @commandline                                3.6 KiB
 mesa-libEGL                                                           x86_64          24.1.2-2.fc40                                                          updates                                   332.0 KiB
  replacing mesa-libEGL                                                x86_64          24.1.1-5.fc40                                                          @commandline                              332.0 KiB
 mesa-libGL                                                            x86_64          24.1.2-2.fc40                                                          updates                                   457.7 KiB
  replacing mesa-libGL                                                 x86_64          24.1.1-5.fc40                                                          @commandline                              457.7 KiB
 mesa-libgbm                                                           x86_64          24.1.2-2.fc40                                                          updates                                    65.3 KiB
  replacing mesa-libgbm                                                x86_64          24.1.1-5.fc40                                                          @commandline                               65.3 KiB
 mesa-libglapi                                                         x86_64          24.1.2-2.fc40                                                          updates                                   168.4 KiB
  replacing mesa-libglapi                                              x86_64          24.1.1-5.fc40                                                          @commandline                              168.4 KiB
 mesa-libxatracker                                                     x86_64          24.1.2-2.fc40                                                          updates                                    10.5 MiB
  replacing mesa-libxatracker                                          x86_64          24.1.1-5.fc40                                                          @commandline                               10.5 MiB
 mesa-va-drivers-freeworld                                             x86_64          24.1.2-1.fc40                                                          rpmfusion-free-updates                     14.8 MiB
  replacing mesa-va-drivers-freeworld                                  x86_64          24.1.1-1.fc40                                                          @commandline                               14.8 MiB
 mesa-vulkan-drivers                                                   x86_64          24.1.2-2.fc40                                                          updates                                    92.7 MiB
   replacing mesa-vulkan-drivers                                       x86_64          24.1.1-5.fc40                                                          @commandline                               92.7 MiB

Transaction Summary:
 Upgrading:        12 packages
 Replacing:        12 packages

Total size of inbound packages is 51 MiB. Need to download 51 MiB.
After this operation 53 KiB will be used (install 247 MiB, remove 247 MiB).
Is this ok [y/N]: n
Operation aborted by the user.

vs. a subsequent attempt to download updates using the “–offline”-flag:

$ sudo dnf5 update --refresh --offline
Updating and loading repositories:
Repositories loaded.
Problem 1: package qt5-qtwebengine-freeworld-5.15.16-2.fc40.x86_64 requires qt5-qtbase(x86-64) = 5.15.13, but none of the providers can be installed
  - cannot install both qt5-qtbase-5.15.13-2.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - cannot install both qt5-qtbase-5.15.13-1.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - cannot install the best update candidate for package qt5-qtwebengine-freeworld-5.15.16-2.fc40.x86_64
  - cannot install the best update candidate for package qt5-qtbase-5.15.13-2.fc40.x86_64
 Problem 2: problem with installed package
  - package qt5-qtwebengine-freeworld-5.15.16-2.fc40.x86_64 requires qt5-qtbase(x86-64) = 5.15.13, but none of the providers can be installed
  - cannot install both qt5-qtbase-5.15.13-2.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - cannot install both qt5-qtbase-5.15.13-1.fc40.x86_64 and qt5-qtbase-5.15.14-1.fc40.x86_64
  - package kf5-frameworkintegration-5.115.0-3.fc40.x86_64 requires qt5-qtbase(x86-64) = 5.15.14, but none of the providers can be installed
  - cannot install the best update candidate for package kf5-frameworkintegration-5.115.0-2.fc40.x86_64

Nothing to do.

Why is this the case and how can I make dnf5 apply updates using the “–offline”-flag immediatly?

Thank You!

Dnf5 is a work in progress. Could be the code of —offline has not been written or debugged maybe.

If you have been following the development of dnf5 you should be aware that it is a complete rewrite of dnf to move to C code and away from the dependency on python which is the basis for the presently used dnf.

Dnf5 is at present an option to be installed and used but is not provided in the default installation of f40 .

Users of dnf5 in the present release of fedora (both f39 and f40) are essentially beta testers. You should consider reporting bugs such as you encountered so it can be improved since development is still continuing for dnf5.

1 Like

ok, thank you, i was just wondering if this might be a settings issue (eg. --offline using a more conservative approach for stability reasons or so) because i also noticed this very same behavior with pkcon offline updates.

i dont know how pkcon/packagekit actually works:

(1.) does it just invoke dnf or

(2.) is the dnf-code implemented into packagekit?

i suppose the latter (= 2.) because i couldn’t find dnf being a dependency for packagekit, which would be necessery if option (1.) would be the case.

but then again, if the dnf code is implemented in packagekit itself, i’m sure packagekit does not have implemented dnf5-code yet, yet the problem occurs on packagekit too.

It’s using libndf.so on my KDE plasma install.

$ rpm -qR PackageKit
/bin/sh
/usr/bin/bash
PackageKit-glib(x86-64) = 1.2.8-5.fc40
config(PackageKit) = 1.2.8-5.fc40
glib2(x86-64) >= 2.62.0
libappstream.so.5()(64bit)
...
libdnf(x86-64) >= 0.43.1
libdnf.so.2()(64bit)
...