Key installs with apt-add-repository but not with apt-key












0















I am running the unit tests of TensorFlow from the Docker image. On my macOS machine, which is behind a corporate firewall and has Docker installed, I pull the repo and copy the last command of the contributing guidelines:



git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
tensorflow/tools/ci_build/ci_build.sh CPU bazel test //tensorflow/...


The last lines of the log show the GPG error:



gpg: keyring `/tmp/tmpcoeice_r/secring.gpg' created
gpg: keyring `/tmp/tmpcoeice_r/pubring.gpg' created
gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpcoeice_r/trustdb.gpg: trustdb created
gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Removing intermediate container e5e667c4b14b
---> 845caebe139f
Step 6/13 : RUN /install/install_deb_packages.sh
---> Running in 7c95fb23485e
Executing: /tmp/tmp.VzC8znCvJ4/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv
084ECFC5828AB726
gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
gpgkeys: HTTP fetch error 7: couldn't connect: eof
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found
The command '/bin/sh -c /install/install_deb_packages.sh' returned a non-zero code: 2
ERROR: docker build failed. Dockerfile is at ~/code/tensorflow/tensorflow/tools/ci_build/Dockerfile.cpu


The relevant lines of the Dockerfile are:



RUN add-apt-repository -y ppa:openjdk-r/ppa && 
add-apt-repository -y ppa:george-edison55/cmake-3.x
RUN /install/install_deb_packages.sh


and the relevant line of install/install_deb_package.sh is:



apt-key adv --keyserver keyserver.ubuntu.com --recv 084ECFC5828AB726


But notice how, in the log from Docker, apt-key is trying to download the same key 828AB726 that add-apt-repository had already installed! I tried this hack of changing the port to 80, which fails and suggests that the problem is not the corporate firewall.



If I run the same commands on an Azure virtual machine with the image Docker for Ubuntu Server, apt-key recognises that it is the same key and the workflow continues:



gpg: keyring `/tmp/tmp8vlxki47/secring.gpg' created
gpg: keyring `/tmp/tmp8vlxki47/pubring.gpg' created
gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp8vlxki47/trustdb.gpg: trustdb created
gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Removing intermediate container 47d12bfe27a8
---> 5b446b135f94
Step 6/13 : RUN /install/install_deb_packages.sh
---> Running in c6036006b348
Executing: /tmp/tmp.0hYm7DaDtn/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv
084ECFC5828AB726
gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
gpg: key 828AB726: "Launchpad George Edison's PPA" not changed
gpg: Total number processed: 1
gpg: unchanged: 1


How can I fix this?










