Hi,
Lately I have been getting this more often when trying to update manjaro…
I just rebooted to try to fix it but it didn’t fix.
when I try to update the system straight after a fresh reboot with:
yay -Syu
everything goes fine, it downloads a bunch of stuff and then in the end it says in terminal:
-> /var/lib/pacman/db.lck is present.
-> There may be another Pacman instance running. Waiting...
I’ve been waiting for 30 minutes already and the reason I rebooted was because of the same notification the last time I tried to update.
It pisses me off.
I also tried to update in pamac GUI, same issue:
Preparing...
Waiting for another package manager to quit...
I know I can just remove the lock file and try again and it will probably work
sudo rm /var/lib/pacman/db.lck
but I does not feel good to do so because maybe some other system (pacman?) is trying to update automatically in the background and maybe the update aborts and it may cause issues.
So my questions are;
-
Why do I get this all of a sudden all the time? I barely had this before in the last 8 years I’ve been on Manjaro. What has changed that caused this annoying bug?
-
Which setting is causing this annoying updating in the background and overrides my yay -Syu command? Why does yay -Syu not write a lock file? or is the lockfile of yay being ignored by some other updating process?
-
Can I just safely
sudo rm /var/lib/pacman/db.lck
every time this happens and try updating again?
sorry for the rant, just annoyed.