How to fix the error: gpg: keyserver receive failed: No keyserver available?












3















I am always getting the below gpg error message. I have also tried adding a PPA from webupd8 but the result is same. How can I resolve this error?



user@work:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.VlEePwgr6J/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: keyserver receive failed: No keyserver available

user@work:~$ sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
[sudo] password for deda:
Executing: /tmp/apt-key-gpghome.Z1cpSvPrvA/gpg.1.sh -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: keyserver receive failed: No keyserver available









share|improve this question

























  • Are you behind a proxy or something?

    – muru
    Nov 27 '17 at 7:46











  • Add the output of sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 to the question, please.

    – muru
    Nov 27 '17 at 8:04











  • Did you change /usr/bin/gpg? Usually it doesn't start or require dirmngr, that's an indication that gpg2 is being used.

    – muru
    Nov 27 '17 at 8:17











  • I did not change anything after the install yesterday. I just installed my lubuntu last night and when I will install spotify there is an error like that

    – Deda
    Nov 27 '17 at 8:19











  • This is happening on Debian too, freshly installed gpg. Definitely broken out of the box.

    – Adambean
    Apr 22 '18 at 15:02
















3















I am always getting the below gpg error message. I have also tried adding a PPA from webupd8 but the result is same. How can I resolve this error?



user@work:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.VlEePwgr6J/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: keyserver receive failed: No keyserver available

user@work:~$ sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
[sudo] password for deda:
Executing: /tmp/apt-key-gpghome.Z1cpSvPrvA/gpg.1.sh -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: keyserver receive failed: No keyserver available









share|improve this question

























  • Are you behind a proxy or something?

    – muru
    Nov 27 '17 at 7:46











  • Add the output of sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 to the question, please.

    – muru
    Nov 27 '17 at 8:04











  • Did you change /usr/bin/gpg? Usually it doesn't start or require dirmngr, that's an indication that gpg2 is being used.

    – muru
    Nov 27 '17 at 8:17











  • I did not change anything after the install yesterday. I just installed my lubuntu last night and when I will install spotify there is an error like that

    – Deda
    Nov 27 '17 at 8:19











  • This is happening on Debian too, freshly installed gpg. Definitely broken out of the box.

    – Adambean
    Apr 22 '18 at 15:02














3












3








3


3






I am always getting the below gpg error message. I have also tried adding a PPA from webupd8 but the result is same. How can I resolve this error?



user@work:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.VlEePwgr6J/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: keyserver receive failed: No keyserver available

user@work:~$ sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
[sudo] password for deda:
Executing: /tmp/apt-key-gpghome.Z1cpSvPrvA/gpg.1.sh -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: keyserver receive failed: No keyserver available









share|improve this question
















I am always getting the below gpg error message. I have also tried adding a PPA from webupd8 but the result is same. How can I resolve this error?



user@work:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.VlEePwgr6J/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: keyserver receive failed: No keyserver available

user@work:~$ sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
[sudo] password for deda:
Executing: /tmp/apt-key-gpghome.Z1cpSvPrvA/gpg.1.sh -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: keyserver receive failed: No keyserver available






lubuntu gnupg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 4 mins ago









Kevin Bowen

14.4k155970




14.4k155970










asked Nov 27 '17 at 7:41









DedaDeda

1914