share|improve this question



























    0















    I am running the unit tests of TensorFlow from the Docker image. On my macOS machine, which is behind a corporate firewall and has Docker installed, I pull the repo and copy the last command of the contributing guidelines:



    git clone https://github.com/tensorflow/tensorflow.git
    cd tensorflow
    tensorflow/tools/ci_build/ci_build.sh CPU bazel test //tensorflow/...


    The last lines of the log show the GPG error:



    gpg: keyring `/tmp/tmpcoeice_r/secring.gpg' created
    gpg: keyring `/tmp/tmpcoeice_r/pubring.gpg' created
    gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
    gpg: /tmp/tmpcoeice_r/trustdb.gpg: trustdb created
    gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
    OK
    Removing intermediate container e5e667c4b14b
    ---> 845caebe139f
    Step 6/13 : RUN /install/install_deb_packages.sh
    ---> Running in 7c95fb23485e
    Executing: /tmp/tmp.VzC8znCvJ4/gpg.1.sh --keyserver
    keyserver.ubuntu.com
    --recv
    084ECFC5828AB726
    gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
    gpgkeys: HTTP fetch error 7: couldn't connect: eof
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0
    gpg: keyserver communications error: keyserver unreachable
    gpg: keyserver communications error: public key not found
    gpg: keyserver receive failed: public key not found
    The command '/bin/sh -c /install/install_deb_packages.sh' returned a non-zero code: 2
    ERROR: docker build failed. Dockerfile is at ~/code/tensorflow/tensorflow/tools/ci_build/Dockerfile.cpu


    The relevant lines of the Dockerfile are:



    RUN add-apt-repository -y ppa:openjdk-r/ppa && 
    add-apt-repository -y ppa:george-edison55/cmake-3.x
    RUN /install/install_deb_packages.sh


    and the relevant line of install/install_deb_package.sh is:



    apt-key adv --keyserver keyserver.ubuntu.com --recv 084ECFC5828AB726


    But notice how, in the log from Docker, apt-key is trying to download the same key 828AB726 that add-apt-repository had already installed! I tried this hack of changing the port to 80, which fails and suggests that the problem is not the corporate firewall.



    If I run the same commands on an Azure virtual machine with the image Docker for Ubuntu Server, apt-key recognises that it is the same key and the workflow continues:



    gpg: keyring `/tmp/tmp8vlxki47/secring.gpg' created
    gpg: keyring `/tmp/tmp8vlxki47/pubring.gpg' created
    gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
    gpg: /tmp/tmp8vlxki47/trustdb.gpg: trustdb created
    gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
    OK
    Removing intermediate container 47d12bfe27a8
    ---> 5b446b135f94
    Step 6/13 : RUN /install/install_deb_packages.sh
    ---> Running in c6036006b348
    Executing: /tmp/tmp.0hYm7DaDtn/gpg.1.sh --keyserver
    keyserver.ubuntu.com
    --recv
    084ECFC5828AB726
    gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
    gpg: key 828AB726: "Launchpad George Edison's PPA" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1


    How can I fix this?










    share|improve this question

























      0












      0








      0








      I am running the unit tests of TensorFlow from the Docker image. On my macOS machine, which is behind a corporate firewall and has Docker installed, I pull the repo and copy the last command of the contributing guidelines:



      git clone https://github.com/tensorflow/tensorflow.git
      cd tensorflow
      tensorflow/tools/ci_build/ci_build.sh CPU bazel test //tensorflow/...


      The last lines of the log show the GPG error:



      gpg: keyring `/tmp/tmpcoeice_r/secring.gpg' created
      gpg: keyring `/tmp/tmpcoeice_r/pubring.gpg' created
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpg: /tmp/tmpcoeice_r/trustdb.gpg: trustdb created
      gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      OK
      Removing intermediate container e5e667c4b14b
      ---> 845caebe139f
      Step 6/13 : RUN /install/install_deb_packages.sh
      ---> Running in 7c95fb23485e
      Executing: /tmp/tmp.VzC8znCvJ4/gpg.1.sh --keyserver
      keyserver.ubuntu.com
      --recv
      084ECFC5828AB726
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpgkeys: HTTP fetch error 7: couldn't connect: eof
      gpg: no valid OpenPGP data found.
      gpg: Total number processed: 0
      gpg: keyserver communications error: keyserver unreachable
      gpg: keyserver communications error: public key not found
      gpg: keyserver receive failed: public key not found
      The command '/bin/sh -c /install/install_deb_packages.sh' returned a non-zero code: 2
      ERROR: docker build failed. Dockerfile is at ~/code/tensorflow/tensorflow/tools/ci_build/Dockerfile.cpu


      The relevant lines of the Dockerfile are:



      RUN add-apt-repository -y ppa:openjdk-r/ppa && 
      add-apt-repository -y ppa:george-edison55/cmake-3.x
      RUN /install/install_deb_packages.sh


      and the relevant line of install/install_deb_package.sh is:



      apt-key adv --keyserver keyserver.ubuntu.com --recv 084ECFC5828AB726


      But notice how, in the log from Docker, apt-key is trying to download the same key 828AB726 that add-apt-repository had already installed! I tried this hack of changing the port to 80, which fails and suggests that the problem is not the corporate firewall.



      If I run the same commands on an Azure virtual machine with the image Docker for Ubuntu Server, apt-key recognises that it is the same key and the workflow continues:



      gpg: keyring `/tmp/tmp8vlxki47/secring.gpg' created
      gpg: keyring `/tmp/tmp8vlxki47/pubring.gpg' created
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpg: /tmp/tmp8vlxki47/trustdb.gpg: trustdb created
      gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      OK
      Removing intermediate container 47d12bfe27a8
      ---> 5b446b135f94
      Step 6/13 : RUN /install/install_deb_packages.sh
      ---> Running in c6036006b348
      Executing: /tmp/tmp.0hYm7DaDtn/gpg.1.sh --keyserver
      keyserver.ubuntu.com
      --recv
      084ECFC5828AB726
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpg: key 828AB726: "Launchpad George Edison's PPA" not changed
      gpg: Total number processed: 1
      gpg: unchanged: 1


      How can I fix this?










      share|improve this question














      I am running the unit tests of TensorFlow from the Docker image. On my macOS machine, which is behind a corporate firewall and has Docker installed, I pull the repo and copy the last command of the contributing guidelines:



      git clone https://github.com/tensorflow/tensorflow.git
      cd tensorflow
      tensorflow/tools/ci_build/ci_build.sh CPU bazel test //tensorflow/...


      The last lines of the log show the GPG error:



      gpg: keyring `/tmp/tmpcoeice_r/secring.gpg' created
      gpg: keyring `/tmp/tmpcoeice_r/pubring.gpg' created
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpg: /tmp/tmpcoeice_r/trustdb.gpg: trustdb created
      gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      OK
      Removing intermediate container e5e667c4b14b
      ---> 845caebe139f
      Step 6/13 : RUN /install/install_deb_packages.sh
      ---> Running in 7c95fb23485e
      Executing: /tmp/tmp.VzC8znCvJ4/gpg.1.sh --keyserver
      keyserver.ubuntu.com
      --recv
      084ECFC5828AB726
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpgkeys: HTTP fetch error 7: couldn't connect: eof
      gpg: no valid OpenPGP data found.
      gpg: Total number processed: 0
      gpg: keyserver communications error: keyserver unreachable
      gpg: keyserver communications error: public key not found
      gpg: keyserver receive failed: public key not found
      The command '/bin/sh -c /install/install_deb_packages.sh' returned a non-zero code: 2
      ERROR: docker build failed. Dockerfile is at ~/code/tensorflow/tensorflow/tools/ci_build/Dockerfile.cpu


      The relevant lines of the Dockerfile are:



      RUN add-apt-repository -y ppa:openjdk-r/ppa && 
      add-apt-repository -y ppa:george-edison55/cmake-3.x
      RUN /install/install_deb_packages.sh


      and the relevant line of install/install_deb_package.sh is:



      apt-key adv --keyserver keyserver.ubuntu.com --recv 084ECFC5828AB726


      But notice how, in the log from Docker, apt-key is trying to download the same key 828AB726 that add-apt-repository had already installed! I tried this hack of changing the port to 80, which fails and suggests that the problem is not the corporate firewall.



      If I run the same commands on an Azure virtual machine with the image Docker for Ubuntu Server, apt-key recognises that it is the same key and the workflow continues:



      gpg: keyring `/tmp/tmp8vlxki47/secring.gpg' created
      gpg: keyring `/tmp/tmp8vlxki47/pubring.gpg' created
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpg: /tmp/tmp8vlxki47/trustdb.gpg: trustdb created
      gpg: key 828AB726: public key "Launchpad George Edison's PPA" imported
      gpg: Total number processed: 1
      gpg: imported: 1 (RSA: 1)
      OK
      Removing intermediate container 47d12bfe27a8
      ---> 5b446b135f94
      Step 6/13 : RUN /install/install_deb_packages.sh
      ---> Running in c6036006b348
      Executing: /tmp/tmp.0hYm7DaDtn/gpg.1.sh --keyserver
      keyserver.ubuntu.com
      --recv
      084ECFC5828AB726
      gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
      gpg: key 828AB726: "Launchpad George Edison's PPA" not changed
      gpg: Total number processed: 1
      gpg: unchanged: 1


      How can I fix this?







      apt docker






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 16 at 12:04









      mmorinmmorin

      1747




      1747






















          0






          active

          oldest

          votes











          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%2f1110246%2fkey-installs-with-apt-add-repository-but-not-with-apt-key%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1110246%2fkey-installs-with-apt-add-repository-but-not-with-apt-key%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

          Mouse cursor on multiple screens with different PPI

          Agildo Ribeiro

          Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”