Bug 401900

Summary: Allow to overrule pacman db.lck
Product: [Applications] Discover Reporter: francois5537
Component: UpdatesAssignee: Aleix Pol <aleixpol>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: francois5537
Priority: NOR    
Version First Reported In: 5.14.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description francois5537 2018-12-08 20:59:34 UTC
SUMMARY
Discover show's system has latest updates, on opening it shows an error (something like unable to authenticate). This may happen because of the lock file (/var/lib/pacman/db.lck) that can only be overruled as superuser/root.

It would be great if it would be possible to perform pacman db actions by authenticate for superuser rights.

STEPS TO REPRODUCE
1. Run # pacman -Syu
2. Hit CTRL+C / system shutdown / error ..
3. Run Discover

OBSERVED RESULT
1. Unable to perform any Discover update actions

EXPECTED RESULT
1. Prompt to (force) remove `/var/lib/pacman/db.lck`

SOFTWARE/OS VERSIONS
Windows: /
MacOS: /
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.14.1
KDE Frameworks Version:  5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
I was unable to track the error message, if this is needed please let me know.
Comment 1 Aleix Pol 2018-12-10 14:43:04 UTC
That's an alpm/pacman issue, there's not much we can do there.

This is happening because you are either running two pacman at the same time or it failed at closing at some point.