No internet connection in chroot environment (customizing iso)
Clash Royale CLAN TAG#URR8PPP
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)
chroot ping iso
New contributor
add a comment |
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)
chroot ping iso
New contributor
add a comment |
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)
chroot ping iso
New contributor
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
chroot ping iso
New contributor
New contributor
edited yesterday
Filipe Brandenburger
5,8091624
5,8091624
New contributor
asked yesterday
kcdk
31
31
New contributor
New contributor
add a comment |
add a comment |
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.
Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
– kcdk
yesterday
I also tried using a simple network without any proxys instead. Still no connection to apt commands
– kcdk
yesterday
In the chroot, trynslookup
,host
,dig
or any program of your choice to verify that DNS resolution works.
– RalfFriedl
yesterday
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
yesterday
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
yesterday
|
show 2 more comments
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.
Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
– kcdk
yesterday
I also tried using a simple network without any proxys instead. Still no connection to apt commands
– kcdk
yesterday
In the chroot, trynslookup
,host
,dig
or any program of your choice to verify that DNS resolution works.
– RalfFriedl
yesterday
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
yesterday
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
yesterday
|
show 2 more comments
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.
Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
– kcdk
yesterday
I also tried using a simple network without any proxys instead. Still no connection to apt commands
– kcdk
yesterday
In the chroot, trynslookup
,host
,dig
or any program of your choice to verify that DNS resolution works.
– RalfFriedl
yesterday
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
yesterday
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
yesterday
|
show 2 more comments
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.
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.
answered yesterday
RalfFriedl
4,8372725
4,8372725
Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
– kcdk
yesterday
I also tried using a simple network without any proxys instead. Still no connection to apt commands
– kcdk
yesterday
In the chroot, trynslookup
,host
,dig
or any program of your choice to verify that DNS resolution works.
– RalfFriedl
yesterday
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
yesterday
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
yesterday
|
show 2 more comments
Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
– kcdk
yesterday
I also tried using a simple network without any proxys instead. Still no connection to apt commands
– kcdk
yesterday
In the chroot, trynslookup
,host
,dig
or any program of your choice to verify that DNS resolution works.
– RalfFriedl
yesterday
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
yesterday
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
yesterday
Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
– kcdk
yesterday
Thank you for your help, I already tried this sudo cp -a /etc/resolv.conf ~/remastering/newfilesystem/etc/
– kcdk
yesterday
I also tried using a simple network without any proxys instead. Still no connection to apt commands
– kcdk
yesterday
I also tried using a simple network without any proxys instead. Still no connection to apt commands
– kcdk
yesterday
In the chroot, try
nslookup
, host
, dig
or any program of your choice to verify that DNS resolution works.– RalfFriedl
yesterday
In the chroot, try
nslookup
, host
, dig
or any program of your choice to verify that DNS resolution works.– RalfFriedl
yesterday
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
yesterday
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
yesterday
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
yesterday
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
yesterday
|
show 2 more comments
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.
kcdk is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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