Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No connection
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
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Wed Apr 18, 2012 5:00 am    Post subject: No connection Reply with quote

Ok, I just installed Gentoo with a help of a friend, but he's in another city. I don't have a GUI I tried installing Gnome 3, but received this after changing the USE according to how it instructed(well what I could see of it):

Code:
Resolving gnu.mirror.iweb.com... failed: Name or service not known.
wget: unable to resolve host address 'gnu.mirror.iweb.com'
>>>Downloading 'ftp://aeneas.mit.edu/pub/gnu/gperf/gperf-3.0.4.tar.gz'
--2012-04-18 04:07:34-- ftp://aeneas.mit.edu/pub/gnu/gperf/gper-3.0.4.tar.gz
                    => '/usr/portage/distfiles/gperf-3.0.4.tar.gz'
Resolving aeneas.mit.edu... failed: Name or service not known.
wget: unable to resolve host addres 'aeneas.mit.edu'
!!! Couldn't download 'gperf-3.0.4.tar.gz'. Aborting.
 * Fetch failed for '/var/tmp/portage/dev-util/gperf-3.0.4', Log file:
 * '/var/tmp/portage/dev/util/gperf-3.0.4/temp/build.log'

>>> Failed to emerge dev-util/gperf-3.0.4, Log file:
>>> '/var/tmp/portage/dev-util/gperf-3.0.4/temp/build.log'

 * Messages for package dev-util/gperf-3.0.4:

 * Fetch failed for 'dev-util/gperf-3.0.4', Logfile:
 *  '/var/tmp/portage/dev-util/gperf-3.0.4/temp/build.log'



My friend then told me that this is similar to the error 404. I checked my network and received
Code:
ping: unknown host www.gentoo.org
Where exactly do I go from here. Thank you for all those that help.

This is not from the Live CD. this is from the computer itself
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Apr 18, 2012 6:42 am    Post subject: Reply with quote

if
Code:
 ping -c 2 8.8.8.8
works
Code:
nano /etc/resolv.conf

edit to
Quote:
nameserver 8.8.8.8

_________________
Defund the FCC.
Back to top
View user's profile Send private message
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Wed Apr 18, 2012 7:31 pm    Post subject: Reply with quote

Thank you. That helped with the situation. It fixed the connection issue. Now I have another issue. Now though, I have an issue with my original problem concerning emerge gnome.

Code:
Resolving distfiles.gentoo.org... failed: Name or service not known
wget: unable to resolve host address 'distfiles.gentoo.org'
>>Downloading 'http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.xz'
--2012-04-18 18:13:49-- http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar
.xz
Resolving downloads.xiph.org... failed: Name or service not known.
wget: unable to resolve host address 'downloads.xiph.org'
!!! Couldn't download 'libogg-1.3.0.tar.xz'. Aborting.
 * Fetch failed for 'media-libs/libogg-1.3.0', Log file
 *  '/var/tmp/portage/media-libs/libogg-1.3.0/temp/build.log'

>>> Failed to emerge media-libs/libogg-1.3.0, Log file:

>>>  '/var/tmp/portage/media-libs/libogg-1.3.0/temp/build.log'

 * Messages for package media-libs/libogg-1.3.0:

 * Fetch failed for 'media-libs/libogg-1.3.0' Log file:
 *  '/var/tmp/portage/media-libs/libogg-1.3.0/temp/build.log'


Thank you for the help so far
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Apr 18, 2012 7:51 pm    Post subject: Reply with quote

it appears that /etc/resolv.conf has been written over once again.

repeat
Code:
nano /etc/resolv.conf
edit to
Quote:
nameserver 8.8.8.8
if it has changed then
Code:
 ping -c 2 google.com
if that works it tends to confirm that something is overwriting /etc/resolv.conf. the usual cause of that behavior is having a line like
Quote:
dns_domain_lo="homenetwork"
in /etc/conf.d/net. If you have a line like that delete it. If you feel that /etc/resolv.conf is changing without you changing it but there is no line similar to dns_domain_lo= post the content of /etc/conf.d/net for analysis.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Apr 18, 2012 11:49 pm    Post subject: Reply with quote

Just to add DONAHUE's observations/comments.
1) /etc/resolv.conf.head will make sure that the name server is persistent.
2) make sure wget is not using ipv6. You can check this with emerge -pv wget If it is using ipv6, rebuild with that flag disabled. You can force wget to use ipv4 to fetch its source code or use a browser like Firefox or chromium to download the file and copy it to the location that emerge was trying to save it.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Apr 19, 2012 2:15 am    Post subject: Reply with quote

