Bug 436390 - pkcon hang during pkcon update
Summary: pkcon hang during pkcon update
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords: efficiency
Depends on:
Blocks:
 
Reported: 2021-04-30 06:11 UTC by krzmbrzl
Modified: 2023-11-21 10:44 UTC (History)
8 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 krzmbrzl 2021-04-30 06:11:31 UTC
SUMMARY
Given that Discover now forces me to perform offline-updates, I wanted to install updates via apt upgrade which told me to use pkcon update instead.

Using that however has about a 30-50% chance of getting stuck during the process. It usually happens during the "Running" phase were it will just hang in there indefinitely (until I Ctrl+C out of it).
Every once in a while it also gets stuck in the "Installing" phase (usually around 80%). Ctrl+C'ing out of it and then re-running pkcon update then reports that there are no packages that need updating which kinda suggests to me that it is only the "UI" that gets stuck while the update has completed in the background.

STEPS TO REPRODUCE
1. Run pkcon update
2. See that it gets stuck


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-59-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4770 CPU @ 3.40GHz
Memory: 15,6 GiB of RAM
Graphics Processor: GeForce GTX 660 Ti/PCIe/SSE2
Comment 1 krzmbrzl 2021-05-07 08:27:46 UTC
I have noticed that usually in cases where pkcon gets stuck, executing it with elevated permissions from the beginning seems to somewhat reliably fix the issue of it getting stuck. I have not yet experienced that sudo pkcon update got stuck.

Note however that I got prompted for the sudo password every time I ran only pkcon update.
Comment 2 krzmbrzl 2021-05-15 14:15:37 UTC
Okay it seems that recently this does no longer happen. Until it re-surfaces, I'll close this report.
Comment 3 krzmbrzl 2021-05-19 07:30:31 UTC
I have to revise that. Today it hung again
Comment 4 Ricky Kresslein 2021-05-21 17:12:39 UTC
I often have the same issue as well. pkcon often hangs at the "Running" stage. I can fix it by running sudo apt full-upgrade.
Comment 5 amitabh.piyush 2021-12-19 00:19:53 UTC
pkcon is part of packagekit, it's bugs are tracked here: https://github.com/PackageKit/PackageKit/issues
Comment 6 Rishabh gupta 2023-11-21 10:44:35 UTC
Faced this same issue.  The solution was to run pkcon update with admin privileges(sudo)

I did not note the software versions before the update but after the update the versions are :

Software/OS version(After pkcon update)

Operating System: KDE neon 5.27

KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 5.15.0-75-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics