gpg: no writable public keyring found: eof

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

Related posts:

  1. Kloxo restart fails giving entropy error
  2. 500 Internal Server due to low RLimitMem value
  3. CRITICAL : One more kernel exploit known to the public
  4. Magento Suhosin Values
  5. How to fix ftp connection time out error!

Comment Form

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later