LXC + Ubuntu 18.04: “Unable to fetch GPG key from keyserver” when trying to create a new container

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:



> lxc-create -n test -t download
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
Error creating container test


Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?



Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.



Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.



So the question remains - any pointers in how to resolve the issue?







share|improve this question


























    up vote
    0
    down vote

    favorite












    I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:



    > lxc-create -n test -t download
    Setting up the GPG keyring
    ERROR: Unable to fetch GPG key from keyserver
    lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
    Error creating container test


    Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?



    Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.



    Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.



    So the question remains - any pointers in how to resolve the issue?







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:



      > lxc-create -n test -t download
      Setting up the GPG keyring
      ERROR: Unable to fetch GPG key from keyserver
      lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
      Error creating container test


      Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?



      Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.



      Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.



      So the question remains - any pointers in how to resolve the issue?







      share|improve this question














      I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error:



      > lxc-create -n test -t download
      Setting up the GPG keyring
      ERROR: Unable to fetch GPG key from keyserver
      lxc-create: test: lxccontainer.c: create_run_template: 1566 Failed to create container from template
      Error creating container test


      Everything seems to work fine if I run with --no-validate but that's not what I would like to do long term, any ideas?



      Btw. forgot to mention - I'm not behind any firewall or proxy that is blocking the access.



      Edit: @Simos - the 'kde' was my fault when i copied the console output. The container i was creating was named kde, but i changed the name when copying the output here to 'test' just missed one spot. Nonetheless i like lxc and i've setup multiple containers to do some stuff i wanted just always had to skip validation which i don't like.



      So the question remains - any pointers in how to resolve the issue?









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 15 at 5:06

























      asked May 12 at 22:36









      voytech

      12




      12




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          It is weird that it says




          lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
          create container from template




          It should not be saying kde there. That part should be empty.



          You are using LXC, while it is much more user-friendly to use LXD.
          Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24






          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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f1035504%2flxc-ubuntu-18-04-unable-to-fetch-gpg-key-from-keyserver-when-trying-to-crea%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            It is weird that it says




            lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
            create container from template




            It should not be saying kde there. That part should be empty.



            You are using LXC, while it is much more user-friendly to use LXD.
            Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24






            share|improve this answer
























              up vote
              0
              down vote













              It is weird that it says




              lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
              create container from template




              It should not be saying kde there. That part should be empty.



              You are using LXC, while it is much more user-friendly to use LXD.
              Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                It is weird that it says




                lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
                create container from template




                It should not be saying kde there. That part should be empty.



                You are using LXC, while it is much more user-friendly to use LXD.
                Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24






                share|improve this answer












                It is weird that it says




                lxc-create: kde: lxccontainer.c: create_run_template: 1566 Failed to
                create container from template




                It should not be saying kde there. That part should be empty.



                You are using LXC, while it is much more user-friendly to use LXD.
                Here are the differences, https://discuss.linuxcontainers.org/t/comparing-lxd-vs-lxc/24







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 13 at 19:48









                Simos

                1375




                1375






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035504%2flxc-ubuntu-18-04-unable-to-fetch-gpg-key-from-keyserver-when-trying-to-crea%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Which professions warranted travel in Medieval times?

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error