Created
July 26, 2022 19:37
-
-
Save 641i130/d7d275c4dae4118bc0312342587afc09 to your computer and use it in GitHub Desktop.
Fix the broken GPG keys on arch based operating systems. (This was written for arco linux, so I can't guarantee it'll work on anything else).
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
#!/bin/bash | |
# RUN THIS AS ROOT!!! | |
pacman -S archlinux-keyring arcolinux-keyring | |
rm -rf /var/lib/pacman/sync/ | |
rm -rf /etc/pacman.d/gnupg/ | |
pacman -Scc --noconfirm | |
pacman-key --init | |
pacman-key --populate archlinux | |
pacman-key --populate arcolinux | |
pacman-key --refresh-keys | |
pacman -Syyu --noconfirm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment