Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67847 - Pacman fails to educate user on lockfile

Attached to Project: Arch Linux
Opened by gcb (gcb) - Monday, 07 September 2020, 20:24 GMT
Last edited by freswa (frederik) - Monday, 07 September 2020, 20:28 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

After a crash during pacman operations, I am left in a state where pacman will fail with the messages: "error: failed something (unable to lock database)"

The word "lock" is not present on the man pages[1]. The lockfile is not mentioned anywhere.

If the user do not have an internet connection, there is no way to resolve this situation.


The wiki says[2]:

"""
If you are certain that no instances of pacman are running then delete the lock file:
<code>rm /var/lib/pacman/db.lck</code>
"""

(lastly, shouldn't that file live under `/run/lock`? That would at least have given the user a better chance to resolve the issue without an online search/support)


Additional info:
* package version(s) Pacman v5.2.2 - libalpm v12.0.2
[1] for f in `find /usr/share/man -iname \*pacman\*`; do zcat "$f" | grep -i lock; done
[2] https://wiki.archlinux.org/index.php/Pacman#%22Failed_to_init_transaction_(unable_to_lock_database)%22_error
This task depends upon

Closed by  freswa (frederik)
Monday, 07 September 2020, 20:28 GMT
Reason for closing:  Duplicate
Additional comments about closing:  FS#65234

Loading...