Created
October 2, 2025 03:28
-
-
Save IgorBVieira/ea6916254ee5a650118fa1a86e829a12 to your computer and use it in GitHub Desktop.
Correção para PGP no archcraft
This file contains hidden or 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 | |
| echo "🔐 Inicializando e populando o keyring..." | |
| sudo pacman-key --init | |
| sudo pacman-key --populate archlinux | |
| echo "🌐 Configurando servidor de chaves alternativo..." | |
| echo "keyserver hkps://keyserver.ubuntu.com" | sudo tee -a /etc/pacman.d/gnupg/gpg.conf | |
| echo "🔄 Atualizando chaves..." | |
| sudo pacman-key --refresh-keys | |
| echo "📦 Atualizando pacotes de chave e GnuPG..." | |
| sudo pacman -Sy gnupg archlinux-keyring | |
| echo "🧹 Limpando cache de pacotes corrompidos..." | |
| sudo pacman -Sc --noconfirm | |
| echo "🚀 Atualizando sistema..." | |
| sudo pacman -Syu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment