The original post: /r/ubuntu by /u/Biyeuy on 2024-11-14 20:42:18.
Reg. GnuPG
Reporting to Ubuntu cause 24.04 was released with ISO checksums a verification of which is not possible in clear way - ambiguous status of keyserver command option, heavy discrepancy.
Need to add keyserver to dirmngr.conf. GnuPG got preinstalled with Linux distribution. Latter one got installed to host few hours ago. GnuPG manual wants myself no more be using command line option to specify keyserver a public key of interest to be grabbed from. Instead myself should place server address to dirmngr.conf - so the manual.
~/.gnupg is however not existent on this system.
I learned then about the existence of addgnupghome tool. Due to this tool myself doesn’t hesitate to create mentioned config file on my own. I can only start the file blank and add the one needed setting. Unsure if this is the proper way. On another hand tool addgnupghome can’t accomplish its task as the .gnupg tree skeleton can’t be found in /etc/.gnupg.
Distro is WSL2 Ubuntu 24.04. I wonder if wsl Ubuntu 24.04 may deviate from Canonical 24.04 build at this point. May the lack of skeleton tree have its origin in building 24.04 for WSL, rather than in Canonical labs?
How to fix it?
apt-get install --reinstall gnupg didn’t help.
EDIT Identical problem occurs in an Arch-Linux-derivative distro: addgnupghome can find .gnupg skeleton tree. Hence, problem is neither WSL-, nor Ubuntu specific - .gnupg skeleton tree not found by addgnupghome tool.