CachyOS won't update`

I had to reinstall cachyos, and I can’t update the system in discover or terminal. I get this error:

error: cachyos-v3: signature from “CachyOS” is invalid
error: database ‘cachyos-v3’ is not valid (invalid or corrupted database (PGP signature))

how do I fix this?

Try to run:

sudo cachyos-rate-mirrors

If this does not help, try following:

sudo rm -rf /etc/pacman.d/gnupg/
sudo pacman-key --init
sudo pacman-key --populate

sudo pacman-key --recv-keys F3B607488DB35A47 --keyserver
sudo pacman-key --lsign-key F3B607488DB35A47

thanks for the suggetion but that didn’t work. same error

I had this error yesterday. sudo rm -f /var/cache/pacman/pkg/* fixed it.