PINE64
Sudo rm /var/lib/pacman/db.lck -- keeps being needed - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177)
+--- Forum: General Discussion of PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=178)
+--- Thread: Sudo rm /var/lib/pacman/db.lck -- keeps being needed (/showthread.php?tid=16032)



Sudo rm /var/lib/pacman/db.lck -- keeps being needed - tckosvic - 02-09-2022

The command in the title above removes a file that keeps pacman from running updates.  Question is what is causing this to keep setting over and over and how to prevent it occurring.

I have used this several times but the lock keeps coming back.  Why???

tom kosvic


RE: Sudo rm /var/lib/pacman/db.lck -- keeps being needed - zetabeta - 02-09-2022

(02-09-2022, 11:30 AM)tckosvic Wrote: The command in the title above removes a file that keeps pacman from running updates.  Question is what is causing this to keep setting over and over and how to prevent it occurring.

I have used this several times but the lock keeps coming back.  Why???

tom kosvic

i do not have pp pro.

are automatic updates on?

i have pp regular and using manjaro. i noticed that quite often i need "screen" software for updates. if update process is run under graphical environment, probably phosh, and phosh restarts then update process will be terminated, thus leaving locks and broken updates.

"screen" is software which locks into system rather than normal process tree and "screen" provides window to the running terminal.

ssh is other option for updates.


RE: Sudo rm /var/lib/pacman/db.lck -- keeps being needed - tckosvic - 02-09-2022

(02-09-2022, 11:52 AM)zetabeta Wrote:
(02-09-2022, 11:30 AM)tckosvic Wrote: The command in the title above removes a file that keeps pacman from running updates.  Question is what is causing this to keep setting over and over and how to prevent it occurring.

I have used this several times but the lock keeps coming back.  Why???

tom kosvic

i do not have pp pro.

are automatic updates on?

i have pp regular and using manjaro. i noticed that quite often i need "screen" software for updates. if update process is run under graphical environment, probably phosh, and phosh restarts then update process will be terminated, thus leaving locks and broken updates.

"screen" is software which locks into system rather than normal process tree and "screen" provides window to the running terminal.

ssh is other option for updates.
I think auto updates are done through discover. That is quite shakey.  It is always "fetching updates" and then says "up to date".  I use pacman for updates (manually) but it keeps shutting down due to lock file as per above..