Search code examples
pacman-package-manager

"pacman -Syu" not working: invalid PGP key


I'm trying to do a full system upgrade using pacman -Syu. It says:

:: File /var/cache/pacman/pkg/turbulence-0.3.5-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). 
Do you want to delete it? [Y/n]

Is there a way to fix this?


Solution

  • There are tons of topics out there that say you should edit the pacman.config file and remove the PGP key checks entirely but it's not a good idea.

    simply run this command and wait for refreshing your keys by downloading them from the servers:

    $ sudo pacman-key --refresh-keys
    

    and then proceed with you full system upgrade sudo pacman -Syu