Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2001 18:21:51 +0100 (BST)
From:      =?iso-8859-1?q?Adam=20Nealis?= <adamnealis@yahoo.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   pkg_add complains thus: rcmd: getaddrinfo: No address associated with hostname
Message-ID:  <20010919172151.66379.qmail@web20710.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi,

Please CC me as I can't take the list volume.

I'm trying to work out why I get the error in the
e-mail subject.

I have a newly installed 4.3-RELEASE box, and I duly
got me all the core security .tgzs to try and do
binary updates. I've checked the archives but If there
is anything there I didn't put in the right search
terms. I know one answer is cvsup to -STABLE, but I
would like to understand this particular error in its
own right.

So, here goes with the first relevant patch, namely
FreeBSD-SA-01:40. I have not bothered to go into
single user mode as recommended in the advisory, but
it's not significant for this error, right?

arf1# pkg_add security-patch-fts-01.40.tgz
Requested space: 8450348 bytes, free space: 18439168 bytes in \
/var/tmp/instmp.f7wo4C
rcmd: getaddrinfo: No address associated with hostname
tar (child): can't open archive
/usr/home/adam/security/FreeBSD/FreeBSD-SA-01:40/security-patch-fts-01.40.tgz : \
Input/output error

gzip: stdin: unexpected end of file
tar: child returned status 1
tar: +CONTENTS not found in archive
pkg_add: unable to open table of contents file `+CONTENTS' - not a package?
pkg_add: 1 package addition(s) failed
OK, so maybe the tarball is buggered:
arf1# gzip -vt security-patch-fts-01.40.tgz
security-patch-fts-01.40.tgz:    OK

OK, so maybe this getaddrinfo: stuff means something:

arf1# hostname
arf1.adamnealis.co.uk

arf1# grep -v "#" /etc/host.conf
hosts
bind
arf1# cat /etc/hosts
127.0.0.1               localhost.adamnealis.co.uk localhost
192.168.200.100         arf1.adamnealis.co.uk arf1
192.168.200.100         arf1.adamnealis.co.uk.

arf1# ifconfig rl0
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.200.100 netmask 0xffffff00 broadcast 192.168.200.255
        inet6 fe80::202:44ff:fe18:9cdc%rl0 prefixlen 64 scopeid 0x1 
        ether 00:02:44:18:9c:dc 
        media: autoselect (100baseTX) status: active
        supported media: autoselect 100baseTX <full-duplex>

arf1# cat /etc/resolv.conf 
domain  adamnealis.co.uk
nameserver      192.168.200.3

arf1# nslookup arf1
Server:  adam.ijichi.co.uk
Address:  192.168.200.3

Name:    arf1.adamnealis.co.uk
Address:  192.168.200.100

Now, I know my domain is made up, but arf1 doesn't know that! Even
though /etc/host.conf says use /etc/hosts anyway and not bind. But
bind works.

So I suppose I'm missing something blindingly simple but not
obvious to me.

Any ideas anyone?

Cheers,
Adam.

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010919172151.66379.qmail>