Menu Close

gpg: Fatal: /home/user/.gnupg: directory does not exist!

Considering donating if you found my post helpful 😊

Buy Me a Coffee QR Code

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 😊

Buy Me a Coffee QR Code
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x