Considering donating if you found my post helpful 😊
Problem:
I was trying to run this gpg command for nginx installation
$ gpg --dry-run --quiet --no-keyring --import --import-options import-show /usr/share/keyrings/ngin
x-archive-keyring.gpg
but was greeted with this error
gpg: Fatal: /home/gcdnprx/.gnupg: directory does not exist!
Solution:
The solution is pretty simple. You just need to create that missing directory and set a correct permission.
$ mkdir -p ~/.gnupg
$ chmod 700 ~/.gnupg
Considering donating if you found my post helpful 😊