archlinux - Cannot upgrade Arch Linux (pacman -Syu not working) - Stack Overflow

PHOTO EMBED

Fri Apr 26 2024 22:36:18 GMT+0000 (Coordinated Universal Time)

Saved by @j3d1n00b

The following is for ArchLinux however applies to other Linux distros too. To correct an invalid KEY one needs to do the following:

rm -fr /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux
 Save
say the key throwing an error is in Blackarch then is also needed to :

sudo pacman-key --populate blackarch
 Save
and finally

sudo pacman -Sy archlinux-keyring
sudo pacman-key --populate archlinux
sudo pacman-key --refresh-keys
content_copyCOPY

https://stackoverflow.com/questions/35251359/cannot-upgrade-arch-linux-pacman-syu-not-working