Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] cannot connect to internet after I chroot.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
levicc00123
n00b
n00b


Joined: 16 Dec 2004
Posts: 59

PostPosted: Wed Jan 19, 2005 10:13 pm    Post subject: [SOLVED] cannot connect to internet after I chroot. Reply with quote

I'm trying to install gentoo on my laptop and I can access the internet up until I chroot, then It cuts out on me, and I can't finish installation, I'm doing a stage 1 install. any help?

Last edited by levicc00123 on Fri Jan 21, 2005 5:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Wed Jan 19, 2005 10:29 pm    Post subject: Reply with quote

Did you remember to copy over your /etc/resolv.conf to your chroot?
Code:
# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
dreamszz
n00b
n00b


Joined: 20 Jan 2005
Posts: 4
Location: Den Haag, Netherlands

PostPosted: Thu Jan 20, 2005 2:49 pm    Post subject: same here Reply with quote

I have exactly the same error, and I *know* I copied the resolve.conf file.
I've even added some extra DNS from my provider, just in case.

But my path also seems screwed up. It can't find common tools such as 'ping', 'which' and 'where'. I get the error:
"bash: ping: command not found"

I followed the web manual to the letter and am using 2004.3 and stage3. At the point where you should run 'emerge --sync', I get stuck due to this error. Something must be broken but I have no clue where or what to look (for).
Chris. :cry:


Last edited by dreamszz on Thu Jan 20, 2005 3:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
dreamszz
n00b
n00b


Joined: 20 Jan 2005
Posts: 4
Location: Den Haag, Netherlands

PostPosted: Thu Jan 20, 2005 3:07 pm    Post subject: Reply with quote

rsync reports the following error:
Code:

>>> checking server timestamp...
rsync: getaddrinfo: rsync.gentoo.org 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c (88)
Back to top
View user's profile Send private message
z4Rilla
Apprentice
Apprentice


Joined: 22 Dec 2003
Posts: 291
Location: EU

PostPosted: Thu Jan 20, 2005 3:23 pm    Post subject: Re: same here Reply with quote

dreamszz wrote:
I have exactly the same error, and I *know* I copied the resolve.conf file.
I've even added some extra DNS from my provider, just in case.



It's not resolve.conf but resolv.conf
just in case....

and it should look like this:
Code:
nameserver <ip>
nameserver <ip>


and so on
Back to top
View user's profile Send private message
dreamszz
n00b
n00b


Joined: 20 Jan 2005
Posts: 4
Location: Den Haag, Netherlands

PostPosted: Thu Jan 20, 2005 3:55 pm    Post subject: SOLVED Reply with quote

OMG 8O :oops: :oops: :oops:

That's it... I used resolve.conf instead... d'oh!
It's perfectly grabbing packages now... Major thanks!
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Thu Jan 20, 2005 4:00 pm    Post subject: Reply with quote

Does OMG means Oh my God???

lol about resolvE.conf, i did the same mistake and it tooks me a time before I saw it!

Could you please edit the title and add (solved)?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Thu Jan 20, 2005 4:16 pm    Post subject: Re: SOLVED Reply with quote

dreamszz wrote:
OMG 8O :oops: :oops: :oops:

That's it... I used resolve.conf instead... d'oh!
It's perfectly grabbing packages now... Major thanks!

The devs should really, really re-write the copy command in the handbook to
Code:
cp -L /etc/resolv.conf /mnt/gentoo/etc/

As this would have prevented the entire problem discussed in this topic from ever occurring. If the n00b makes a typo in the resolv.conf part of the filename, the copy will abort with "file not found", rather than copying the file, but under a different file name.

@Sven Vermuelen: are you listening? :-)
Back to top
View user's profile Send private message
taurus
l33t
l33t


Joined: 21 Sep 2004
Posts: 657
Location: I need to be somewhere...

PostPosted: Thu Jan 20, 2005 5:30 pm    Post subject: Reply with quote

I am sorry but it's not the authors of the Handbook's fault!!! If you can't type, then blame it on yourself instead of the book... I always double check what I type in case something so minor will screw up the whole thing! :roll:

taurus
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Thu Jan 20, 2005 5:42 pm    Post subject: Reply with quote

taurus wrote:
I am sorry but it's not the authors of the Handbook's fault!!!

The point is that when the Handbook describes the copy command thus:
Code:
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
The "resolv.conf" at the end of /mnt/gentoo/etc/ is totally unnecessary. Chopping these 11 characters off from the last word of that code listing would ensure that once the newbie gets the "/etc/resolv.conf" part right, the file will always be copied with the correct name to /mnt/gentoo/etc/. Every time! The worst thing that could go wrong with my suggested re-write of that code listing:
Code:
cp /etc/resolv.conf /mnt/gentoo/etc/
is that the newbie mistypes the resolv.conf part of the filename, and leads to a "file not found". But if not, the file is guaranteed to be copied over correctly! Don't we all want a more n00b-proof Installation Handbook, to cut down on the number of support requests in this forum?!
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Jan 20, 2005 11:40 pm    Post subject: Reply with quote

kimchi_sg wrote:
Don't we all want a more n00b-proof Installation Handbook, to cut down on the number of support requests in this forum?!

sure, but i doubt that the people who would benefit from it most would read it. :!:
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum