Fedora 41 Update failed

The logs I found:

[    7.618760] dnf5[918]: Updating and loading repositories:
[    8.394621] dnf5[918]: Cache-only enabled but no cache for repository "updates"
[FAILED] Failed to start dnf5-offline-trans… upgrades/transactions using DNF 5.
See 'systemctl status dnf5-offline-transaction.service' for details.

Fixed, if you are experiencing this issue, run sudo dnf5 provides / --releasever=41, this will create the missing cache.

Are you upgrading from Fedora 40 Gnome Workstation or something else? There were problems reported by a user who manually installed dnf5 in F40.

systemctl status dnf5-offline-transaction.service points to Systemd System Updates, which gives the default “cache” repository for updates as “/var/lib/system-update (or another directory of the package/upgrade manager’s choice)”. Since I don’t have /var/lib/system-update, I assume some other location was used. I can’t find a mention with journalctl. I assume the location is the one used for downloaded rpm files, which appears to be different for dnf5: /var/cache/libdnf5/.

My systems used dnf3 for the actual updates, but dnf5 appears early. From journalctl --no-hostname -b -1|cat:

Oct 30 11:22:36 systemd[1]: Starting dnf5-offline-transaction.service - Offline upgrades/transactions using DNF 5...
Oct 30 11:22:36 systemd[1]: Starting fwupd-offline-update.service - Updates device firmware whilst offline...
Oct 30 11:22:36 systemd[1]: Starting packagekit-offline-update.service - Update the operating system whilst offline...
Oct 30 11:22:36 pk-offline-update[868]: another framework set up the trigger
Oct 30 11:22:36 systemd[1]: packagekit-offline-update.service: Deactivated successfully.
Oct 30 11:22:36 systemd[1]: Finished packagekit-offline-update.service - Update the operating system whilst offline.
1 Like

Yes. And I have found a way to fix it.

1 Like

Glad you got it working.