❯ sudo pacman -Syu
error: cachyos-v3: signature from "CachyOS <admin@cachyos.org>" is invalid
error: cachyos-extra-v3: signature from "CachyOS <admin@cachyos.org>" is invalid
error: cachyos: signature from "CachyOS <admin@cachyos.org>" is invalid
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
~
It happened to me, too, after I installed Discover for KDE (which obviously you don’t need and shouldn’t).
As mentioned above I also had to remove db lock
sudo rm /var/lib/pacman/db.lck
and then uninstalling discover did the trick for me.
sudo pacman -Rdd discover
Can’t have another package manager at the same time. Don’t know if that helps since you don’t seem to have installed that.
Ahh that’s it…so it was ME after all lol. But like I had it for a day or so before this error popped up when I tried to update via pacman. I installed discover to get some stuff quickly over searching for them octopi. Oh well good to know