Bug 450345 - Discover Fails to Install System Updates
Summary: Discover Fails to Install System Updates
Status: REOPENED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-15 21:55 UTC by cybeatb
Modified: 2023-11-21 10:42 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cybeatb 2022-02-15 21:55:22 UTC
SUMMARY
Sometimes, when I try to install a system update with Discover, restarting the machine when prompted does not install the updates, and I am prompted to install the same updates again.


STEPS TO REPRODUCE
1. Open Discover
2. Click on "Updates" tab.
3. Ensure that "System Updates" are selected for installing.
4. Click "Install All Updates"
5. Wait for the progress bar.
6. When prompted, click "Restart Now"
7. Wait for the machine to restart.
8. Open Discover again.
9. Click on the "Updates" tab.

OBSERVED RESULT
The offline installer screen is not displayed while the machine is restarting.
After restarting, Discover will prompt me to install the same System Updates again.

EXPECTED RESULT
The offline installer screen should be displayed while the machine is restarting.
After restarting, Discover should not prompt me to install the same System Updates again.

SOFTWARE/OS VERSIONS
Linux: Fedora 35
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.8-200.fc35.x86_64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I have enabled offline updates.
Sometimes this issue can be worked-around by installing system updates using the distro's package manager.
Other times, the distro's package manager will report that the system is up-to-date, even though Discover reports that updates are available.
This issue only affects "System Update" packages; other packages are not affected.
Comment 1 cybeatb 2022-02-16 18:46:03 UTC
Addendum: I noticed this morning that a full shut-down of the machine (click "Shut Down" instead of "Restart" when prompted) causes offline updates to install correctly.
Comment 2 guimarcalsilva 2022-03-20 00:19:16 UTC
I also experience this from time to time. It happened twice this week. I've also seen other people talking about this problem, including on Reddit and also a Brazillian Linux Youtuber in his last review of Neon: https://youtu.be/TWqQi4wj8Q0?t=285 (There are automatic English subtitles).

I'll be changing the status to confirmed since there is enough evidence this is not an isolated problem.
Comment 3 Paul Worrall 2022-08-19 20:45:24 UTC
IIUC:  The boot process checks for a symlink in the root directory called "/system-update" and if present it does the offline update.  That symlink is created when you do "Update All" in Discover, however something else removes it sometime later.

The symlink seems to disappear when the following appears in the journal:

PackageKit[1386]: uid 1001 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
PackageKit[1386]: uid 1001 obtained auth for org.freedesktop.packagekit.system-sources-refresh
PackageKit[1386]: refresh-cache transaction /1735_acdcdcec from uid 1001 finished with success after 7112ms

IDK what system-sources-refresh is or does, maybe something to do with the thing in the system tray that checks for updates?
Comment 4 Aleix Pol 2022-08-23 16:24:58 UTC
This is a problem on the startup of your distro, I see it's Fedora and they seem to support it, still something to be discussed with them.
Comment 5 guimarcalsilva 2022-08-23 16:38:51 UTC
(In reply to Aleix Pol from comment #4)
> This is a problem on the startup of your distro, I see it's Fedora and they
> seem to support it, still something to be discussed with them.

This bug also affects KDE Neon. Maybe this bug should be reopened since Neon is a KDE project?
Comment 6 guimarcalsilva 2022-09-08 21:57:00 UTC
I'm reopening this because this also affects KDE Neon, and since Neon is a KDE project it makes sense to reopen this to keep track of progress on Neon's side.