I noticed that when doing:
sudo pacman-key --refresh-keys
I get infinite loop. I can wait 30 minutes or longer and it still goes over and over and over, spamming with lots of errors:
gpg: download error ,,cinelli@aur.archlinux.org'' through WKD: No data
gpg: error reading key: No data
gpg: download error ,,cinelli@aur.archlinux.org'' through WKD: No data
gpg: error reading k ,,cinelli.federico@gmail.com'' through WKD: No data
gpg: error reading key: No data
I found this topic with similar error:
https://www.reddit.com/r/archlinux/comments/sorhb1/how_long_does_a_pacmankey_refreshkeys_take/
So I deleted the database and the result was, that the command:
sudo pacman-key --refresh-keys
just stuck. I could wait for several minutes, without any output. So I deleted/renamed the database again and it went to the same old phase where it works infinitely.
I tried all of this:
sudo pacman -S archlinux-keyring manjaro-keyring
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh
sudo pacman -Syyu
I also did:
sudo rm -f /var/lib/pacman/sync/*
pamac update --force-refresh
No improvement.
I noticed that in /etc/pacman.d/gnupg/ it was pubring.gpg that was creating issue, mainly I got a temp file pubring.gpg.tmp and there it was gone to see it again and again and again.
I’m sure that the refresh keys command should finish in a timely manner, so something is wrong. So far, I had to force stop it, because waiting was not doing anything (infinite loop). By loop, I mean that I saw this summary about what was added/disabled/trusted many times in a row, and it was never ending. I also saw the same keys, emails all over with various configurations, so I figured it is repeating the same over and over.