No idea how something like that can even happen on it’s own.
Perhaps you added a custom repository to pacman?
anyway …
This here - the posts by @linux-aarhus - should do the trick.
You need to be online during this procedure.
Summary of the steps, in order:
- edit the file /etc/pacman.conf
sudo nano /etc/pacman.conf
find the line that says:
SigLevel = Required DatabaseOptional
and change that to:
SigLevel = Required DatabaseNever
mind the spelling! DatabaseNever
save the file
then - as he said in the next post:
Maybe I should have mentioned that I went through the whole #! bang - that is
remove the database files as root
(I have changed all the following commands to use sudo
)
- remove the database files
sudo rm -f /var/lib/pacman/sync/*
- remove pacman pgp folder
sudo rm -rf /etc/pacman.d/gnupg
- remove package cache
(perhaps you can skip this step, just this one step though, so you still have the package cache in case you need it)
sudo pacman -Scc
- init key database
sudo pacman-key --init
- populate database
sudo pacman-key --populate manjaro archlinux
- refresh pacman keys
sudo pacman-key --refresh
- now try updating:
sudo pacman-mirrors -f5
sudo pacman -Syyu