-
-
Save Kiwi/a1c9f90fd635e77fa8054d0e2a343b08 to your computer and use it in GitHub Desktop.
Fix keyring errors.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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