1914













  • Are you behind a proxy or something?

    – muru
    Nov 27 '17 at 7:46











  • Add the output of sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 to the question, please.

    – muru
    Nov 27 '17 at 8:04











  • Did you change /usr/bin/gpg? Usually it doesn't start or require dirmngr, that's an indication that gpg2 is being used.

    – muru
    Nov 27 '17 at 8:17











  • I did not change anything after the install yesterday. I just installed my lubuntu last night and when I will install spotify there is an error like that

    – Deda
    Nov 27 '17 at 8:19











  • This is happening on Debian too, freshly installed gpg. Definitely broken out of the box.

    – Adambean
    Apr 22 '18 at 15:02



















  • Are you behind a proxy or something?

    – muru
    Nov 27 '17 at 7:46











  • Add the output of sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 to the question, please.

    – muru
    Nov 27 '17 at 8:04











  • Did you change /usr/bin/gpg? Usually it doesn't start or require dirmngr, that's an indication that gpg2 is being used.

    – muru
    Nov 27 '17 at 8:17











  • I did not change anything after the install yesterday. I just installed my lubuntu last night and when I will install spotify there is an error like that

    – Deda
    Nov 27 '17 at 8:19











  • This is happening on Debian too, freshly installed gpg. Definitely broken out of the box.

    – Adambean
    Apr 22 '18 at 15:02

















Are you behind a proxy or something?

– muru
Nov 27 '17 at 7:46





Are you behind a proxy or something?

– muru
Nov 27 '17 at 7:46













Add the output of sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 to the question, please.

– muru
Nov 27 '17 at 8:04





Add the output of sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 to the question, please.

– muru
Nov 27 '17 at 8:04













Did you change /usr/bin/gpg? Usually it doesn't start or require dirmngr, that's an indication that gpg2 is being used.

– muru
Nov 27 '17 at 8:17





Did you change /usr/bin/gpg? Usually it doesn't start or require dirmngr, that's an indication that gpg2 is being used.

– muru
Nov 27 '17 at 8:17













I did not change anything after the install yesterday. I just installed my lubuntu last night and when I will install spotify there is an error like that

– Deda
Nov 27 '17 at 8:19





I did not change anything after the install yesterday. I just installed my lubuntu last night and when I will install spotify there is an error like that

– Deda
Nov 27 '17 at 8:19













This is happening on Debian too, freshly installed gpg. Definitely broken out of the box.

– Adambean
Apr 22 '18 at 15:02





This is happening on Debian too, freshly installed gpg. Definitely broken out of the box.

– Adambean
Apr 22 '18 at 15:02










2 Answers
2






active

oldest

votes


















0














I always wanted to have one command



alias apt-key-add='f(){ 
gpg
--keyserver hkp://keyserver.ubuntu.com
--recv-keys $1;
gpg --export ${1:-.} | sudo apt-key add -;
unset -f f; }; f'


check run



user@sid:~$ set -x
user@sid:~$ apt-key-add 06AED62430CB581C
+ f 06AED62430CB581C
+ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 06AED62430CB581C
gpg: key 06AED62430CB581C: 1 signature not checked due to a missing key
gpg: key 06AED62430CB581C: public key "Debian Ports Archive Automatic Signing Key (2018) <ftpmaster@ports-master.debian.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
+ sudo apt-key add -
+ gpg --export 06AED62430CB581C
OK
+ unset -f f
user@sid:~$





share|improve this answer



















  • 1





    How does this answer the question?

    – Gaurav Gandhi
    Dec 23 '18 at 12:32



















0














Wow that worked for me, exactly what did that do?






share|improve this answer








