Cannot write to `-' (Broken pipe) when trying to install a repository signature key





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







2















I’m trying to install INetSim on Ubunutu 14.04 desktop. I edited the sources list with the pre compiled Debian Packages. Then when trying to install the signature key using wget I run across this issue here when I run the command:



sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


I get a broken pipe issue above.



What would be the reason for this? Do I have to add something after:



apt-key add


enter image description here










share|improve this question

























  • Try "sudo -i" instead of just "sudo".

    – E2Busy
    Sep 8 '15 at 22:10











  • @RACING121 Doesn't change anything

    – BDillan
    Sep 8 '15 at 22:12






  • 1





    Try with sudo apt-key add -

    – nKn
    Sep 8 '15 at 22:17











  • See my answer below. This is similar to the situation you had in this question/answer thread here; you are missing the - right after apt-key add.

    – JakeGould
    Sep 8 '15 at 22:44


















2















I’m trying to install INetSim on Ubunutu 14.04 desktop. I edited the sources list with the pre compiled Debian Packages. Then when trying to install the signature key using wget I run across this issue here when I run the command:



sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


I get a broken pipe issue above.



What would be the reason for this? Do I have to add something after:



apt-key add


enter image description here










share|improve this question

























  • Try "sudo -i" instead of just "sudo".

    – E2Busy
    Sep 8 '15 at 22:10











  • @RACING121 Doesn't change anything

    – BDillan
    Sep 8 '15 at 22:12






  • 1





    Try with sudo apt-key add -

    – nKn
    Sep 8 '15 at 22:17











  • See my answer below. This is similar to the situation you had in this question/answer thread here; you are missing the - right after apt-key add.

    – JakeGould
    Sep 8 '15 at 22:44














2












2








2








I’m trying to install INetSim on Ubunutu 14.04 desktop. I edited the sources list with the pre compiled Debian Packages. Then when trying to install the signature key using wget I run across this issue here when I run the command:



sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


I get a broken pipe issue above.



What would be the reason for this? Do I have to add something after:



apt-key add


enter image description here










share|improve this question
















I’m trying to install INetSim on Ubunutu 14.04 desktop. I edited the sources list with the pre compiled Debian Packages. Then when trying to install the signature key using wget I run across this issue here when I run the command:



sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


I get a broken pipe issue above.



What would be the reason for this? Do I have to add something after:



apt-key add


enter image description here







ubuntu wget






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 8 '15 at 22:40









JakeGould

32.9k10100142




32.9k10100142










asked Sep 8 '15 at 22:05









BDillanBDillan

1511310




1511310













  • Try "sudo -i" instead of just "sudo".

    – E2Busy
    Sep 8 '15 at 22:10











  • @RACING121 Doesn't change anything

    – BDillan
    Sep 8 '15 at 22:12






  • 1





    Try with sudo apt-key add -

    – nKn
    Sep 8 '15 at 22:17











  • See my answer below. This is similar to the situation you had in this question/answer thread here; you are missing the - right after apt-key add.

    – JakeGould
    Sep 8 '15 at 22:44



















  • Try "sudo -i" instead of just "sudo".

    – E2Busy
    Sep 8 '15 at 22:10











  • @RACING121 Doesn't change anything

    – BDillan
    Sep 8 '15 at 22:12






  • 1





    Try with sudo apt-key add -

    – nKn
    Sep 8 '15 at 22:17











  • See my answer below. This is similar to the situation you had in this question/answer thread here; you are missing the - right after apt-key add.

    – JakeGould
    Sep 8 '15 at 22:44

















Try "sudo -i" instead of just "sudo".

– E2Busy
Sep 8 '15 at 22:10





Try "sudo -i" instead of just "sudo".

– E2Busy
Sep 8 '15 at 22:10













@RACING121 Doesn't change anything

– BDillan
Sep 8 '15 at 22:12





@RACING121 Doesn't change anything

– BDillan
Sep 8 '15 at 22:12




1




1





Try with sudo apt-key add -

– nKn
Sep 8 '15 at 22:17





Try with sudo apt-key add -

– nKn
Sep 8 '15 at 22:17













See my answer below. This is similar to the situation you had in this question/answer thread here; you are missing the - right after apt-key add.

– JakeGould
Sep 8 '15 at 22:44





See my answer below. This is similar to the situation you had in this question/answer thread here; you are missing the - right after apt-key add.

– JakeGould
Sep 8 '15 at 22:44










3 Answers
3






active

oldest

votes


















2















What would be the reason for this? Do I have to add something after:



apt-key add



Yes. Exactly. Look at the official INetSim installation instructions and look at your command in the text example here:



sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


Note the - at the end right after apt-key add. Now look at your screenshot and the command you are using; text version below:



sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add


You are not including that - after apt-key add. So the output from sudo wget -O - which should be piped to apt-key add -. So yes, you definitely have a broken pipe happening—or not happening—right there.






share|improve this answer





















  • 1





    Dashes will be the end of me

    – BDillan
    Sep 9 '15 at 0:06











  • @BDillan Live and learn!

    – JakeGould
    Sep 9 '15 at 0:07



















1














You can easily add sudo before apt-key, just like this:



sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | sudo apt-key add -





share|improve this answer































    0














    I had the same problem with a docker image I was creating. I was using a slim base image which has only a minimal set of packages installed.



    To investigate the issue I retrieved the key-file first. After this I tried the import command which failed. But this time I got a decent error message, which stated that I need to install gnupg, gnupg2 and gnupg1 packages. After I installed these packages import is working succesfully.



    So I'd suggest that anyone facing this issue would first retrieve the key



    wget http://[server]/file.key


    and then do the import with



    apt-key add file.key


    If this still fails atleast you'll see the cause for failure.






    share|improve this answer
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      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%2fsuperuser.com%2fquestions%2f970187%2fcannot-write-to-broken-pipe-when-trying-to-install-a-repository-signature%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2















      What would be the reason for this? Do I have to add something after:



      apt-key add



      Yes. Exactly. Look at the official INetSim installation instructions and look at your command in the text example here:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


      Note the - at the end right after apt-key add. Now look at your screenshot and the command you are using; text version below:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add


      You are not including that - after apt-key add. So the output from sudo wget -O - which should be piped to apt-key add -. So yes, you definitely have a broken pipe happening—or not happening—right there.






      share|improve this answer





















      • 1





        Dashes will be the end of me

        – BDillan
        Sep 9 '15 at 0:06











      • @BDillan Live and learn!

        – JakeGould
        Sep 9 '15 at 0:07
















      2















      What would be the reason for this? Do I have to add something after:



      apt-key add



      Yes. Exactly. Look at the official INetSim installation instructions and look at your command in the text example here:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


      Note the - at the end right after apt-key add. Now look at your screenshot and the command you are using; text version below:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add


      You are not including that - after apt-key add. So the output from sudo wget -O - which should be piped to apt-key add -. So yes, you definitely have a broken pipe happening—or not happening—right there.






      share|improve this answer





















      • 1





        Dashes will be the end of me

        – BDillan
        Sep 9 '15 at 0:06











      • @BDillan Live and learn!

        – JakeGould
        Sep 9 '15 at 0:07














      2












      2








      2








      What would be the reason for this? Do I have to add something after:



      apt-key add



      Yes. Exactly. Look at the official INetSim installation instructions and look at your command in the text example here:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


      Note the - at the end right after apt-key add. Now look at your screenshot and the command you are using; text version below:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add


      You are not including that - after apt-key add. So the output from sudo wget -O - which should be piped to apt-key add -. So yes, you definitely have a broken pipe happening—or not happening—right there.






      share|improve this answer
















      What would be the reason for this? Do I have to add something after:



      apt-key add



      Yes. Exactly. Look at the official INetSim installation instructions and look at your command in the text example here:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add -


      Note the - at the end right after apt-key add. Now look at your screenshot and the command you are using; text version below:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | apt-key add


      You are not including that - after apt-key add. So the output from sudo wget -O - which should be piped to apt-key add -. So yes, you definitely have a broken pipe happening—or not happening—right there.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Sep 8 '15 at 22:48

























      answered Sep 8 '15 at 22:43









      JakeGouldJakeGould

      32.9k10100142




      32.9k10100142








      • 1





        Dashes will be the end of me

        – BDillan
        Sep 9 '15 at 0:06











      • @BDillan Live and learn!

        – JakeGould
        Sep 9 '15 at 0:07














      • 1





        Dashes will be the end of me

        – BDillan
        Sep 9 '15 at 0:06











      • @BDillan Live and learn!

        – JakeGould
        Sep 9 '15 at 0:07








      1




      1





      Dashes will be the end of me

      – BDillan
      Sep 9 '15 at 0:06





      Dashes will be the end of me

      – BDillan
      Sep 9 '15 at 0:06













      @BDillan Live and learn!

      – JakeGould
      Sep 9 '15 at 0:07





      @BDillan Live and learn!

      – JakeGould
      Sep 9 '15 at 0:07













      1














      You can easily add sudo before apt-key, just like this:



      sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | sudo apt-key add -





      share|improve this answer




























        1














        You can easily add sudo before apt-key, just like this:



        sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | sudo apt-key add -





        share|improve this answer


























          1












          1








          1







          You can easily add sudo before apt-key, just like this:



          sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | sudo apt-key add -





          share|improve this answer













          You can easily add sudo before apt-key, just like this:



          sudo wget -O - 'http://www.inetsim.org/inetsim.org-archive-signing-key.asc' | sudo apt-key add -






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 15 '17 at 4:47









          Moe FarMoe Far

          1113




          1113























              0














              I had the same problem with a docker image I was creating. I was using a slim base image which has only a minimal set of packages installed.



              To investigate the issue I retrieved the key-file first. After this I tried the import command which failed. But this time I got a decent error message, which stated that I need to install gnupg, gnupg2 and gnupg1 packages. After I installed these packages import is working succesfully.



              So I'd suggest that anyone facing this issue would first retrieve the key



              wget http://[server]/file.key


              and then do the import with



              apt-key add file.key


              If this still fails atleast you'll see the cause for failure.






              share|improve this answer




























                0














                I had the same problem with a docker image I was creating. I was using a slim base image which has only a minimal set of packages installed.



                To investigate the issue I retrieved the key-file first. After this I tried the import command which failed. But this time I got a decent error message, which stated that I need to install gnupg, gnupg2 and gnupg1 packages. After I installed these packages import is working succesfully.



                So I'd suggest that anyone facing this issue would first retrieve the key



                wget http://[server]/file.key


                and then do the import with



                apt-key add file.key


                If this still fails atleast you'll see the cause for failure.






                share|improve this answer


























                  0












                  0








                  0







                  I had the same problem with a docker image I was creating. I was using a slim base image which has only a minimal set of packages installed.



                  To investigate the issue I retrieved the key-file first. After this I tried the import command which failed. But this time I got a decent error message, which stated that I need to install gnupg, gnupg2 and gnupg1 packages. After I installed these packages import is working succesfully.



                  So I'd suggest that anyone facing this issue would first retrieve the key



                  wget http://[server]/file.key


                  and then do the import with



                  apt-key add file.key


                  If this still fails atleast you'll see the cause for failure.






                  share|improve this answer













                  I had the same problem with a docker image I was creating. I was using a slim base image which has only a minimal set of packages installed.



                  To investigate the issue I retrieved the key-file first. After this I tried the import command which failed. But this time I got a decent error message, which stated that I need to install gnupg, gnupg2 and gnupg1 packages. After I installed these packages import is working succesfully.



                  So I'd suggest that anyone facing this issue would first retrieve the key



                  wget http://[server]/file.key


                  and then do the import with



                  apt-key add file.key


                  If this still fails atleast you'll see the cause for failure.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 7 at 7:23









                  MattiMatti

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • 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%2fsuperuser.com%2fquestions%2f970187%2fcannot-write-to-broken-pipe-when-trying-to-install-a-repository-signature%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

                      Plaza Victoria

                      Brian Clough

                      Cáceres