Bug 439193 - Persistent Restart Required notification
Summary: Persistent Restart Required notification
Status: RESOLVED DUPLICATE of bug 438448
Alias: None
Product: Discover
Classification: Applications
Component: Notifier (show other bugs)
Version: 5.22.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-26 18:24 UTC by Ima S
Modified: 2021-07-30 15:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ima S 2021-06-26 18:24:49 UTC
SUMMARY
A "restart required" appears at every login, despite me restarting. Also the "click here to restart" button stays open on the notifications tray.

STEPS TO REPRODUCE
1. Restart
2. Login to KDE
3. 

OBSERVED RESULT
The restart required notification pops up again

EXPECTED RESULT
It doesn't

SOFTWARE/OS VERSIONS
Linux: Arch linux as of 2021-6-26 
(available in About System)
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
I think this bug is relevant: https://bugs.kde.org/show_bug.cgi?id=433525, but I'm not sure whether to comment on it or post a new bug.
Also cat /var/lib/PackageKit/offline-update-action gives "reboot%"
And I don't have the /var/lib/PackageKit/offline-update-competed file.
Comment 1 ProstMeister 2021-07-02 06:44:48 UTC
Hi, I'm running on KDE Neon 5.22.2 (KDE framework version 5.83.0, QT version 5.15.3), and I have the same issue. The solution so far is to completely remove plasma-discover package and replacing it with something else such as apper (which apparently doesn't notify for pending updates, though).

I submitted a post on Reddit to see if someone had found a solution, and I got in touch with another user who seems to have identified the path that leads to this bug:

1. enable the power off updates
2. tried them one time unsuccessfully (they weren't applied)
3. upgraded manually with pacman
4. disabled the power off updates, and since then, I have the notification on each login.

Here is the link on the discussion on Reddit: https://www.reddit.com/r/kde/comments/o0ao1u/restart_needed_notification_appears_after_every/

I also tried to remove plasma-discover via apt purge command, but it didn't solve the issue.

The result of "cat /var/lib/PackageKit/offline-update-action" gives "reboot" also for me; also, /var/lib/PackageKit/offline-update-competed file is missing on my system either.
Comment 2 ProstMeister 2021-07-02 06:55:01 UTC
(In reply to ProstMeister from comment #1)
> Hi, I'm running on KDE Neon 5.22.2 (KDE framework version 5.83.0, QT version
> 5.15.3), and I have the same issue. The solution so far is to completely
> remove plasma-discover package and replacing it with something else such as
> apper (which apparently doesn't notify for pending updates, though).
> 
> I submitted a post on Reddit to see if someone had found a solution, and I
> got in touch with another user who seems to have identified the path that
> leads to this bug:
> 
> 1. enable the power off updates
> 2. tried them one time unsuccessfully (they weren't applied)
> 3. upgraded manually with pacman
> 4. disabled the power off updates, and since then, I have the notification
> on each login.
> 
> Here is the link on the discussion on Reddit:
> https://www.reddit.com/r/kde/comments/o0ao1u/
> restart_needed_notification_appears_after_every/
> 
> I also tried to remove plasma-discover via apt purge command, but it didn't
> solve the issue.
> 
> The result of "cat /var/lib/PackageKit/offline-update-action" gives "reboot"
> also for me; also, /var/lib/PackageKit/offline-update-competed file is
> missing on my system either.

UPDATE: I tried renaming "/var/lib/PackageKit/offline-update-action" to "/var/lib/PackageKit/offline-update-action_old", and I don't get the reboot notification anymore. The Discover functionalities don't seem to be broken.
Comment 3 ProstMeister 2021-07-02 07:01:38 UTC
(In reply to ProstMeister from comment #1)
> Hi, I'm running on KDE Neon 5.22.2 (KDE framework version 5.83.0, QT version
> 5.15.3), and I have the same issue. The solution so far is to completely
> remove plasma-discover package and replacing it with something else such as
> apper (which apparently doesn't notify for pending updates, though).
> 
> I submitted a post on Reddit to see if someone had found a solution, and I
> got in touch with another user who seems to have identified the path that
> leads to this bug:
> 
> 1. enable the power off updates
> 2. tried them one time unsuccessfully (they weren't applied)
> 3. upgraded manually with pacman
> 4. disabled the power off updates, and since then, I have the notification
> on each login.
> 
> Here is the link on the discussion on Reddit:
> https://www.reddit.com/r/kde/comments/o0ao1u/
> restart_needed_notification_appears_after_every/
> 
> I also tried to remove plasma-discover via apt purge command, but it didn't
> solve the issue.
> 
> The result of "cat /var/lib/PackageKit/offline-update-action" gives "reboot"
> also for me; also, /var/lib/PackageKit/offline-update-competed file is
> missing on my system either.

UPDATE: 
I did the following tests:
1. I renamed "/var/lib/PackageKit/offline-update-action" to "/var/lib/PackageKit/offline-update-action_old", and I don't get the reboot notification anymore. The Discover functionalities don't seem to be broken.

2. I restored the "/var/lib/PackageKit/offline-update-action" file, and I then emptied it using nano. Even if "cat /var/lib/PackageKit/offline-update-action" gives no results (obviously), after rebooting I still got the infamous pending restart notification. For now I'll probably stick with my 1st workaround.
Comment 4 Ima S 2021-07-03 14:16:06 UTC
Thanks! Yeah, sudo mv /var/lib/PackageKit/offline-update-action /var/lib/PackageKit/offline-update-action_old did it for me too.
Comment 5 Nate Graham 2021-07-30 15:41:29 UTC
*** This bug has been marked as a duplicate of bug 438448 ***