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
Opened by gcb (gcb) - Monday, 07 September 2020, 20:24 GMT
Last edited by freswa (frederik) - Monday, 07 September 2020, 20:28 GMT
|
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
Monday, 07 September 2020, 20:28 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#65234