Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unknown Host, after 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
Harbir
n00b
n00b


Joined: 12 May 2005
Posts: 33

PostPosted: Tue Feb 13, 2007 12:07 pm    Post subject: Unknown Host, after chroot Reply with quote

Hi!

I am new to gentoo (for that matter linux also), at the moment I am installing gentoo (minimal instillation, from CD), and using stage 3 tarbaal.

At the start of instillation, i set up my network connection, and copied resolve.conf into /etc directory on the hard disk.

Everything was working file, but when I “chroot” from the CD to Hardisk during the instillation process, the emerge command is not working properly, I am trying to emerge source with.

#emerge gentoo-sources

I have also tried the following:

# USE="-doc symlink" emerge gentoo-sources
I am using router to connect to internet, the address of my router is 192.168.0.1, and I am able to ping it very well, and I have tried to ping other IP addresses, and they are also getting pinnged properly (0% packet loss).
But when I type the address, like www.google.com, the message comes up saying that “unknown host www.google.com”.

I think due to this reason “emerge” command is not working, the output of my

#emerge gentoo-sources is:

>>>Downloading ftp://ftp.oregonstate.edu/pub/gentoo/distfiles/genpatches-2.6.19-6.extras.tar.bz2
--10:03:20-- ftp://ftp.oregonstate.edu/pub/gentoo/distfiles/genpatches-2.6.19-6.extras.tar.bz2
=>'/usr/portage//distfiles/genpatches-2.6.19-6.extras.tar.bz2'
Resolving ftp.oregonstate.edu... failed: Temporary failure in name resolution.

>>>Downloading ftp://ftp.lug.mtu.edu/pub/gentoo/distfiles/genpatches-2.6.19-6.extras.tar.bz2
--10:03:20-- ftp://ftp.lug.mtu.edu/pub/gentoo/distfiles/genpatches-2.6.19-6.extras.tar.bz2
=>'/usr/portage//distfiles/genpatches-2.6.19-6.extras.tar.bz2'
Resolving ftp.lug.mtu.edu... failed: Temporary failure in name resolution.

>>>Downloading ftp://ftp.distro.ibiblio.org/pub/gentoo/distfiles/genpatches-2.6.19-6.extras.tar.bz2
--10:03:20-- ftp://ftp.distro.ibiblio.org/pub/gentoo/distfiles/genpatches-2.6.19-6.extras.tar.bz2
=>'/usr/portage//distfiles/genpatches-2.6.19-6.extras.tar.bz2'
Resolving ftp.distro.ibiblio.org... failed: Temporary failure in name resolution.



Any sort of help will be greatly appreciated.

Regards
Harbir
Back to top
View user's profile Send private message
amar_
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2006
Posts: 118

PostPosted: Tue Feb 13, 2007 12:10 pm    Post subject: Reply with quote

Try route add default gw yourgatewayhere or if you'r using adsl pppoe route add default ppp0
_________________
My blog is here
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Tue Feb 13, 2007 12:41 pm    Post subject: Reply with quote

Quote:
At the start of instillation, i set up my network connection, and copied resolve.conf into /etc directory on the hard disk


Did you just copy it to /etc or did you copy it to /mnt/gentoo/etc/resolv.conf (without the e)
Back to top
View user's profile Send private message
Harbir
n00b
n00b


Joined: 12 May 2005
Posts: 33

PostPosted: Tue Feb 13, 2007 11:55 pm    Post subject: Reply with quote

No i copied with the "e", i.e. "resolve.conf"
Back to top
View user's profile Send private message
suicideducky
Apprentice
Apprentice


Joined: 29 Jan 2007
Posts: 208

PostPosted: Wed Feb 14, 2007 12:02 am    Post subject: Reply with quote

i had this problem also, it was due to me not copying over the resolv.conf file
so all i did was go back using
Code:
exit
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf


so make sure youve done that, and even double check if you can :D

[EDIT] sorry didnt see the above post, was busy crawling through the documentation to make sure the command i was dishing out was entirely correct. please place
Code:
[solved]

at the start of the topic title.
thanks.
[/EDIT]
[RE-EDIT] and BTW welcome to linux! [/RE-EDIT]
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Wed Feb 14, 2007 12:29 am    Post subject: Reply with quote

Harbir wrote:
No i copied with the "e", i.e. "resolve.conf"


There should be no "e"
Back to top
View user's profile Send private message
Harbir
n00b
n00b


Joined: 12 May 2005
Posts: 33

PostPosted: Wed Feb 14, 2007 9:16 am    Post subject: Reply with quote

Thanx a lot guys!

It was a spelling mistake,,,,, I made it as resolve.conf instead of resolv.conf

Once again tahnx to amar, evileye, and suicideducky.

Appreciate it
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