Skipping “Configuring apt” during system installation on Ubuntu Server












1















I'm using packer to automate an installation of Ubuntu Server 16.04.1 LTS (Xenial Xerus).



During the installation, I noticed that the installer spends a lot of time hanging on this screen before eventually seeming to give up and move on:



Configuring apt. 81%. Retrieving file 1 of 18. <Cancel>.



It just hangs at "Retrieving file 1 of 18" for a few minutes and then moves to the next screen, without "file 2 of 18" or any progress beyond file 1 ever showing. I believe this is because I am doing an offline install with no internet access, and apt is waiting for some sort of timeout before moving on.



This doesn't cause the install to fail, but it does cause the installer to spend quite a bit of unnecessary time just sitting there, doing nothing. Is there a preseed option I can use to just skip this step entirely? That would certainly speed up my builds quite a bit.



I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production.



I've already tried the following options, and none of them seemed to have any effect on this screen:



d-i pkgsel/updatedb boolean false
d-i pkgsel/upgrade select none
d-i apt-setup/use_mirror boolean false









share|improve this question



























    1















    I'm using packer to automate an installation of Ubuntu Server 16.04.1 LTS (Xenial Xerus).



    During the installation, I noticed that the installer spends a lot of time hanging on this screen before eventually seeming to give up and move on:



    Configuring apt. 81%. Retrieving file 1 of 18. <Cancel>.



    It just hangs at "Retrieving file 1 of 18" for a few minutes and then moves to the next screen, without "file 2 of 18" or any progress beyond file 1 ever showing. I believe this is because I am doing an offline install with no internet access, and apt is waiting for some sort of timeout before moving on.



    This doesn't cause the install to fail, but it does cause the installer to spend quite a bit of unnecessary time just sitting there, doing nothing. Is there a preseed option I can use to just skip this step entirely? That would certainly speed up my builds quite a bit.



    I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production.



    I've already tried the following options, and none of them seemed to have any effect on this screen:



    d-i pkgsel/updatedb boolean false
    d-i pkgsel/upgrade select none
    d-i apt-setup/use_mirror boolean false









    share|improve this question

























      1












      1








      1








      I'm using packer to automate an installation of Ubuntu Server 16.04.1 LTS (Xenial Xerus).



      During the installation, I noticed that the installer spends a lot of time hanging on this screen before eventually seeming to give up and move on:



      Configuring apt. 81%. Retrieving file 1 of 18. <Cancel>.



      It just hangs at "Retrieving file 1 of 18" for a few minutes and then moves to the next screen, without "file 2 of 18" or any progress beyond file 1 ever showing. I believe this is because I am doing an offline install with no internet access, and apt is waiting for some sort of timeout before moving on.



      This doesn't cause the install to fail, but it does cause the installer to spend quite a bit of unnecessary time just sitting there, doing nothing. Is there a preseed option I can use to just skip this step entirely? That would certainly speed up my builds quite a bit.



      I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production.



      I've already tried the following options, and none of them seemed to have any effect on this screen:



      d-i pkgsel/updatedb boolean false
      d-i pkgsel/upgrade select none
      d-i apt-setup/use_mirror boolean false









      share|improve this question














      I'm using packer to automate an installation of Ubuntu Server 16.04.1 LTS (Xenial Xerus).



      During the installation, I noticed that the installer spends a lot of time hanging on this screen before eventually seeming to give up and move on:



      Configuring apt. 81%. Retrieving file 1 of 18. <Cancel>.



      It just hangs at "Retrieving file 1 of 18" for a few minutes and then moves to the next screen, without "file 2 of 18" or any progress beyond file 1 ever showing. I believe this is because I am doing an offline install with no internet access, and apt is waiting for some sort of timeout before moving on.



      This doesn't cause the install to fail, but it does cause the installer to spend quite a bit of unnecessary time just sitting there, doing nothing. Is there a preseed option I can use to just skip this step entirely? That would certainly speed up my builds quite a bit.



      I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production.



      I've already tried the following options, and none of them seemed to have any effect on this screen:



      d-i pkgsel/updatedb boolean false
      d-i pkgsel/upgrade select none
      d-i apt-setup/use_mirror boolean false






      server system-installation preseed






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 18 '16 at 16:02









      Ajedi32Ajedi32

      13519




      13519






















          1 Answer
          1






          active

          oldest

          votes


















          0














          you can skip configuring apt by simply pressing ctrl+R+del then the following step will skip by connecting to the server of that step.No any bug found while trying this step.well,being a linux expert i suggest you to use this method or another method that is ctrl+F1+esc.thats all






          share|improve this answer
























          • excellent rabin i have skipped that step without having any problem

            – rabin banset
            Apr 12 '17 at 9:54











          • From the question: "I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production."

            – Ajedi32
            Apr 12 '17 at 13:03











          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%2f813857%2fskipping-configuring-apt-during-system-installation-on-ubuntu-server%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          you can skip configuring apt by simply pressing ctrl+R+del then the following step will skip by connecting to the server of that step.No any bug found while trying this step.well,being a linux expert i suggest you to use this method or another method that is ctrl+F1+esc.thats all






          share|improve this answer
























          • excellent rabin i have skipped that step without having any problem

            – rabin banset
            Apr 12 '17 at 9:54











          • From the question: "I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production."

            – Ajedi32
            Apr 12 '17 at 13:03
















          0














          you can skip configuring apt by simply pressing ctrl+R+del then the following step will skip by connecting to the server of that step.No any bug found while trying this step.well,being a linux expert i suggest you to use this method or another method that is ctrl+F1+esc.thats all






          share|improve this answer
























          • excellent rabin i have skipped that step without having any problem

            – rabin banset
            Apr 12 '17 at 9:54











          • From the question: "I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production."

            – Ajedi32
            Apr 12 '17 at 13:03














          0












          0








          0







          you can skip configuring apt by simply pressing ctrl+R+del then the following step will skip by connecting to the server of that step.No any bug found while trying this step.well,being a linux expert i suggest you to use this method or another method that is ctrl+F1+esc.thats all






          share|improve this answer













          you can skip configuring apt by simply pressing ctrl+R+del then the following step will skip by connecting to the server of that step.No any bug found while trying this step.well,being a linux expert i suggest you to use this method or another method that is ctrl+F1+esc.thats all







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 12 '17 at 9:52









          rabin bansetrabin banset

          1




          1













          • excellent rabin i have skipped that step without having any problem

            – rabin banset
            Apr 12 '17 at 9:54











          • From the question: "I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production."

            – Ajedi32
            Apr 12 '17 at 13:03



















          • excellent rabin i have skipped that step without having any problem

            – rabin banset
            Apr 12 '17 at 9:54











          • From the question: "I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production."

            – Ajedi32
            Apr 12 '17 at 13:03

















          excellent rabin i have skipped that step without having any problem

          – rabin banset
          Apr 12 '17 at 9:54





          excellent rabin i have skipped that step without having any problem

          – rabin banset
          Apr 12 '17 at 9:54













          From the question: "I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production."

          – Ajedi32
          Apr 12 '17 at 13:03





          From the question: "I realize I can just hit cancel manually, but I'm doing an entirely automated install, so that isn't a viable option for production."

          – Ajedi32
          Apr 12 '17 at 13:03


















          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%2f813857%2fskipping-configuring-apt-during-system-installation-on-ubuntu-server%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á

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