Hi @lots-0-logs and @aarem
==gpg: keyserver refresh failed: No dirmngr
==> ERROR: A specified local key could not be updated from a keyserver.
I am wondering that because of this error, it might be prudent to first check
pacman-key -V should give the output version. There may have been added some unofficial keys from a repository and hence a some things not found. Just like it says in the output.
I read on the Arch Wiki, that if dirmngr is run as root this problem could be resolved (see further on below).
Do the following by first removing your $HOME/.gnupg and /root/.gnupg directory (you may not even have a /root/.gnupg directory because it says that you do not have one) but for sure you will have a .gnupg directory in your /home directory. Move them somewhere safe for the time being rather than delete them. Can delete afterwards.
So according to your output, you have no /root/.gnupg directory. So you have to make one.
sudo mkdir /root/.gnupgor if you go instead
sudo gpg -k it will actually create a .gnupg file in your /root directory.
If you want to find out what is inside your new /.gnupg directory, you will have to do the following after you
cd into /root
And you will find that you have a **dirmngr.conf ** file inside there.
Then try and do as lots.0.logs suggested by
pacman-key --populate archlinux
If there is an error, you may need to run as root
dirmngr < /dev/null And according to the Arch Wiki, anytime you add unofficial keys , you have to run that command first.
Hope this helps!!!