GPG fails on first run

Stephen Samuel samuel at
Mon Jun 23 00:27:22 CEST 2003

If you create a new user -- or simply (re)move your .gnupg
directory, your next command will fail.

Most notably, a newbie user doing a
   gpg  --gen-key

Will go thru the whole key creation process which then craps
out at the last second.

It seems that just about any command that looks into the .gnupg
directory (and then craps out) manages to get far enough into
the creation of the .gnupg directory so that the next command will

for example:

$ rm -rf .gnupg ; gpg --list-keys ; echo _______**________; gpg --list-keys
gpg: /home/grey/.gnupg: directory created
gpg: new configuration file `/home/grey/.gnupg/gpg.conf' created
gpg: keyblock resource `/home/grey/.gnupg/pubring.gpg': file open error
gpg: keyring `/home/grey/.gnupg/pubring.gpg' created

Stephen Samuel +1(604)876-0426                samuel at
    Powerful committed communication. Transformation touching
        the jewel within each person and bring it to life.

More information about the Gnupg-devel mailing list