Bug 445652 - /var/lib/PackageKit/offline-update-action file not deleted automatically, causing Discover to always suggest a reboot
Summary: /var/lib/PackageKit/offline-update-action file not deleted automatically, cau...
Status: RESOLVED WORKSFORME
Alias: None
Product: Discover
Classification: Applications
Component: Updates (offline) (other bugs)
Version First Reported In: 5.22.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
: 453296 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-17 14:47 UTC by Ovidiu-Florin BOGDAN
Modified: 2023-11-18 03:45 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ovidiu-Florin BOGDAN 2021-11-17 14:47:56 UTC
SUMMARY
I'm been using the plasma applet to get notified of updates and install them since this thing existed.
A few months ago I've upgraded my system to Fedora 34. Since then this applet keeps asking me for a reboot. No matter how much I reboot the system, this is the first notification I get when the system turns on.

OBSERVED RESULT
Reboot/Restart request is always active.

EXPECTED RESULT
Just like before, only ask for a restart after installing updates that require a restart. Otherwise only show a notification and the updates icon when there are updates available.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 34 KDE
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Comment 1 Rex Dieter 2021-11-19 14:54:43 UTC
That's the offline updates feature, but I've never seen it continually say to reboot (after the initial one required to install updates)
Comment 2 Nate Graham 2021-11-23 23:03:05 UTC
Could be related to Bug 443090. Can you paste the contents of `/var/lib/PackageKit/offline-update-competed`?
Comment 3 Ovidiu-Florin BOGDAN 2021-11-24 08:20:18 UTC
$ cat /var/lib/PackageKit/offline-update-competed
cat: /var/lib/PackageKit/offline-update-competed: No such file or directory

$ ls /var/lib/PackageKit/                     
offline-update-action  transactions.db

$ cat /var/lib/PackageKit/offline-update-action 
reboot

It seems that file does not exist. But I do have this file with these contents.
Comment 4 Nate Graham 2021-11-24 20:16:29 UTC
Aha, that's helpful. Looks like the problem is that the /var/lib/PackageKit/offline-update-action file didn't get cleaned up after the last offline update transaction. So as a result Discover always thinks yo need to reboot.
Comment 5 Ovidiu-Florin BOGDAN 2021-11-25 07:23:58 UTC
Is there anything I can do to resolve this?
Comment 6 Nate Graham 2021-11-29 18:29:15 UTC
You can delete the /var/lib/PackageKit/offline-update-action file to fix this for yourself. That's harmless and should resolve the issue.

The deeper question is why that didn't happen automatically, of course. It should have.
Comment 7 Ovidiu-Florin BOGDAN 2021-11-29 18:40:44 UTC
Thank you. It's back to normal now.
Comment 8 Ovidiu-Florin BOGDAN 2021-11-29 19:36:08 UTC
* deleted the /var/lib/PackageKit/offline-update-action file as instructed
* rebooted
* installed all updates via Discover -> got asked for reboot
* rebooted
* Discover reported updates -> the same updates that previously "we're installed"
* Installed the updates -> got asked for reboot
* checked for updates with `dnf upgrade` -> all the updates "installed" by Discover were not installed.

The `/var/lib/PackageKit/offline-update-action` is back containing `reboot` again.
Comment 9 Nate Graham 2022-05-04 15:57:51 UTC
*** Bug 453296 has been marked as a duplicate of this bug. ***
Comment 10 Steve Steiner 2023-03-14 16:44:15 UTC
This is flagged for Fedora RPMs, but this issue also occurs on:
Operating System: Ubuntu 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-35-generic (64-bit)

Discover 5.25.5

Deleted specified file, problem went away.  This started when a kernel update was successfully applied, I rebooted as suggested, but the file, apparently, didn't get reset.  Been driving me nuts...
Comment 11 Nate Graham 2023-10-19 19:23:32 UTC
Various changed went into both PackageKit and Discover to improve the situation here. Is anyone still experiencing it in Plasma 5.27 with PackageKit 1.2.5 or newer?
Comment 12 Ovidiu-Florin BOGDAN 2023-10-19 20:56:14 UTC
I have not experienced this for quite some time now. I have changed laptops and reinstalled Fedora several times since, with newer versions. IMHO we can close this.
Comment 13 Ovidiu-Florin BOGDAN 2023-10-19 20:58:24 UTC
I'm not closing it myself since there were more people reporting this besides me. I'll leave this to the devs to decide.
Comment 14 Bug Janitor Service 2023-11-03 03:45:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 15 Bug Janitor Service 2023-11-18 03:45:48 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!