Pergunta

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?

Foi útil?

Solução

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

Outras dicas

You may also be interested in running pacman-key --populate if the keys are massively out of date or if the other given answer of pacman-key --refresh-keys does not work in practice.

I ran into this problem when using a (ridiculously) outdated Arch version.

In case anyone else runs into this while using Docker, you can try downloading a fresh image (docker pull archlinux) in lieu of directly refreshing the keys.

I think this is useful because the sibling answers did not work for me.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top