Bug 451753 - Broken notification appears every time computer is booted: Discover "Failed Offline Update Error while installing package: 0.0000
Summary: Broken notification appears every time computer is booted: Discover "Failed O...
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (offline) (show other bugs)
Version: 5.24.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-21 02:21 UTC by ioo+kde
Modified: 2023-04-11 20:56 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ioo+kde 2022-03-21 02:21:28 UTC
SUMMARY
I attempted to upgrade from 5.24.1 to 5.24.3 using KDE Discover. When I rebooted I got this message:

Failed Offline Update
Failed to update package 35.31.45.
Open Discover
Repair System.

I opened discover and tried up updated again. When the PC rebooted I got the similar message: 
Failed to update package 0.9252.

I tried to apply the updates again and got this message:
Failed to update package 0.0000.

I attempted to update again, same message:
Failed to update package 0.0000.

I tried to Repair System button. This does nothing, it is an empty button.

I followed the advice here: https://www.reddit.com/r/kdeneon/comments/t51rnr/pkcon_update_then_fatal_error_error_while/

I issued the following commands:

dpkg --configure -a
apt update
pkcon update

This worked, I upgraded my system to 5.24.3. The problem is that Discover always tells me:

Failed Offline Update
Failed to update package 0.0000.
Open Discover
Repair System

whenever I restart my system. How can I remove this notification message from appearing every time I boot? It is not correct anymore. KDE Discover failed to update the system pkcon did work but now KDE Discover is showing me a broken notification.

STEPS TO REPRODUCE
1. Run KDE Discover
2. The update fails
3. Run 

OBSERVED RESULT
Fatal error: Error while installing package: 0.0000

EXPECTED RESULT
KDE Discover will work successfully to update the system. This notification will not always appear when booting.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  5.24.3
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
How can I remove this notification. It is not correct.
Comment 1 Bug Janitor Service 2023-04-06 20:15:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/527
Comment 2 Nate Graham 2023-04-11 20:55:23 UTC
Git commit e87a50f455619dea5c51dea9c290556739112fc7 by Nate Graham.
Committed on 11/04/2023 at 20:53.
Pushed by ngraham into branch 'master'.

Always clear offline updates file after a repair operation

No matter what the results of the repair operation were, there's nothing
of any value that anyone can do with the file anymore, and if it sticks
around, it can annoy the user on every subsequent login for no good
reason. So let's just remove it.
Related: bug 450973, bug 467638
FIXED-IN: 5.27.5

M  +7    -0    libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp

https://invent.kde.org/plasma/discover/commit/e87a50f455619dea5c51dea9c290556739112fc7
Comment 3 Nate Graham 2023-04-11 20:56:53 UTC
Git commit b18ebb137e49ccde3be49239bfaa8d88ace6a0c4 by Nate Graham.
Committed on 11/04/2023 at 20:56.
Pushed by ngraham into branch 'Plasma/5.27'.

Always clear offline updates file after a repair operation

No matter what the results of the repair operation were, there's nothing
of any value that anyone can do with the file anymore, and if it sticks
around, it can annoy the user on every subsequent login for no good
reason. So let's just remove it.
Related: bug 450973, bug 467638
FIXED-IN: 5.27.5


(cherry picked from commit e87a50f455619dea5c51dea9c290556739112fc7)

M  +7    -0    libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp

https://invent.kde.org/plasma/discover/commit/b18ebb137e49ccde3be49239bfaa8d88ace6a0c4