No internet connection in chroot environment (customizing iso)

chrootisoping

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)

Best 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.

Related Question