Skip to content

Instantly share code, notes, and snippets.

@mpolinowski
Created September 23, 2023 10:55
Show Gist options
  • Save mpolinowski/f8c98c3cf98dbe1b0ab2f0c6c379da28 to your computer and use it in GitHub Desktop.
Save mpolinowski/f8c98c3cf98dbe1b0ab2f0c6c379da28 to your computer and use it in GitHub Desktop.
ArchLinux Pacman: signature is unknown trust
sudo pacman -S yay
error: yay: signature from "TNE <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/yay-12.1.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
# get key ID D6C9442437365605
sudo pacman-key --list-sigs TNE
# manually sign key
sudo pacman-key --recv-key D6C9442437365605 --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key D6C9442437365605
@mpolinowski
Copy link
Author

$ sudo rm -r /etc/pacman.d/gnupg
$ sudo pacman-key --init
$ sudo pacman-key --populate archlinux
$ sudo pacman -S archlinux-keyring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment