Bug 401900 - Allow to overrule pacman db.lck
Summary: Allow to overrule pacman db.lck
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: Updates (interactive) (show other bugs)
Version: 5.14.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-08 20:59 UTC by francois5537
Modified: 2018-12-10 14:43 UTC (History)
1 user (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 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.