Skip to content

Instantly share code, notes, and snippets.

@641i130
Created July 26, 2022 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 641i130/d7d275c4dae4118bc0312342587afc09 to your computer and use it in GitHub Desktop.
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).
#!/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