Bug 2526051
| Summary: | Stuck on "Install pending software updates" on Shutdown/Restart due to dnf offline cache not cleaned | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | tor |
| Component: | dnf5 | Assignee: | rpm-software-management |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 44 | CC: | amatej, jonathan, mcatanza, pkratoch, ppisar, rpm-software-management |
| Target Milestone: | --- | Flags: | fedora-admin-xmlrpc:
mirror+
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-09-08 10:13:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
tor
2026-08-30 19:26:39 UTC
I think should be fixed by https://github.com/rpm-software-management/dnf5/pull/2736 can you still reproduce it with dnf5 >= 5.4.3.0? It was released to Fedoras only about a week ago. I will check next time the situation with "Install pending software updates" arises again. Checked my version and I'm on 5.4.3.0 as of now. Will return and post here then! Still an issue on dnf 5.4.3.0: ``` ╰─❮ dnf --version dnf5 version 5.4.3.0 dnf5 plugin API version 2.0 libdnf5 version 5.4.3.0 libdnf5 plugin API version 2.2 Loaded dnf5 plugins: name: builddep version: 1.0.0 API version: 2.0 name: changelog version: 1.0.0 API version: 2.0 name: config-manager version: 0.1.0 API version: 2.0 name: copr version: 0.1.0 API version: 2.0 name: needs_restarting version: 1.0.0 API version: 2.0 name: repoclosure version: 1.0.0 API version: 2.0 name: repomanage version: 1.0.0 API version: 2.0 name: reposync version: 1.0.0 API version: 2.0 Loaded libdnf5 plugins: name: appstream version: 1.0.0 API version: 2.0 name: expired-pgp-keys version: 1.0.0 API version: 2.1 ``` I waited until I got a GNOME notification that updates need to be installed. Immediately ran: ``` ╰─❮ sudo dnf offline status [sudo] password for torep: The system has been modified since the offline transaction was prepared. The offline transaction initiated by the following command is no longer valid: dnf5daemon-server To reschedule, run the command above. To clean up, run `dnf5 offline clean`. ``` I ran shutdown with the "Install pending software updates" checked TWICE, it did not appear that anything happened in "offline transaction"-mode. 1) dnf offline status gives the exact same output 2) There are rpms pending in /var/lib/dnf/offline/packages matches the packages listed by running dnf update (did not yet run this) ``` ╭─ /var/lib/dnf/offline/packages 12:25:50 ╰─❮ ll .rw-r--r--@ 136M root root 7 Sep 11:53 chromium-152.0.7977.82-1.fc44.x86_64.rpm .rw-r--r--@ 15M root root 7 Sep 11:53 chromium-common-152.0.7977.82-1.fc44.x86_64.rpm .rw-r--r--@ 183M root root 7 Sep 11:54 claude-desktop-unofficial-1.46388.2-3.2.4-1.x86_64.rpm .rw-r--r--@ 3.1M root root 7 Sep 11:53 gegl04-0.4.70-5.fc44.x86_64.rpm .rw-r--r--@ 28k root root 7 Sep 11:53 gegl04-matting-levin-0.4.70-5.fc44.x86_64.rpm .rw-r--r--@ 200M root root 7 Sep 11:53 joplin-3.7.16-1.rp.fc44.taw.x86_64.rpm .rw-r--r--@ 104k root root 7 Sep 11:53 librepo-1.21.0-2.fc44.x86_64.rpm .rw-r--r--@ 121k root root 7 Sep 11:53 libwmf-0.2.16-1.fc44.x86_64.rpm .rw-r--r--@ 79k root root 7 Sep 11:53 libwmf-lite-0.2.16-1.fc44.x86_64.rpm ╰─❮ sudo dnf update Updating and loading repositories: Repositories loaded. Package Arch Version Repository Size Upgrading: chromium x86_64 0:152.0.7977.82-1.fc44 updates 345.3 MiB replacing chromium x86_64 0:152.0.7977.75-1.fc44 updates 345.3 MiB chromium-common x86_64 0:152.0.7977.82-1.fc44 updates 65.5 MiB replacing chromium-common x86_64 0:152.0.7977.75-1.fc44 updates 65.5 MiB claude-desktop-unofficial x86_64 0:1.46388.2-3.2.4.fc42 claude-desktop-unofficial 583.0 MiB replacing claude-desktop-unofficial x86_64 0:1.40609.1-3.2.3.fc42 claude-desktop-unofficial 574.2 MiB gegl04 x86_64 0:0.4.70-5.fc44 updates 13.8 MiB replacing gegl04 x86_64 0:0.4.70-2.fc44 fedora 13.8 MiB gegl04-matting-levin x86_64 0:0.4.70-5.fc44 updates 39.4 KiB replacing gegl04-matting-levin x86_64 0:0.4.70-2.fc44 fedora 39.4 KiB joplin x86_64 0:3.7.16-1.rp.fc44.taw copr:copr.fedorainfracloud.o 196.5 MiB replacing joplin x86_64 0:3.6.16-1.rp.fc44.taw copr:copr.fedorainfracloud.o 156.9 MiB librepo x86_64 0:1.21.0-2.fc44 updates 253.1 KiB replacing librepo x86_64 0:1.21.0-1.fc44 updates 253.1 KiB libwmf x86_64 0:0.2.16-1.fc44 updates 420.7 KiB replacing libwmf x86_64 0:0.2.13-9.fc44 fedora 420.7 KiB libwmf-lite x86_64 0:0.2.16-1.fc44 updates 167.9 KiB replacing libwmf-lite x86_64 0:0.2.13-9.fc44 19278be6a81040f5b6cbc7bacea5 159.4 KiB ``` 3) Now I run dnf update and confirm. Output ends with: ``` Warning: Pending offline transaction has been invalidated. To reschedule, run: dnf5daemon-server Complete! ``` 4) Running dnf offline status it is NOT reset: ``` ╰─❮ sudo dnf offline status The system has been modified since the offline transaction was prepared. The offline transaction initiated by the following command is no longer valid: dnf5daemon-server To reschedule, run the command above. To clean up, run `dnf5 offline clean`. ``` 5) The "Install pending software updates" is still there... 6) Rebooting with "Install..." checked again takes me to "offline transaction"-mode where nothing appears to happen 7) On rebooting the "Install..." checkbox is still there and dnf offline status shows the exact same output: ``` ╰─❮ sudo dnf offline status [sudo] password for torep: The system has been modified since the offline transaction was prepared. The offline transaction initiated by the following command is no longer valid: dnf5daemon-server To reschedule, run the command above. To clean up, run `dnf5 offline clean`. ``` A side-observation that may (or may not?) be insignificant is that when I run the Shutdown option with the "Install..." box checked it does not turn off the machine, rather it just restarts it. Note that PackageKit is not used at all anymore since Fedora 44. *** This bug has been marked as a duplicate of bug 2529146 *** |