View previous topic :: View next topic |
Author |
Message |
Harbir n00b
Joined: 12 May 2005 Posts: 33
|
Posted: Tue Feb 13, 2007 12:07 pm Post subject: Unknown Host, after chroot |
|
|
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 |
|
|
amar_ Tux's lil' helper
Joined: 18 Sep 2006 Posts: 118
|
Posted: Tue Feb 13, 2007 12:10 pm Post subject: |
|
|
Try route add default gw yourgatewayhere or if you'r using adsl pppoe route add default ppp0 _________________ My blog is here |
|
Back to top |
|
|
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Tue Feb 13, 2007 12:41 pm Post subject: |
|
|
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 |
|
|
Harbir n00b
Joined: 12 May 2005 Posts: 33
|
Posted: Tue Feb 13, 2007 11:55 pm Post subject: |
|
|
No i copied with the "e", i.e. "resolve.conf" |
|
Back to top |
|
|
suicideducky Apprentice
Joined: 29 Jan 2007 Posts: 208
|
Posted: Wed Feb 14, 2007 12:02 am Post subject: |
|
|
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
[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
at the start of the topic title.
thanks.
[/EDIT]
[RE-EDIT] and BTW welcome to linux! [/RE-EDIT] |
|
Back to top |
|
|
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Wed Feb 14, 2007 12:29 am Post subject: |
|
|
Harbir wrote: | No i copied with the "e", i.e. "resolve.conf" |
There should be no "e" |
|
Back to top |
|
|
Harbir n00b
Joined: 12 May 2005 Posts: 33
|
Posted: Wed Feb 14, 2007 9:16 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|