Fedora Account System
Red Hat Associate
Red Hat Customer
While testing Fedora 45 Beta 1.1, I encountered a problem with updating the system through GNOME Software. On both x86_64 and aarch64, Download appears to require two clicks before the download starts. On x86_64 as far as I remember, the update completed successfully after the reboot. On aarch64, after selecting Restart and Install, the system reboots but the updates are not installed. Reproducible: Always Steps to Reproduce: 1.Opened GNOME Software 2.Go to the Updates page. 3.Click Download. 4.Click Restart and Install. Actual Results: On both x86_64 and aarch64, Download appears to require two clicks before the download starts. After the download, I selected Restart and Install. However, after the system rebooted, the updates had not been installed on aarch64. Expected Results: Clicking Download once should start downloading the updates. After selecting Restart and Install, the system should reboot and install the downloaded updates during the offline update. Additional Information: I then updated the system from the command line with: sudo dnf upgrade --refresh -y The command completed successfully and the system was updated. This makes me suspect that there may be a problem specifically with the GNOME Software update workflow/offline update process. I am not sure whether this is a GNOME Software, PackageKit, or offline-update/backend issue, so I am reporting it against GNOME Software and would appreciate guidance if another component is the correct place.
Thanks for a bug report. The gnome-software does not use PackageKit, it talks to the dnf5 directly in Fedora. The dnf5daemon-server logs in the journalctl may hopefully show some issues when it was trying to prepare the offline update. I do not know where precisely the dnf5 stores the offline update logs, but I guess it's also in the journal. Could you try to find on the aarch64 machine whether there's anything about the offline update failure, please? This might be moved to the dnf5 eventually, I'd just not do it yet, until it's confirmed the dnf5 failed in either of the stages.
Created attachment 2156714 [details] dnf5 offline log I did some additional testing with Fedora 45 Beta 1.2. I can confirm that the problem is architecture-specific: * x86_64: GNOME Software update works as expected. * aarch64: the update does not complete after reboot. * Reproduced in an aarch64 VM. * Reproduced on bare-metal aarch64 running on a Raspberry Pi 5. I have attached the output of: dnf5 offline log * Since the same update workflow works correctly on x86_64 but fails on both aarch64 VM and aarch64 bare metal, this appears to be reproducible specifically on aarch64. Also, the previous issue where I had to click Download twice is no longer reproducible on Fedora 45 Beta 1.2. The updates now start downloading after a single click, as expected.
Well, here's the issue: Jul 25 03:00:17 fedora dnf5[756]: Transaction failed: Rpm transaction check failed. Jul 25 03:00:17 fedora dnf5[756]: Warning: skipped OpenPGP checks for 170 packages from repositories: fedora, fedora-cisco-openh264, updates-testing Jul 25 03:00:17 fedora dnf5[756]: - Failed to read package header from file "/var/lib/dnf/offline/packages/pam_oo7-0.7.0~alpha-1.fc45.aarch64.rpm" bad package, possibly? Or just a bad download or bad mirror?
I did this but still doesn't work, so most likely the problem is not gnome-software but dnf5 or something else sudo dnf5 offline clean sudo dnf5 upgrade --offline --refresh sudo dnf5 offline reboot I updated manually every package except gnome-calculator but still I see this messages Jul 25 03:00:12 fedora dnf5[660]: Starting offline transaction. This will take a while. Jul 25 03:00:12 fedora dnf5[660]: Package Arch Version Repository Size Jul 25 03:00:12 fedora dnf5[660]: Upgrading: Jul 25 03:00:12 fedora dnf5[660]: gnome-calculator aarch64 0:51~rc-1.fc45 updates-testing 8.6 MiB Jul 25 03:00:12 fedora dnf5[660]: replacing gnome-calculator aarch64 0:51~beta-1.fc45 fedora 8.5 MiB Jul 25 03:00:12 fedora dnf5[660]: Transaction Summary: Jul 25 03:00:12 fedora dnf5[660]: Upgrading: 1 package Jul 25 03:00:12 fedora dnf5[660]: Replacing: 1 package Jul 25 03:00:12 fedora dnf5[660]: Transaction failed: Rpm transaction check failed. Jul 25 03:00:12 fedora dnf5[660]: Warning: skipped OpenPGP checks for 1 package from repository: updates-testing Jul 25 03:00:12 fedora dnf5[660]: - Failed to read package header from file "/var/lib/dnf/offline/packages/gnome-calculator-51~rc-1.fc45.aarch64.rpm" Jul 25 03:00:12 fedora systemd[1]: dnf5-offline-transaction.service: Main process exited, code=exited, status=1/FAILURE Jul 25 03:00:12 fedora systemd[1]: dnf5-offline-transaction.service: Failed with result 'exit-code'. Jul 25 03:00:12 fedora systemd[1]: Failed to start dnf5-offline-transaction.service - Offline upgrades/transactions using DNF 5.
This is likely due to the systems lacking an RTC that works correctly. I know the RPi5 does not have a driver for the one installed; though, if there were, you would also need a battery. Likely the time is way of and the gpg signature can not be verified.
I can also reproduce the same offline transaction failure in an aarch64 VM, so it doesn't seem to be specific to the Raspberry Pi hardware. Interestingly, if I run: sudo dnf5 upgrade gnome-calculator the package upgrades successfully on the same aarch64 VM. So normal/online DNF5 transactions work, but the offline transaction fails with: Failed to read package header from file "/var/lib/dnf/offline/packages/gnome-calculator-51~rc-1.fc45.aarch64.rpm"
The aarch64 VM initially appeared to have the same issue, but after looking more closely its problem was that the VM was extremely slow/sometimes freezing during the offline transaction. Once that was taken into account, the offline update worked correctly in the VM. I also tested Fedora 44 on the RPi5 and the offline update has the same problem there. So at this point the problem seems specific to the RPi5/early boot environment, and the RTC/time issue looks like a strong possibility.
I can confirm that on an RPi5, disabling `chronyd.service` and enabling `systemd-timesyncd.service` solves the problem with offline updates. This appears to be the same issue/workaround described in https://bugzilla.redhat.com/show_bug.cgi?id=2242759, where `systemd-timesyncd` restores the clock early enough during boot for the offline update to succeed. Would it make sense to use `systemd-timesyncd.service` instead of `chronyd.service` as the default time synchronization service on Raspberry Pi / aarch64 systems without an RTC? It seems particularly well suited to these systems, since `systemd-timesyncd` persists the last known timestamp and can prevent the system clock from jumping backwards after a reboot.
*** This bug has been marked as a duplicate of bug 2242759 ***
Thank you for all the testing. I'd say whichever system service helps should be used on the respective system. What will be used is a system decision, not apps (like gnome-software or dnf). I do not know how these things are proposed, maybe by contacting the aarch64 edition/spin/image maintainers?