Pacman -Syu not working: invalid pgp key

I am trying to perform a full system update using the command 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 any way to fix this?

+4
source share
2 answers

There are many topics that say you should edit the file pacman.configand delete the PGP key completely, but this is not a good idea.

just run this command and wait for your keys to be updated by downloading them from the servers:

$ sudo pacman-key --refresh-keys

and then do a full system update sudo pacman -Syu

+13
source

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

0

Source: https://habr.com/ru/post/1540571/


All Articles