Skip to content

Instantly share code, notes, and snippets.

@kickhad
Created December 13, 2020 14:42
Show Gist options
  • Save kickhad/f9e4a11c1835335a52eccacad02ad481 to your computer and use it in GitHub Desktop.
Save kickhad/f9e4a11c1835335a52eccacad02ad481 to your computer and use it in GitHub Desktop.
Fix keyring errors.
#!/usr/bin/env bash
# Thanks to G3NSVRV
# https://github.com/yuk7/ArchWSL/issues/91#issuecomment-506806989
sudo rm -R /etc/pacman.d/gnupg/
sudo rm -R /root/.gnupg/
sudo rm -R /var/cache/pacman/pkg/
sudo gpg --refresh-keys
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --refresh-keys
sudo pacman -Syyu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment