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
6 Likes

Thanks

1 Like

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

:enos_flag:

1 Like

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

1 Like

Also for reference:

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

1 Like