New contributor




Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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%2f980623%2fhow-to-fix-the-error-gpg-keyserver-receive-failed-no-keyserver-available%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









    0














    I always wanted to have one command



    alias apt-key-add='f(){ 
    gpg
    --keyserver hkp://keyserver.ubuntu.com
    --recv-keys $1;
    gpg --export ${1:-.} | sudo apt-key add -;
    unset -f f; }; f'


    check run



    user@sid:~$ set -x
    user@sid:~$ apt-key-add 06AED62430CB581C
    + f 06AED62430CB581C
    + gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 06AED62430CB581C
    gpg: key 06AED62430CB581C: 1 signature not checked due to a missing key
    gpg: key 06AED62430CB581C: public key "Debian Ports Archive Automatic Signing Key (2018) <ftpmaster@ports-master.debian.org>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg: imported: 1
    + sudo apt-key add -
    + gpg --export 06AED62430CB581C
    OK
    + unset -f f
    user@sid:~$





    share|improve this answer



















    • 1





      How does this answer the question?

      – Gaurav Gandhi
      Dec 23 '18 at 12:32
















    0














    I always wanted to have one command



    alias apt-key-add='f(){ 
    gpg
    --keyserver hkp://keyserver.ubuntu.com
    --recv-keys $1;
    gpg --export ${1:-.} | sudo apt-key add -;
    unset -f f; }; f'


    check run



    user@sid:~$ set -x
    user@sid:~$ apt-key-add 06AED62430CB581C
    + f 06AED62430CB581C
    + gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 06AED62430CB581C
    gpg: key 06AED62430CB581C: 1 signature not checked due to a missing key
    gpg: key 06AED62430CB581C: public key "Debian Ports Archive Automatic Signing Key (2018) <ftpmaster@ports-master.debian.org>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg: imported: 1
    + sudo apt-key add -
    + gpg --export 06AED62430CB581C
    OK
    + unset -f f
    user@sid:~$





    share|improve this answer



















    • 1





      How does this answer the question?

      – Gaurav Gandhi
      Dec 23 '18 at 12:32














    0












    0








    0







    I always wanted to have one command



    alias apt-key-add='f(){ 
    gpg
    --keyserver hkp://keyserver.ubuntu.com
    --recv-keys $1;
    gpg --export ${1:-.} | sudo apt-key add -;
    unset -f f; }; f'


    check run



    user@sid:~$ set -x
    user@sid:~$ apt-key-add 06AED62430CB581C
    + f 06AED62430CB581C
    + gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 06AED62430CB581C
    gpg: key 06AED62430CB581C: 1 signature not checked due to a missing key
    gpg: key 06AED62430CB581C: public key "Debian Ports Archive Automatic Signing Key (2018) <ftpmaster@ports-master.debian.org>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg: imported: 1
    + sudo apt-key add -
    + gpg --export 06AED62430CB581C
    OK
    + unset -f f
    user@sid:~$





    share|improve this answer













    I always wanted to have one command



    alias apt-key-add='f(){ 
    gpg
    --keyserver hkp://keyserver.ubuntu.com
    --recv-keys $1;
    gpg --export ${1:-.} | sudo apt-key add -;
    unset -f f; }; f'


    check run



    user@sid:~$ set -x
    user@sid:~$ apt-key-add 06AED62430CB581C
    + f 06AED62430CB581C
    + gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 06AED62430CB581C
    gpg: key 06AED62430CB581C: 1 signature not checked due to a missing key
    gpg: key 06AED62430CB581C: public key "Debian Ports Archive Automatic Signing Key (2018) <ftpmaster@ports-master.debian.org>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg: imported: 1
    + sudo apt-key add -
    + gpg --export 06AED62430CB581C
    OK
    + unset -f f
    user@sid:~$






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 23 '18 at 8:07









    marjan cinobermarjan cinober

    1




    1








    • 1





      How does this answer the question?

      – Gaurav Gandhi
      Dec 23 '18 at 12:32














    • 1





      How does this answer the question?

      – Gaurav Gandhi
      Dec 23 '18 at 12:32








    1




    1





    How does this answer the question?

    – Gaurav Gandhi
    Dec 23 '18 at 12:32





    How does this answer the question?

    – Gaurav Gandhi
    Dec 23 '18 at 12:32













    0














    Wow that worked for me, exactly what did that do?






    share|improve this answer








    New contributor




    Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      Wow that worked for me, exactly what did that do?






      share|improve this answer








      New contributor




      Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        Wow that worked for me, exactly what did that do?






        share|improve this answer








        New contributor




        Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Wow that worked for me, exactly what did that do?







        share|improve this answer








        New contributor




        Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 34 mins ago









        FredFred

        1




        1




        New contributor




        Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Fred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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%2f980623%2fhow-to-fix-the-error-gpg-keyserver-receive-failed-no-keyserver-available%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

            GameSpot

            日野市

            Tu-95轟炸機