[Solved] Another Pacman instance running

This morning when I tried to update my system with yay command I got this error:

mardix@mardix-81x2 ~]$ yay
 -> /var/lib/pacman/db.lck is present.
 -> There may be another Pacman instance running. Waiting...

So what’s the problem and how can I fix it?

sudo rm /var/lib/pacman/db.lck

This file prevents multiple instances, if pacman crashes it can be left behind. Just delete it.

5 Likes

Thanks. I just did some search which I should have done at first place and found the same solution here:
https://forum.endeavouros.com/t/error-updating-with-pacman-and-yay/3418
:flushed: :slightly_smiling_face:

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.