FS#35603 - [pacman] Pacman doesnt exit cleanly very occasionally
Attached to Project:
Pacman
Opened by Jason Russell (jrussell) - Sunday, 02 June 2013, 18:08 GMT
Last edited by Allan McRae (Allan) - Friday, 15 November 2013, 01:06 GMT
Opened by Jason Russell (jrussell) - Sunday, 02 June 2013, 18:08 GMT
Last edited by Allan McRae (Allan) - Friday, 15 November 2013, 01:06 GMT
|
Details
Description:
Pacman sometimes does not exit cleanly when spamming pacman with Ctl+c repetitively. Additional info: Forum thread: https://bbs.archlinux.org/viewtopic.php?pid=1281452 * package version(s) pacman 4.1.1-1 * config and/or log files etc. Steps to reproduce: pacman -Syu (followed by Ctl+C) pacman -Syu (followed by Ctl+C) pacman -Syu (followed by Ctl+C) pacman -Syu (followed by Ctl+C) Keep going and eventually pacman will say: :: Synchronizing package databases... error: failed to update core (unable to lock database) error: failed to update extra (unable to lock database) error: failed to update community (unable to lock database) error: failed to synchronize any databases error: failed to init transaction (unable to lock database) error: could not lock database: File exists if you're sure a package manager is not already running, you can remove /var/lib/pacman/db.lck |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 15 November 2013, 01:06 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 57090d8c
Friday, 15 November 2013, 01:06 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 57090d8c
https://bbs.archlinux.org/viewtopic.php?pid=1281452#p1281452
https://bbs.archlinux.org/viewtopic.php?pid=1281199#p1281199
Are you actually able to reproduce this directly via pacman, or does it require invocation via the shell wrapper?
I did it about 15 times, then I got the db.lock warning. Sometimes it happens sooner, and sometimes my fingers get sore and it won't happen.