Bug 436409 - Locked packages cannot be unlocked
Summary: Locked packages cannot be unlocked
Status: RESOLVED REMIND
Alias: None
Product: muon
Classification: Unmaintained
Component: muon (show other bugs)
Version: 5.8.0
Platform: Neon Linux
: NOR grave
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-30 15:16 UTC by geisserml
Modified: 2023-01-01 16:28 UTC (History)
7 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 geisserml 2021-04-30 15:16:49 UTC
SUMMARY
I by mistake locked/pinned konsole and konsole-part and find no way to revert this. Opening the context menu and clicking on "Unlock package" will trigger a pop-up explaining the package could not be locked.

STEPS TO REPRODUCE (potentially dangerous)
1. Pin a package in Muon (right-click -> lock at current version)
2. Try to unlock it again
-> A popup will show up that says "Failed to lock package"
I assume Muon is trying to lock already locked packages rather than unlock them, at least the behaviour indicates this.

OBSERVED RESULT
It is not possible to unlock packages. The context menu option fails.

EXPECTED RESULT
It should be possible to unlock locked packages. This is important as it could break system updates if one accidentially locked a package (like me).

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-72-generic
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 7.2 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000

ADDITIONAL INFORMATION
/
Comment 1 geisserml 2021-05-01 17:00:38 UTC
It would be important if at least someone could tell how to manually revert locking a package (e. g. from command-line or via another package manager), since this issue could potentially break system updates.
Comment 2 geisserml 2021-06-13 11:46:58 UTC
Now found out how to manually revert the lock:
go to /etc/apt/preferences.d/ and delete the problematic files (konsole and konsole-kpart in my case)
Comment 3 geisserml 2023-01-01 16:28:42 UTC
Closing as I'm not using muon anymore.