Arch – Pacman: invalid or corrupt database

If a crash occurs while running Pacman, the database can be corrupted.

Simplest fix – remove the old files, and have pacman recreate at next run:

cd /var/lib/pacman/sync
rm -R *
pacman -Syu

 

PGP Signature fixes:
source

1
 
pacman-key --init
pacman-key --populate archlinux
pacman -Syy