I am unable to generate a gpg key through the keyring program












6















Whenever I try to generate a gpg key through the system's GPG program, it asks for my name, email, and password then everything except for the GPG program's main window disappears.



Upon using gpg key-gen



gpg: can't open `/home/jesse/.gnupg/random_seed': Permission denied
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.
gpg: WARNING: some OpenPGP programs can't handle a DSA key with this digest size
+++++++++++++++..++++++++++...+++++++++++++++.+++++..+++++.+++++.++++++++++.+++++++++++++++..+++++.++++++++++++++++++++.++++++++++++++++++++++++++++++.+++++.+++++.+++++...+++++>+++++...+++++++++++++++++++++++++..+++++++++++++++>.+++++>+++++................................................................................................................................................................................................................................................................................>.+++++.................................................................................................................+++++

Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 300 more bytes)
gpg: no writable public keyring found: eof
Key generation failed: eof
gpg: note: random_seed file not updated









share|improve this question





























    6















    Whenever I try to generate a gpg key through the system's GPG program, it asks for my name, email, and password then everything except for the GPG program's main window disappears.



    Upon using gpg key-gen



    gpg: can't open `/home/jesse/.gnupg/random_seed': Permission denied
    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.
    gpg: WARNING: some OpenPGP programs can't handle a DSA key with this digest size
    +++++++++++++++..++++++++++...+++++++++++++++.+++++..+++++.+++++.++++++++++.+++++++++++++++..+++++.++++++++++++++++++++.++++++++++++++++++++++++++++++.+++++.+++++.+++++...+++++>+++++...+++++++++++++++++++++++++..+++++++++++++++>.+++++>+++++................................................................................................................................................................................................................................................................................>.+++++.................................................................................................................+++++

    Not enough random bytes available. Please do some other work to give
    the OS a chance to collect more entropy! (Need 300 more bytes)
    gpg: no writable public keyring found: eof
    Key generation failed: eof
    gpg: note: random_seed file not updated









    share|improve this question



























      6












      6








      6


      1






      Whenever I try to generate a gpg key through the system's GPG program, it asks for my name, email, and password then everything except for the GPG program's main window disappears.



      Upon using gpg key-gen



      gpg: can't open `/home/jesse/.gnupg/random_seed': Permission denied
      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.
      gpg: WARNING: some OpenPGP programs can't handle a DSA key with this digest size
      +++++++++++++++..++++++++++...+++++++++++++++.+++++..+++++.+++++.++++++++++.+++++++++++++++..+++++.++++++++++++++++++++.++++++++++++++++++++++++++++++.+++++.+++++.+++++...+++++>+++++...+++++++++++++++++++++++++..+++++++++++++++>.+++++>+++++................................................................................................................................................................................................................................................................................>.+++++.................................................................................................................+++++

      Not enough random bytes available. Please do some other work to give
      the OS a chance to collect more entropy! (Need 300 more bytes)
      gpg: no writable public keyring found: eof
      Key generation failed: eof
      gpg: note: random_seed file not updated









      share|improve this question
















      Whenever I try to generate a gpg key through the system's GPG program, it asks for my name, email, and password then everything except for the GPG program's main window disappears.



      Upon using gpg key-gen



      gpg: can't open `/home/jesse/.gnupg/random_seed': Permission denied
      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.
      gpg: WARNING: some OpenPGP programs can't handle a DSA key with this digest size
      +++++++++++++++..++++++++++...+++++++++++++++.+++++..+++++.+++++.++++++++++.+++++++++++++++..+++++.++++++++++++++++++++.++++++++++++++++++++++++++++++.+++++.+++++.+++++...+++++>+++++...+++++++++++++++++++++++++..+++++++++++++++>.+++++>+++++................................................................................................................................................................................................................................................................................>.+++++.................................................................................................................+++++

      Not enough random bytes available. Please do some other work to give
      the OS a chance to collect more entropy! (Need 300 more bytes)
      gpg: no writable public keyring found: eof
      Key generation failed: eof
      gpg: note: random_seed file not updated






      security email gnupg keyrings






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 14 '14 at 13:07







      KI4JGT

















      asked Jun 14 '14 at 12:43









      KI4JGTKI4JGT

      83741834




      83741834






















          2 Answers
          2






          active

          oldest

          votes


















          6














          For me, deleting the .gnugpg folder helped:



          sudo rm -rf ~/.gnugpg





          share|improve this answer
























          • That is what eventually worked for me. I must have forgotten to come back and put the answer here. Thank you for your response.

            – KI4JGT
            Mar 12 '16 at 19:49











          • This didn't worked for me on 17.10

            – Danny van der Knaap
            Nov 15 '17 at 8:18



















          0














          Permissions might be wrong after you ran gpg from root, making it impossible to modify one/some of the files as ordinary user "joey".



          find ~/.gnupg -type d -exec sudo chown joey:joey {} ; -exec chmod 700 {} ;
          find ~/.gnupg -type f -exec sudo chown joey:joey {} ; -exec chmod 600 {} ;


          In case case you don't want to delete any existing keys, this will be helpful.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f483196%2fi-am-unable-to-generate-a-gpg-key-through-the-keyring-program%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            For me, deleting the .gnugpg folder helped:



            sudo rm -rf ~/.gnugpg





            share|improve this answer
























            • That is what eventually worked for me. I must have forgotten to come back and put the answer here. Thank you for your response.

              – KI4JGT
              Mar 12 '16 at 19:49











            • This didn't worked for me on 17.10

              – Danny van der Knaap
              Nov 15 '17 at 8:18
















            6














            For me, deleting the .gnugpg folder helped:



            sudo rm -rf ~/.gnugpg





            share|improve this answer
























            • That is what eventually worked for me. I must have forgotten to come back and put the answer here. Thank you for your response.

              – KI4JGT
              Mar 12 '16 at 19:49











            • This didn't worked for me on 17.10

              – Danny van der Knaap
              Nov 15 '17 at 8:18














            6












            6








            6







            For me, deleting the .gnugpg folder helped:



            sudo rm -rf ~/.gnugpg





            share|improve this answer













            For me, deleting the .gnugpg folder helped:



            sudo rm -rf ~/.gnugpg






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 12 '16 at 7:19









            alkamidalkamid

            205138




            205138













            • That is what eventually worked for me. I must have forgotten to come back and put the answer here. Thank you for your response.

              – KI4JGT
              Mar 12 '16 at 19:49











            • This didn't worked for me on 17.10

              – Danny van der Knaap
              Nov 15 '17 at 8:18



















            • That is what eventually worked for me. I must have forgotten to come back and put the answer here. Thank you for your response.

              – KI4JGT
              Mar 12 '16 at 19:49











            • This didn't worked for me on 17.10

              – Danny van der Knaap
              Nov 15 '17 at 8:18

















            That is what eventually worked for me. I must have forgotten to come back and put the answer here. Thank you for your response.

            – KI4JGT
            Mar 12 '16 at 19:49





            That is what eventually worked for me. I must have forgotten to come back and put the answer here. Thank you for your response.

            – KI4JGT
            Mar 12 '16 at 19:49













            This didn't worked for me on 17.10

            – Danny van der Knaap
            Nov 15 '17 at 8:18





            This didn't worked for me on 17.10

            – Danny van der Knaap
            Nov 15 '17 at 8:18













            0














            Permissions might be wrong after you ran gpg from root, making it impossible to modify one/some of the files as ordinary user "joey".



            find ~/.gnupg -type d -exec sudo chown joey:joey {} ; -exec chmod 700 {} ;
            find ~/.gnupg -type f -exec sudo chown joey:joey {} ; -exec chmod 600 {} ;


            In case case you don't want to delete any existing keys, this will be helpful.






            share|improve this answer




























              0














              Permissions might be wrong after you ran gpg from root, making it impossible to modify one/some of the files as ordinary user "joey".



              find ~/.gnupg -type d -exec sudo chown joey:joey {} ; -exec chmod 700 {} ;
              find ~/.gnupg -type f -exec sudo chown joey:joey {} ; -exec chmod 600 {} ;


              In case case you don't want to delete any existing keys, this will be helpful.






              share|improve this answer


























                0












                0








                0







                Permissions might be wrong after you ran gpg from root, making it impossible to modify one/some of the files as ordinary user "joey".



                find ~/.gnupg -type d -exec sudo chown joey:joey {} ; -exec chmod 700 {} ;
                find ~/.gnupg -type f -exec sudo chown joey:joey {} ; -exec chmod 600 {} ;


                In case case you don't want to delete any existing keys, this will be helpful.






                share|improve this answer













                Permissions might be wrong after you ran gpg from root, making it impossible to modify one/some of the files as ordinary user "joey".



                find ~/.gnupg -type d -exec sudo chown joey:joey {} ; -exec chmod 700 {} ;
                find ~/.gnupg -type f -exec sudo chown joey:joey {} ; -exec chmod 600 {} ;


                In case case you don't want to delete any existing keys, this will be helpful.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 18 at 2:11









                Craig HicksCraig Hicks

                22017




                22017






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f483196%2fi-am-unable-to-generate-a-gpg-key-through-the-keyring-program%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