Debian - disabling use mirror on preseed.cfg

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











up vote
3
down vote

favorite
1












I have created a preseed automated installation on my Debian jessie 8, but after installing the base packages, it returns error message error it can not use the




mirror package, please enter hostname another mirror...




But if I select the option to ignore it continues, is there any way to do this automatically via a preseed file?



Thanks



Update:
The solution




  • comment all lines referring to apt-setup and add this line



    d-i apt-setup/use_mirror boolean false



  • Obs: Don't remove lines referring to mirror...



Example block mirror

d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i apt-setup/use_mirror boolean false









share|improve this question



























    up vote
    3
    down vote

    favorite
    1












    I have created a preseed automated installation on my Debian jessie 8, but after installing the base packages, it returns error message error it can not use the




    mirror package, please enter hostname another mirror...




    But if I select the option to ignore it continues, is there any way to do this automatically via a preseed file?



    Thanks



    Update:
    The solution




    • comment all lines referring to apt-setup and add this line



      d-i apt-setup/use_mirror boolean false



    • Obs: Don't remove lines referring to mirror...



    Example block mirror

    d-i mirror/country string manual
    d-i mirror/http/hostname string http.us.debian.org
    d-i mirror/http/directory string /debian
    d-i mirror/http/proxy string
    d-i apt-setup/use_mirror boolean false









    share|improve this question

























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I have created a preseed automated installation on my Debian jessie 8, but after installing the base packages, it returns error message error it can not use the




      mirror package, please enter hostname another mirror...




      But if I select the option to ignore it continues, is there any way to do this automatically via a preseed file?



      Thanks



      Update:
      The solution




      • comment all lines referring to apt-setup and add this line



        d-i apt-setup/use_mirror boolean false



      • Obs: Don't remove lines referring to mirror...



      Example block mirror

      d-i mirror/country string manual
      d-i mirror/http/hostname string http.us.debian.org
      d-i mirror/http/directory string /debian
      d-i mirror/http/proxy string
      d-i apt-setup/use_mirror boolean false









      share|improve this question















      I have created a preseed automated installation on my Debian jessie 8, but after installing the base packages, it returns error message error it can not use the




      mirror package, please enter hostname another mirror...




      But if I select the option to ignore it continues, is there any way to do this automatically via a preseed file?



      Thanks



      Update:
      The solution




      • comment all lines referring to apt-setup and add this line



        d-i apt-setup/use_mirror boolean false



      • Obs: Don't remove lines referring to mirror...



      Example block mirror

      d-i mirror/country string manual
      d-i mirror/http/hostname string http.us.debian.org
      d-i mirror/http/directory string /debian
      d-i mirror/http/proxy string
      d-i apt-setup/use_mirror boolean false






      debian debian-installer






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 18 '15 at 21:02









      Thomas Dickey

      50.3k587157




      50.3k587157










      asked Jul 16 '15 at 2:03









      Marcos Carraro

      164




      164




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote













          Just a heads-up that all of the above suggestions do not work for any current Debian or Ubuntu preseeds. You will always be prompted for a mirror, unless you statically define one with something like the following:



          d-i mirror/country string manual
          d-i mirror/http/hostname string archive.ubuntu.com
          d-i mirror/http/directory string /ubuntu/
          d-i mirror/http/proxy string


          There is no combination of other options that will bypass the mirror dialog without choosing a mirror. I've tried hundreds of combinations without luck.



          You either choose a mirror and define it statically, or you will be prompted.






          share|improve this answer



























            up vote
            1
            down vote













            Try putting this in the preseed.cfg:



            d-i apt-setup/no_mirror boolean true






            share|improve this answer




















            • my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist,
              – Marcos Carraro
              Jul 16 '15 at 14:55










            • i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone...
              – Marcos Carraro
              Jul 16 '15 at 15:02

















            up vote
            0
            down vote













            To disable mirrors, the only lines considering mirrors should be:



            d-i apt-setup/use_mirror boolean false


            And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use:



            d-i apt-setup/services-select multiselect


            (without the default security, updates)



            Of course you should use a DVD or CD for installation then. To prevent being bothered with dialogue to scan other DVDs, add:



            d-i apt-setup/cdrom/set-first boolean false


            This should do the trick.






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              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: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2funix.stackexchange.com%2fquestions%2f216348%2fdebian-disabling-use-mirror-on-preseed-cfg%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              Just a heads-up that all of the above suggestions do not work for any current Debian or Ubuntu preseeds. You will always be prompted for a mirror, unless you statically define one with something like the following:



              d-i mirror/country string manual
              d-i mirror/http/hostname string archive.ubuntu.com
              d-i mirror/http/directory string /ubuntu/
              d-i mirror/http/proxy string


              There is no combination of other options that will bypass the mirror dialog without choosing a mirror. I've tried hundreds of combinations without luck.



              You either choose a mirror and define it statically, or you will be prompted.






              share|improve this answer
























                up vote
                2
                down vote













                Just a heads-up that all of the above suggestions do not work for any current Debian or Ubuntu preseeds. You will always be prompted for a mirror, unless you statically define one with something like the following:



                d-i mirror/country string manual
                d-i mirror/http/hostname string archive.ubuntu.com
                d-i mirror/http/directory string /ubuntu/
                d-i mirror/http/proxy string


                There is no combination of other options that will bypass the mirror dialog without choosing a mirror. I've tried hundreds of combinations without luck.



                You either choose a mirror and define it statically, or you will be prompted.






                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Just a heads-up that all of the above suggestions do not work for any current Debian or Ubuntu preseeds. You will always be prompted for a mirror, unless you statically define one with something like the following:



                  d-i mirror/country string manual
                  d-i mirror/http/hostname string archive.ubuntu.com
                  d-i mirror/http/directory string /ubuntu/
                  d-i mirror/http/proxy string


                  There is no combination of other options that will bypass the mirror dialog without choosing a mirror. I've tried hundreds of combinations without luck.



                  You either choose a mirror and define it statically, or you will be prompted.






                  share|improve this answer












                  Just a heads-up that all of the above suggestions do not work for any current Debian or Ubuntu preseeds. You will always be prompted for a mirror, unless you statically define one with something like the following:



                  d-i mirror/country string manual
                  d-i mirror/http/hostname string archive.ubuntu.com
                  d-i mirror/http/directory string /ubuntu/
                  d-i mirror/http/proxy string


                  There is no combination of other options that will bypass the mirror dialog without choosing a mirror. I've tried hundreds of combinations without luck.



                  You either choose a mirror and define it statically, or you will be prompted.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 25 '17 at 18:45









                  user3565738

                  212




                  212






















                      up vote
                      1
                      down vote













                      Try putting this in the preseed.cfg:



                      d-i apt-setup/no_mirror boolean true






                      share|improve this answer




















                      • my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist,
                        – Marcos Carraro
                        Jul 16 '15 at 14:55










                      • i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone...
                        – Marcos Carraro
                        Jul 16 '15 at 15:02














                      up vote
                      1
                      down vote













                      Try putting this in the preseed.cfg:



                      d-i apt-setup/no_mirror boolean true






                      share|improve this answer




















                      • my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist,
                        – Marcos Carraro
                        Jul 16 '15 at 14:55










                      • i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone...
                        – Marcos Carraro
                        Jul 16 '15 at 15:02












                      up vote
                      1
                      down vote










                      up vote
                      1
                      down vote









                      Try putting this in the preseed.cfg:



                      d-i apt-setup/no_mirror boolean true






                      share|improve this answer












                      Try putting this in the preseed.cfg:



                      d-i apt-setup/no_mirror boolean true







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jul 16 '15 at 6:39









                      neuron

                      1,605517




                      1,605517











                      • my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist,
                        – Marcos Carraro
                        Jul 16 '15 at 14:55










                      • i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone...
                        – Marcos Carraro
                        Jul 16 '15 at 15:02
















                      • my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist,
                        – Marcos Carraro
                        Jul 16 '15 at 14:55










                      • i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone...
                        – Marcos Carraro
                        Jul 16 '15 at 15:02















                      my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist,
                      – Marcos Carraro
                      Jul 16 '15 at 14:55




                      my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist,
                      – Marcos Carraro
                      Jul 16 '15 at 14:55












                      i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone...
                      – Marcos Carraro
                      Jul 16 '15 at 15:02




                      i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone...
                      – Marcos Carraro
                      Jul 16 '15 at 15:02










                      up vote
                      0
                      down vote













                      To disable mirrors, the only lines considering mirrors should be:



                      d-i apt-setup/use_mirror boolean false


                      And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use:



                      d-i apt-setup/services-select multiselect


                      (without the default security, updates)



                      Of course you should use a DVD or CD for installation then. To prevent being bothered with dialogue to scan other DVDs, add:



                      d-i apt-setup/cdrom/set-first boolean false


                      This should do the trick.






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        To disable mirrors, the only lines considering mirrors should be:



                        d-i apt-setup/use_mirror boolean false


                        And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use:



                        d-i apt-setup/services-select multiselect


                        (without the default security, updates)



                        Of course you should use a DVD or CD for installation then. To prevent being bothered with dialogue to scan other DVDs, add:



                        d-i apt-setup/cdrom/set-first boolean false


                        This should do the trick.






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          To disable mirrors, the only lines considering mirrors should be:



                          d-i apt-setup/use_mirror boolean false


                          And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use:



                          d-i apt-setup/services-select multiselect


                          (without the default security, updates)



                          Of course you should use a DVD or CD for installation then. To prevent being bothered with dialogue to scan other DVDs, add:



                          d-i apt-setup/cdrom/set-first boolean false


                          This should do the trick.






                          share|improve this answer












                          To disable mirrors, the only lines considering mirrors should be:



                          d-i apt-setup/use_mirror boolean false


                          And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use:



                          d-i apt-setup/services-select multiselect


                          (without the default security, updates)



                          Of course you should use a DVD or CD for installation then. To prevent being bothered with dialogue to scan other DVDs, add:



                          d-i apt-setup/cdrom/set-first boolean false


                          This should do the trick.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 31 at 17:09









                          AdamKalisz

                          19315




                          19315



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f216348%2fdebian-disabling-use-mirror-on-preseed-cfg%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay