When I boot from Ubuntu 9.04 liveCD, I can use my wireless internet. I have no idea how this tool is called, but it is in the upper right corner, lets me choose among detected wireless networks, enter key, etc.

When I use apt-get in terminal (being in LiveCD) it's all OK, internet connection works and aptitude downloads everything it needs.

Is there a way to keep using this connection even after chrooting into somewhere else?

I need to chroot to my "real" Ubuntu install in order to fix it (got messed up). So I do chroot /media/disk and from there on I have no internet connection in terminal. So if I use apt-get install ubuntu-desktop, apt-get complains about not being able to resolve ubuntu http repository urls or something like that. Exactly as if I boot into real, messed up Ubuntu install I want to fix, because it has no working internet either.


Just added a detailed chroot tutorial here. One thing you should do is copy your /etc/resolv.conf file over before doing the chroot. That may be all you need to fix this.

  • everything's going according to plan. muahahahahaha! – quack quixote Feb 20 '10 at 14:03
  • (I was confused by the comment until I noticed quack started the community wiki question I linked to.) – dubiousjim Feb 20 '10 at 17:11
  • (and i found it odd that there was suddenly another chroot question until i realized... it was posted by the author of one of the questions that prompted ... my CW chroot question! ha!) – quack quixote Feb 20 '10 at 17:17
  • :)) Thanks a lot guys, gonna try that. Finally got time to work with this again. – Sejanus Feb 23 '10 at 11:05
  • Copying /etc/resolv.conf did the trick! – Sejanus Feb 23 '10 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.