penguin swordmaster wrote:
2) make sure wget is not using ipv6. You can check this with emerge -pv wget If it is using ipv6, rebuild with that flag disabled. You can force wget to use ipv4 to fetch its source code or use a browser like Firefox or chromium to download the file and copy it to the location that emerge was trying to save it.
For some users, IPv6 connectivity works fine. Also, I would expect it to fail differently if the problem was that he was using IPv6 in a network where it was not supported.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Thu Apr 19, 2012 2:47 am    Post subject: Reply with quote

Quote:
For some users, IPv6 connectivity works fine. Also, I would expect it to fail differently if the problem was that he was using IPv6 in a network where it was not supported.


I am sure it works for some internet configurations, or the option would not exist. I experienced an error like this a while back and as I recall it produced an error just like the OP's.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Thu Apr 19, 2012 7:29 am    Post subject: Reply with quote

OK, I am so sorry, I know I was a lot closer, but due to a huge mistake I made I accidentally deleted everything and had to start from scratch. So now I started again. I am back to my original error, but this time
Code:
ping -c 2 8.8.8.8
is returning me with
Code:
connect: Network is unreachable


help please?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Apr 19, 2012 4:57 pm    Post subject: Reply with quote

For convenience, I suggest boot a system rescue cd to a GUI and network connection and run
Code:
lspci -k
(identify your equipment and drivers) and post the result here. Then enter the chroot, nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
then
Code:
emerge wgetpaste pciutils dhcpcd linux-firmware
wgetpaste /usr/src/linux/.config
ifconfig -a | wgetpaste
ifconfig | wgetpaste
ls -a /etc/init.d/net* | wgetpaste
cat /etc/conf.d/net | wgetpaste
post the url's returned here. Needed drivers or firmware or applications or configuration seems to have been lost during the rebuild.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Thu Apr 19, 2012 5:17 pm    Post subject: Reply with quote

One problem, the only comp that has a CD drive is the one I'm working on, and I don't have a flash drive. I would go out and get one, but right now, I am kind of with a broken ankle. any other suggestions?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Apr 19, 2012 5:29 pm    Post subject: Reply with quote

a) you can put sysresccd on a usb flash drive http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick
or
b) just use any livecd of same bitness as your install that you already have. If not gentoo, do what it requires to be root and mkdir /mnt/gentoo. run
Code:
lspci -k
after booting cd and post result before entering the chroot.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Fri Apr 20, 2012 2:54 pm    Post subject: Reply with quote

ummm... perhaps it's not properly understood, but the one I'm trying to install Gentoo on is the only computer that has a CD drive. the netbook can take a flash drive, but I don't have a flash drive. I can't buy one because I am in a cast
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Apr 20, 2012 3:31 pm    Post subject: Reply with quote

sorry, missed your statement that you had no usb flash drive on hand when I wrote plan a. However, plan b should work if I understand correctly that you have a cd drive on the target computer, and presuming that you do have some brand of linux livecd;
just boot any livecd of same bitness as your intended install. (If not a gentoo livecd, do what it requires to be root and run
Code:
mkdir /mnt/gentoo
)
Then enter the chroot, nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"

then
Code:

emerge wgetpaste pciutils dhcpcd linux-firmware
lspci -k | wgetpaste
wgetpaste /usr/src/linux/.config
ifconfig -a | wgetpaste
ifconfig | wgetpaste
ls -a /etc/init.d/net* | wgetpaste
cat /etc/conf.d/net | wgetpaste

post the url's returned here. Needed drivers or firmware or applications or configuration seems to have been lost during the rebuild.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Fri Apr 20, 2012 10:58 pm    Post subject: Reply with quote

Thanks for your dedication on this. It really is appreciated. I am running an error on this line: I don't think that it's much of a good sign if I already get
Code:
cp: cannot stat '/etc/resolv.conf' : No such file or directory
when I run
Code:
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat Apr 21, 2012 12:38 am    Post subject: Reply with quote

Code:
nano /mnt/gentoo/etc/resolv.conf

edit to
Quote:
nameserver 8.8.8.8

should give a working solution (bypassing the block)
BTW, what cd are you using?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Sat Apr 21, 2012 1:02 am    Post subject: Reply with quote

the Live CD or Gentoo I originally installed Gentoo with
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat Apr 21, 2012 1:07 am    Post subject: Reply with quote

ok
that does make no /etc/resolv.conf a strange event
you did establish a network connection with the cd? (net-setup eth0)
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DaBeaner
n00b
n00b


Joined: 11 Apr 2012
Posts: 13

PostPosted: Sat Apr 21, 2012 1:18 am    Post subject: Reply with quote

yes
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