Problems with upgrading

yay -Syu
→ /var/lib/pacman/db.lck is present.
→ There may be another Pacman instance running. Waiting…

  1. Cancel operation
  2. Clean lck:
    sudo rm /var/lib/pacman/db.lck
    
  3. Update again

Thanks

If/when your issue is resolved, please check the solution box under the post pointing out the solution.

:enos_flag:

you can simply update with yay, you don’t need -Syu

Also for reference:

https://wiki.archlinux.org/title/Pacman#%22Failed_to_init_transaction_(unable_to_lock_database)%22_error