Subject: Re: pkg_add tries to connect to ipv6
To: Rick McCombs <rick.mccombs@gmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 11/09/2007 21:52:54
On Fri, Nov 09, 2007 at 10:42:32AM -0600, Rick McCombs wrote:
> 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
> 
> [...]
> ftp> prompt off
> 
> ftp> close
> SIGPIPE!
> pkg_add: short write: Broken pipe
> pkg_add: prompt failed - wrong dir?

550 NETBSD-3.1: No such file or directory.

You probably want
PKG_PATH=ftp://ftp4.netbsd.org/pub/pkgsrc/packages/NetBSD-3.1/i386/All

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--