From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 16:36:24 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6722328 for ; Fri, 21 Nov 2014 16:36:24 +0000 (UTC) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 35BA18D4 for ; Fri, 21 Nov 2014 16:36:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id sALGa8Tk093581; Sat, 22 Nov 2014 03:36:09 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 22 Nov 2014 03:36:08 +1100 (EST) From: Ian Smith To: Gary Aitken Subject: Re: sysinstall fails to fetch; pkg install succeeds In-Reply-To: Message-ID: <20141122012438.B85722@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 16:36:24 -0000 In freebsd-questions Digest, Vol 546, Issue 3, Message: 7 On Tue, 18 Nov 2014 22:10:12 -0700 Gary Aitken wrote: > I'm in the process of installing a 9.3 system. > > "pkg install foo" seems to work fine, fetching from the network. > However, if I run sysinstall (forgot to include the handbook), it fails > when trying to fetch from the network. I've tried both FTP mode and > FTP through firewall mode. What does sysinstall do that's different when > trying to fetch from the network? sysinstall only knows about the old pkg_tools (pkg_add etc) which have been defunct for quite a while. I don't know why the pkg_* binaries are even left in place (let alone executable) on pkg(8)-using systems, as I found out the hard way after pkg2ng'ing 9.2R, then ungrokingly running the old not-yet-pkg-aware portmaster, managing to make quite a mess. For anyone running an 8.x or 9.x system using pkg(8) exclusively, maybe via pkg2ng, I'd recommend considering - if rm seems drastic - at least: # chmod a-x /usr/sbin/pkg_* Try bsdconfig(8) which I think still (re)installs the docs, and provides a (working?) front end for installing packages. Let's know how it goes? bsdconfig provides most if not all 'post-installation' functions from sysinstall, similar look'n'feel to bsdinstall (invoked for disk setup). > This is going through a firewall running natd and ipfw, so it may be a > firewall rule problem. But I would have thought they would either both > fail or both succeed. sysinstall still has a use on 9.x, but package installation isn't it :) cheers, Ian