Bug 2566287 - Unclear error when upgrade from Fedora 44 to 45 cannot be done with GNOME Software: "failed to run transaction: offline RPM transaction test failed with code 5"
Summary: Unclear error when upgrade from Fedora 44 to 45 cannot be done with GNOME Sof...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 44
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: amatej
QA Contact:
URL:
Whiteboard:
: 2567212 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-03 20:29 UTC by Jean-François Fortin Tam
Modified: 2026-11-13 09:18 UTC (History)
9 users (show)

Fixed In Version: dnf5-5.4.7.0-1.fc44
Clone Of:
Environment:
Last Closed: 2026-11-13 09:18:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot (65.74 KB, image/png)
2026-11-03 20:29 UTC, Jean-François Fortin Tam
no flags Details
Verbose terminal output from GNOME Software (1.77 MB, text/plain)
2026-11-03 20:29 UTC, Jean-François Fortin Tam
no flags Details

Description Jean-François Fortin Tam 2026-11-03 20:29:28 UTC
Created attachment 2162862 [details]
Screenshot

Description of problem: for some unknown reason (presumably when free disk space is scarce), GNOME Software can fail to initiate the upgrade from Fedora 44 to 45 after downloading the packages.

How reproducible:
On any computer with roughly 3 GB available disk space on /

Steps to Reproduce:
1. Get GNOME Software to offer upgrading from Fedora Workstation 44 to 45
2. Click to download the upgrade

Actual results:
The upgrade refuses to run, with a cryptic error message shown in GNOME Software:
> "failed to run transaction: offline RPM transaction test failed with code 5"

…as can be seen in the attached screenshot.

Expected results:
At least give me a clear error message, not an error code.

Additional info:
https://gitlab.gnome.org/GNOME/gnome-software/-/work_items/3019#note_2855535 tells me I'm supposed to file the issue here, not in GNOME Software, because GsDNF5 is your patchset.

Comment 1 Jean-François Fortin Tam 2026-11-03 20:29:58 UTC
Created attachment 2162863 [details]
Verbose terminal output from GNOME Software

Comment 2 Milan Crha 2026-11-04 06:35:36 UTC
Thanks for a bug report. Correct, the Fedora has its own dnf5 plugin (avoiding PackageKit), thus anything related to it is tracked here, not in the upstream.

I agree the error is not great. Unfortunately it's what the dnf5 returns. I'm moving this to the dnf5 package, with a plea to enhance the error messages they return to the callers. I thought apart of the error code the RPM transactions can return also a verbose information, like which package conflicts, how much more space on the disk is needed, and so on. The dnf5 command line surely knows how to decipher those problems into a user friendly form.

Comment 3 amatej 2026-11-04 09:08:30 UTC
This was actually enhanced very recently in https://github.com/rpm-software-management/dnf5/commit/582521bee8db913cf5f0d250a67c227610ca89de
It should be in dnf5daemon-server version 5.4.7.0 which I believe was released yesterday.

I have manually checked and code 5 seems to be: signature verification fail.

Comment 4 amatej 2026-11-04 09:14:46 UTC
To clarify it was released in upstream, it should be in fedora in the next couple of days.

Comment 5 Milan Crha 2026-11-05 12:18:39 UTC
*** Bug 2567212 has been marked as a duplicate of this bug. ***

Comment 6 Milan Crha 2026-11-05 14:13:46 UTC
Thank you, it'll surely help.

Is there a way, for the gnome-software using the dnf5daemon-server, to bypass the problem with the key verification? The command line can do it, right? Except, I'm not sure, whether it's about a corrupted package, aka signature did not match, or that (new?) signature key, which needs a confirmation to be imported. For the later is a signal for which the gnome-software is listening, but maybe not always. I recall there was a fix for it.

By the way, the bug #2567212 has code 6. Where is the list of the possible codes and what they mean, please? What is surprising is that the dnf command line does not report any error, according to the bug #2567212 reporter (see the bug).

Comment 7 amatej 2026-11-09 11:12:44 UTC
(In reply to Milan Crha from comment #6)
> Is there a way, for the gnome-software using the dnf5daemon-server, to
> bypass the problem with the key verification? The command line can do it,
> right? Except, I'm not sure, whether it's about a corrupted package, aka
> signature did not match, or that (new?) signature key, which needs a
> confirmation to be imported. For the later is a signal for which the
> gnome-software is listening, but maybe not always. I recall there was a fix
> for it.

There is the `pkg_gpgcheck` option which is used on the command line, I suppose you could disable it when the session is opened but that doesn't really seem like a good idea to me.
The most recent fix I recall is https://github.com/rpm-software-management/dnf5/pull/2717 but there might have been other ones.

> By the way, the bug #2567212 has code 6. Where is the list of the possible
> codes and what they mean, please? 

Interesting, the code 6 was added in https://github.com/rpm-software-management/dnf5/pull/2922 which is the same PR that enhances the reporting from codes to text (mentioned above). I suppose it must have used updated libdnf but the dnf5daemon-server was still running in the older version.
The results table is here: https://github.com/rpm-software-management/dnf5/blob/main/libdnf5/base/transaction.cpp#L88-L98

> What is surprising is that the dnf command
> line does not report any error, according to the bug #2567212 reporter (see
> the bug).

