From owner-freebsd-stable@FreeBSD.ORG Thu Apr 2 12:47:55 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C187926 for ; Thu, 2 Apr 2015 12:47:55 +0000 (UTC) Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com [IPv6:2607:f8b0:4003:c01::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 43184E34 for ; Thu, 2 Apr 2015 12:47:55 +0000 (UTC) Received: by obvd1 with SMTP id d1so127374509obv.0 for ; Thu, 02 Apr 2015 05:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SNK6PzKXz8FGKxEt9pvXCKQz/Sd8GLGygi21sKZcTE4=; b=EjdtQVkvTHGi9Mld9aZZmPxlS2pBW1NSEZudd14gOMGm7A58wHONzLU+HUUZmMQU2J PuIBG4AHc8Pcnh9dAmhJ4gAfY/q3JEdKa7jfFHCnl8GXQaaDwB9weXZp3rJH079BZkz+ aCZjgKhiI3St01kTA0nxAmacG4+fhVcn2P323bG3l+qaLhgajnQVN9n1E4FrUBdCaJuI MW7f/5Ny9MlVTkRt+SLEM1U+Koz8vD0YlUJiNb3lc1bp5YdZmm6VPRGJI1y2pby6fRoM b8p6cvKMZTa0BFd/8IOlDE4L+Izdksb+/VM71v7bfIyYTxrcockvg1UD0E34RYq+cfVT S/5Q== MIME-Version: 1.0 X-Received: by 10.182.250.193 with SMTP id ze1mr47209983obc.70.1427978874518; Thu, 02 Apr 2015 05:47:54 -0700 (PDT) Received: by 10.202.177.136 with HTTP; Thu, 2 Apr 2015 05:47:54 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Apr 2015 14:47:54 +0200 Message-ID: Subject: Re: pkgng cannot fetch from PACKAGESITE with nanobsd.sh in FreeBSD 10.1 From: Zenny To: "freebsd-stable@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2015 12:47:55 -0000 bump! On 4/1/15, Zenny wrote: > Hi, > > 1. In order to comply with the pkgng in FreeBSD 10.1, the following changes > were appended to my customized nanobsd.conf: > > customize_cmd cust_NANOBSD_setup >> >> cust_NANOBSD_packages() { >> chroot ${NANO_WORLDDIR} sh -c 'cd packages; pkg; pkg install nano; pkg >> clean;' >> } >> >> customize_cmd cust_NANOBSD_packages >> > > Certainly I had tuned chrooted /etc/resolv.conf with: > > #tune resolv.conf >> echo ' >> nameserver 8.8.8.8 >> nameserver 8.8.4.4 >> ' >> ${NANO_WORLDDIR}/etc/resolv.conf >> > > Still the package cannot be downloaded from PACKAGESITE and got built into > nanobsd image. > > 2. Also tried with: > > cust_pkg() { >> pkg -c ${NANO_WORLDDIR} update >> pkg -c ${NANO_WORLDDIR} install nano >> pkg -c ${NANO_WORLDDIR} clean >> } >> >> customize_cmd cust_pkg >> > > Both ways, I get the same error that reads as of below: > > cd: packages: No such file or directory >> pkg: Error fetching >> http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/Latest/pkg.txz: No >> address record >> A pre-built version of pkg could not be found for your system. >> Consider changing PACKAGESITE or installing it from ports: >> 'ports-mgmt/pkg'. >> The package management tool is not yet installed on your system. >> Do you want to fetch and install it now? [y/N]: Bootstrapping pkg from >> pkg+ >> http://pkg.FreeBSD.org/freebsd:10:x86:64/latest, please wait... >> pkg: Error fetching >> http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/Latest/pkg.txz: No >> address record >> A pre-built version of pkg could not be found for your system. >> Consider changing PACKAGESITE or installing it from ports: >> 'ports-mgmt/pkg'. >> The package management tool is not yet installed on your system. >> Do you want to fetch and install it now? [y/N]: Bootstrapping pkg from >> pkg+ >> http://pkg.FreeBSD.org/freebsd:10:x86:64/latest, please wait... >> pkg: Error fetching >> http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/Latest/pkg.txz: No >> address record >> A pre-built version of pkg could not be found for your system. >> Consider changing PACKAGESITE or installing it from ports: >> 'ports-mgmt/pkg'. >> The package management tool is not yet installed on your system. >> Do you want to fetch and install it now? [y/N]: Bootstrapping pkg from >> pkg+ >> http://pkg.FreeBSD.org/freebsd:10:x86:64/latest, please wait... >> > > Any hint on how to get over to this problem. Thanks! > > /z >