Friday, January 13, 2006

gpg: keyblock resource `/home/user': file open error

gpg: can add keyblock file `/home/REPLACE_WITH_YOUR_USER/.gnupg/pubring.gpg
Key generation failed: file create error
gpg: can't create `/home/REPLACE_WITH_YOUR_USER/.gnupg/random_seed': No such file or directory

This problem occurs because the .gnupg directory isn't created by the time you generate your keys.
So you will have to create the directory by hand.

$ mkdir .gnugp
$ gpg --gen-key
[salt@mimir ~]$ ls .gnupg
pubring.gpg pubring.gpg~ random_seed secring.gpg trustdb.gpg

Eh, voila, no rocket sience behind that gpg problem.
However, this is a very common mistake amongst experienced Unix users. We tend to spend 3 or or more
days testing than spend 5 minutes with the manual. Maybe that's why we become experts on the systems
eventually. Trial and error learning by doing.

ALX


Technorati Tags: , , , , ,