Blog

gpg: no writable public keyring found: eof

Tags: gpgkey generation

Published on: December 12, 2009 by George K.

gpg: no writable public keyring found: eof

Scenario:

gpg –gen-key was the command issued and after a few entropy delay [+++++++++++++++++++++++++++.+++++….+++++++++++++++++++++++++……………………+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.]

the command failed to return

gpg: no writable public keyring found: eof
Key generation failed: eof

Solution would be to execute rm -rf ~/.gnugpg as there were a few files in the server which was root owned.

If you face any error like “GPGME: Bad passphrase”, but you were never asked for a passphrase, probability that issue is with the memory. Just increase the memory limit and you should be fine. In ubuntu, it will be at /etc/security/limits.conf

Category : General, Troubleshooting

George K.

George K.

George started his career in web hosting and Linux technical support in the year 2004 and is with SupportSages since 2009. He has keen interest in server optimizations, custom security solutions, hacked server recovery, cyber forensic and high availability fail over system design and implementation. George loves long drives and is passionate about art and literature.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items