Subject: Re: pkg_add tries to connect to ipv6
To: Matthias Scheler <tron@zhadum.org.uk>
From: Rick McCombs <rick.mccombs@gmail.com>
List: netbsd-users
Date: 11/09/2007 10:42:32
On Nov 9, 2007 12:18 AM, Matthias Scheler <tron@zhadum.org.uk> wrote:
> On Thu, Nov 08, 2007 at 06:51:58PM -0600, Rick McCombs wrote:
> > I just installed NetBSD 3.1 and when I try to use
> > pkg_add it tries to connect to an ipv6 address ...
>
> What hostname are you using? If you are using "ftp.NetBSD.org"
> you can use the hostname "ftp4.NetBSD.org" instead.
>
> > ... and dies.
>
> You should get a message like "no route to host" and it should fallback
> to IPv4 afterwards.
>
> Please provide more information e.g. the exact "pkg_add" command that
> you tried to use.
>
> Kind regards
>
> --
> Matthias Scheler http://zhadum.org.uk/
>
OK this time I made more progress. Do I need to know the exact file name?
I thought If I asked for bash it would get whatever version is there.
PKG_PATH=ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All
pentiumii# pkg_add -v bash
parsing: ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All
path: ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH
ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All
Spawning FTP coprocess
ftp -detv ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All/
ftp> prompt off
ftp> close
SIGPIPE!
pkg_add: short write: Broken pipe
pkg_add: prompt failed - wrong dir?
pkg_add: ftp_start() failed
Spawning FTP coprocess
ftp -detv ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All/
ftp> prompt off
ftp> close
SIGPIPE!
pkg_add: short write: Broken pipe
pkg_add: prompt failed - wrong dir?
pkg_add: ftp_start() failed
Spawning FTP coprocess
ftp -detv ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All/
ftp> prompt off
ftp> close
SIGPIPE!
pkg_add: short write: Broken pipe
pkg_add: prompt failed - wrong dir?
pkg_add: ftp_start() failed
Spawning FTP coprocess
ftp -detv ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NETBSD-3.1/i386/All/
ftp: connect: Connection timed out
ftp: Can't connect or login to host `ftp4.netbsd.org'
pkg_add: expect1 failed, rc=0
pkg_add: ftp_start() failed
pkg_add: no pkg found for 'bash', sorry.
ftp> close
SIGPIPE!
pkg_add: short write: Broken pipe
pkg_add: 1 package addition failed
pentiumii#
--
Email rick.mccombs@gmail.com If you want a gmail invitation just ask.
Amateur Radio AD5DU.
home page http://www.geocities.com/richard_mccombs/