No internet connection in chroot environment (customizing iso)











up vote
0
down vote

favorite












I want to customize a Ubuntu Desktop Iso and I have come that far, that I am in the chroot environment.



The problem is that I do not have Internet access in there to install anything.



I just can ping 8.8.8.8, but not www.google.com (for example). Everything goes through a proxy tho, so I made a file apt.conf in the apt folder of the chroot environment but still nothing happens.



I can not run lines like: sudo apt-get update -> It just says "W: Failed to Fetch over and over again"



Does somebody know a solution?
I followed these steps (to the part with the sed commands)










share|improve this question









New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    I want to customize a Ubuntu Desktop Iso and I have come that far, that I am in the chroot environment.



    The problem is that I do not have Internet access in there to install anything.



    I just can ping 8.8.8.8, but not www.google.com (for example). Everything goes through a proxy tho, so I made a file apt.conf in the apt folder of the chroot environment but still nothing happens.



    I can not run lines like: sudo apt-get update -> It just says "W: Failed to Fetch over and over again"



    Does somebody know a solution?
    I followed these steps (to the part with the sed commands)










    share|improve this question









    New contributor




    kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to customize a Ubuntu Desktop Iso and I have come that far, that I am in the chroot environment.



      The problem is that I do not have Internet access in there to install anything.



      I just can ping 8.8.8.8, but not www.google.com (for example). Everything goes through a proxy tho, so I made a file apt.conf in the apt folder of the chroot environment but still nothing happens.



      I can not run lines like: sudo apt-get update -> It just says "W: Failed to Fetch over and over again"



      Does somebody know a solution?
      I followed these steps (to the part with the sed commands)










      share|improve this question









      New contributor




      kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I want to customize a Ubuntu Desktop Iso and I have come that far, that I am in the chroot environment.



      The problem is that I do not have Internet access in there to install anything.



      I just can ping 8.8.8.8, but not www.google.com (for example). Everything goes through a proxy tho, so I made a file apt.conf in the apt folder of the chroot environment but still nothing happens.



      I can not run lines like: sudo apt-get update -> It just says "W: Failed to Fetch over and over again"



      Does somebody know a solution?
      I followed these steps (to the part with the sed commands)







      chroot ping iso






      share|improve this question









      New contributor




      kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Nov 15 at 7:55









      Filipe Brandenburger

      6,1041625




      6,1041625






      New contributor




      kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 15 at 6:45









      kcdk

      32




      32




      New contributor




      kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          You have internet connection, as evidenced by the ping to 8.8.8.8. You just don't have DNS name resolution.



          See the file /etc/resolv.conf in your root file system and copy it to the chroot environment.






          share|improve this answer





















          • Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
            – kcdk
            Nov 15 at 6:59












          • I also tried using a simple network without any proxys instead. Still no connection to apt commands
            – kcdk
            Nov 15 at 7:00










          • In the chroot, try nslookup, host, dig or any program of your choice to verify that DNS resolution works.
            – RalfFriedl
            Nov 15 at 7:02










          • Thanks, I did the asked commands but it says on both (nslookup host and dig): ;; connection timed out; no servers could be reached than I tried ping 8.8.8.8 for fun again and this worked with 10,2ms responsetime So weird!#
            – kcdk
            Nov 15 at 7:30






          • 2




            I copied the root resolv.conf in my home folder and copied it than into the chroot environment. NOW pinging www.google.com AND apt commands work! THANK U!
            – kcdk
            Nov 15 at 8:24











          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: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          });


          }
          });






          kcdk is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481860%2fno-internet-connection-in-chroot-environment-customizing-iso%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








          up vote
          3
          down vote



          accepted










          You have internet connection, as evidenced by the ping to 8.8.8.8. You just don't have DNS name resolution.



          See the file /etc/resolv.conf in your root file system and copy it to the chroot environment.






          share|improve this answer





















          • Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
            – kcdk
            Nov 15 at 6:59












          • I also tried using a simple network without any proxys instead. Still no connection to apt commands
            – kcdk
            Nov 15 at 7:00










          • In the chroot, try nslookup, host, dig or any program of your choice to verify that DNS resolution works.
            – RalfFriedl
            Nov 15 at 7:02










          • Thanks, I did the asked commands but it says on both (nslookup host and dig): ;; connection timed out; no servers could be reached than I tried ping 8.8.8.8 for fun again and this worked with 10,2ms responsetime So weird!#
            – kcdk
            Nov 15 at 7:30






          • 2




            I copied the root resolv.conf in my home folder and copied it than into the chroot environment. NOW pinging www.google.com AND apt commands work! THANK U!
            – kcdk
            Nov 15 at 8:24















          up vote
          3
          down vote



          accepted










          You have internet connection, as evidenced by the ping to 8.8.8.8. You just don't have DNS name resolution.



          See the file /etc/resolv.conf in your root file system and copy it to the chroot environment.






          share|improve this answer





















          • Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
            – kcdk
            Nov 15 at 6:59












          • I also tried using a simple network without any proxys instead. Still no connection to apt commands
            – kcdk
            Nov 15 at 7:00










          • In the chroot, try nslookup, host, dig or any program of your choice to verify that DNS resolution works.
            – RalfFriedl
            Nov 15 at 7:02










          • Thanks, I did the asked commands but it says on both (nslookup host and dig): ;; connection timed out; no servers could be reached than I tried ping 8.8.8.8 for fun again and this worked with 10,2ms responsetime So weird!#
            – kcdk
            Nov 15 at 7:30






          • 2




            I copied the root resolv.conf in my home folder and copied it than into the chroot environment. NOW pinging www.google.com AND apt commands work! THANK U!
            – kcdk
            Nov 15 at 8:24













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          You have internet connection, as evidenced by the ping to 8.8.8.8. You just don't have DNS name resolution.



          See the file /etc/resolv.conf in your root file system and copy it to the chroot environment.






          share|improve this answer












          You have internet connection, as evidenced by the ping to 8.8.8.8. You just don't have DNS name resolution.



          See the file /etc/resolv.conf in your root file system and copy it to the chroot environment.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 at 6:53









          RalfFriedl

          4,8523825




          4,8523825












          • Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
            – kcdk
            Nov 15 at 6:59












          • I also tried using a simple network without any proxys instead. Still no connection to apt commands
            – kcdk
            Nov 15 at 7:00










          • In the chroot, try nslookup, host, dig or any program of your choice to verify that DNS resolution works.
            – RalfFriedl
            Nov 15 at 7:02










          • Thanks, I did the asked commands but it says on both (nslookup host and dig): ;; connection timed out; no servers could be reached than I tried ping 8.8.8.8 for fun again and this worked with 10,2ms responsetime So weird!#
            – kcdk
            Nov 15 at 7:30






          • 2




            I copied the root resolv.conf in my home folder and copied it than into the chroot environment. NOW pinging www.google.com AND apt commands work! THANK U!
            – kcdk
            Nov 15 at 8:24


















          • Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
            – kcdk
            Nov 15 at 6:59












          • I also tried using a simple network without any proxys instead. Still no connection to apt commands
            – kcdk
            Nov 15 at 7:00










          • In the chroot, try nslookup, host, dig or any program of your choice to verify that DNS resolution works.
            – RalfFriedl
            Nov 15 at 7:02










          • Thanks, I did the asked commands but it says on both (nslookup host and dig): ;; connection timed out; no servers could be reached than I tried ping 8.8.8.8 for fun again and this worked with 10,2ms responsetime So weird!#
            – kcdk
            Nov 15 at 7:30






          • 2




            I copied the root resolv.conf in my home folder and copied it than into the chroot environment. NOW pinging www.google.com AND apt commands work! THANK U!
            – kcdk
            Nov 15 at 8:24
















          Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
          – kcdk
          Nov 15 at 6:59






          Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
          – kcdk
          Nov 15 at 6:59














          I also tried using a simple network without any proxys instead. Still no connection to apt commands
          – kcdk
          Nov 15 at 7:00




          I also tried using a simple network without any proxys instead. Still no connection to apt commands
          – kcdk
          Nov 15 at 7:00












          In the chroot, try nslookup, host, dig or any program of your choice to verify that DNS resolution works.
          – RalfFriedl
          Nov 15 at 7:02




          In the chroot, try nslookup, host, dig or any program of your choice to verify that DNS resolution works.
          – RalfFriedl
          Nov 15 at 7:02












          Thanks, I did the asked commands but it says on both (nslookup host and dig): ;; connection timed out; no servers could be reached than I tried ping 8.8.8.8 for fun again and this worked with 10,2ms responsetime So weird!#
          – kcdk
          Nov 15 at 7:30




          Thanks, I did the asked commands but it says on both (nslookup host and dig): ;; connection timed out; no servers could be reached than I tried ping 8.8.8.8 for fun again and this worked with 10,2ms responsetime So weird!#
          – kcdk
          Nov 15 at 7:30




          2




          2




          I copied the root resolv.conf in my home folder and copied it than into the chroot environment. NOW pinging www.google.com AND apt commands work! THANK U!
          – kcdk
          Nov 15 at 8:24




          I copied the root resolv.conf in my home folder and copied it than into the chroot environment. NOW pinging www.google.com AND apt commands work! THANK U!
          – kcdk
          Nov 15 at 8:24










          kcdk is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          kcdk is a new contributor. Be nice, and check out our Code of Conduct.













          kcdk is a new contributor. Be nice, and check out our Code of Conduct.












          kcdk is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481860%2fno-internet-connection-in-chroot-environment-customizing-iso%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

          Morgemoulin

          Scott Moir

          Souastre