I think that makes sense here, the new code 6 means that the system was changed between when the transaction was resolved and when it was attempted to run. The dnf CLI command worked because it loaded current system repo, resolved and performed the transaction in one go.
I worry the code 6, or rather its message: `This transaction is no longer valid because the system repository has changed since it was loaded`, will show up more now but it protects the system from using invalid/stale transactions which could caused worse problems later. Depending on the frequency of reports maybe we should think about some automation when it happens that would automatically re-resolve the transaction but that would probably have to be done from the client not from libdnf?

Comment 8 Milan Crha 2026-11-09 13:37:02 UTC
Regarding the gpg check, I've been thinking of the org.rpm.dnf.v0.Base::repo_key_import_request D-Bus signal being involved here, but I did not reproduce it locally yet, thus I cannot tell for sure whether the signal is emitted, but gnome-software ignores it, or whether the signal is not emitted in this case. Silently ask the dnf5 to ignore gpg check is not a thing to do, I agree on that with you.

Hmm, the code 6, aka `ERROR_SYSTEM_CHANGED`, that should be possible to workaround just by pressing the "Download" button on the Updates page again, which re-runs the transaction. If any of the reporters can reproduce the code 6, could you try whether it'll work, please? And also restart the dnf5daemon-server (possible re-login or reboot the machine), to make sure the fresh bits are running.

I think it can happen with automatic updates on, which refreshes the repositories, checks for new updates and prepares them. When something else, outside or a different function in the gnome-software, also updates the repositories and more updates are pending, or when a package is installed/removed, the prepared offline update can get obsolete and needs the update to be re-run/re-downloaded too. I do not know whether also the repo info refresh can invalidate the offline update thought, the package install/remove/update surely can.

There is no D-Bus signal telling the prepared offline update has got obsolete, is there? That could be when changing the offline update state from prepared/downloaded to any other state.

Comment 9 amatej 2026-11-10 10:11:50 UTC
(In reply to Milan Crha from comment #8)
> Hmm, the code 6, aka `ERROR_SYSTEM_CHANGED`, that should be possible to
> workaround just by pressing the "Download" button on the Updates page again,
> which re-runs the transaction. If any of the reporters can reproduce the
> code 6, could you try whether it'll work, please? And also restart the
> dnf5daemon-server (possible re-login or reboot the machine), to make sure
> the fresh bits are running.

To be precise, yes, it is needed to re-run the transaction and also crucially the system repository has to be reloaded. I think this happens when a new session is opened or during the base::reset: https://dnf5.readthedocs.io/en/latest/dnf_daemon/dnf5daemon_dbus_api.8.html#org.rpm.dnf.v0.Base.reset.
I am not sure what exactly happens by pressing "Download" button but restarting the dnf5daemon-server should always work.

> 
> I think it can happen with automatic updates on, which refreshes the
> repositories, checks for new updates and prepares them. When something else,
> outside or a different function in the gnome-software, also updates the
> repositories and more updates are pending, or when a package is
> installed/removed, the prepared offline update can get obsolete and needs
> the update to be re-run/re-downloaded too. I do not know whether also the
> repo info refresh can invalidate the offline update thought, the package
> install/remove/update surely can.

Refresh of available repositories by it self shouldn't invalidate an offline update. It might happen that after the refresh the transaction would resolve differently but both would be correct. Only the older one wouldn't possibly pull in the latest packages.

> 
> There is no D-Bus signal telling the prepared offline update has got
> obsolete, is there? That could be when changing the offline update state
> from prepared/downloaded to any other state.

Right there is no such signal currently but since we now have the system state cookie the dnf5daemon-server could check whether the system changed, automatically reload the system repo and notify clients that prepared transaction have been invalidated.

Comment 10 Pavla Kratochvilova 2026-11-13 09:18:41 UTC
The update bodhi.fedoraproject.org/updates/FEDORA-2026-97ca946ad2 with dnf5-5.4.7.0-1.fc44  is in stable. Same for Fedora 45 and rawhide.


Note You need to log in before you can comment on or make changes to this bug.