Skip to content

Instantly share code, notes, and snippets.

@Kiwi
Forked from kickhad/arch_keyring_fix.sh
Created August 15, 2021 05:01
Show Gist options
  • Save Kiwi/a1c9f90fd635e77fa8054d0e2a343b08 to your computer and use it in GitHub Desktop.
Save Kiwi/a1c9f90fd635e77fa8054d0e2a343b08 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