I'm following BootableFlashFromHarddiskInstall tutorial for making a live CD from my current Ubuntu installation.
Ubuntu 14.04 on VirtualBox. I checked internet connection of virtual machine as normal user(How can I check internet connection of chroot?).
After this step problems started:
sudo chroot ${WORK}/rootfs /bin/bash
Nothing happened or changed no output after this command($LANG environment variable? What is the purpose?):
LANG=
After apt-get update
apt-get update
I'm getting these errors:
Here is history of my normal acccount:
So what is the actual problem?
Is Chroot not connected to internet? - or - tr.archive.ubuntu.com could be a problem?
I checked sudo apt-get update
as normal user(mertyildiran) it is working.
But in chroot apt-get update
- or - sudo apt-get update
both of them not working
EDIT:
/etc/resolv.conf in chroot directory:
Within a chroot, it is likely that
resolv.conf
is not properly set up (it could be a symlink to a non-existent file, or it could be empty and so on). Therefore a common bit of advice when setting up chroots is to copy the host'sresolv.conf
:Then you can restore the original, if it was a proper file.
On many modern systems,
resolv.conf
is a symlink to a file/run
, since it is dynamically managed byresolvconf
. On a Debian based system, you can always recreate the link using: