-- Leo's gemini proxy

-- Connecting to eluum.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Updating Arch Linux


I run arch linux (btw) on my desktop computer. The arch package manager is called pacman, which generally works pretty well but has a few rough edges when it comes to doing large system updates. The pacman command for updating all packages is


sudo pacman -Syu

This works fine for small, frequent updates, but I tend to neglect updating anything until I absolutely have to (usually when something breaks). When doing large, infrequent updates, something almost always prevents pacman from succeeding, and it's usually keychain related. When these issues occur you will see an error message about failing to verify packages, and usually a prompt asking if you want to delete corrupted packages.


For whatever reason, pacman does not sync the package keyring first, before attempting to update all other packages. You can force the correct order manually with


sudo pacman -Sy archlinux-keyring && sudo pacman -Su

Sometimes even this is not sufficient to resolve key issues, in which case the nuclear option of completely resetting all the keys may be necessary.


sudo pacman-key --init
sudo pacman-key --populate

So far these two tricks have been sufficient for resolving my problems with infrequent updates.

-- Response ended

-- Page fetched on Mon May 20 13:44:30 2024