From owner-freebsd-stable@FreeBSD.ORG Thu Apr 2 18:39:46 2015 Return-Path: Delivered-To: freebsd-stable@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 51029ED for ; Thu, 2 Apr 2015 18:39:46 +0000 (UTC) Received: from mail-yk0-x22d.google.com (mail-yk0-x22d.google.com [IPv6:2607:f8b0:4002:c07::22d]) (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 02217F4F for ; Thu, 2 Apr 2015 18:39:46 +0000 (UTC) Received: by ykcn8 with SMTP id n8so24107797ykc.3 for ; Thu, 02 Apr 2015 11:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=wi1fDn5j4NJWqhFfPKZuoeqbFKLbl9/wykjOmbSc1Dk=; b=sOQOuzDld5OzCEppbMLhUWQoEvKUHkmi+CjdH+m59LfCaRhGm65uDECs6/7rgMU1EY K8mxYaOt/ZY4c32ZrYaGp8Pt2yik3G2g19apPDB4ooNVwZrD1K6ivPqok/RAxkly+Z13 9Hn9UQ/WeK8AuZeUZ7l8qXS7EWoXW68mILxzvVQdUeT1duarZxx6h35bTQ93pnvHpswX ahq11Y0yiYbY/7J9uCUBR3qWgEZxbt1RoixB+nCTr6Fs4/0GT/31P4Ok5XhuD5Q+jcZY jfInOjx6/rCB8vLtrM1bQSfh6uh/aWfFBFbaf69oLrAEVWZ8q4npmpnkNTLDWDsYjJRi zayg== X-Received: by 10.52.26.113 with SMTP id k17mr47063085vdg.21.1427999985214; Thu, 02 Apr 2015 11:39:45 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id ek4sm924457vdd.11.2015.04.02.11.39.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2015 11:39:44 -0700 (PDT) Sender: Baptiste Daroussin Date: Thu, 2 Apr 2015 20:39:40 +0200 From: Baptiste Daroussin To: Zenny Subject: Re: pkgng cannot fetch from PACKAGESITE with nanobsd.sh in FreeBSD 10.1 Message-ID: <20150402183939.GC30115@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bqPh76xD3yWylqqJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-stable@freebsd.org" 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 18:39:46 -0000 --bqPh76xD3yWylqqJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 01, 2015 at 12:48:21PM +0200, Zenny wrote: > Hi, >=20 > 1. In order to comply with the pkgng in FreeBSD 10.1, the following chang= es > were appended to my customized nanobsd.conf: >=20 > 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 > > >=20 > Certainly I had tuned chrooted /etc/resolv.conf with: >=20 > #tune resolv.conf > > echo ' > > nameserver 8.8.8.8 > > nameserver 8.8.4.4 > > ' >> ${NANO_WORLDDIR}/etc/resolv.conf > > This tuning is not needed you can specify the nameserver on pkg command lin= e: pkg -o NAMESERVER=3D"8.8.8.8" -c ${NANO_WORLDDIR} update You can also simply add NAMESERVER in your environement variable >=20 > Still the package cannot be downloaded from PACKAGESITE and got built into > nanobsd image. >=20 > 2. Also tried with: >=20 > cust_pkg() { > > pkg -c ${NANO_WORLDDIR} update > > pkg -c ${NANO_WORLDDIR} install nano > > pkg -c ${NANO_WORLDDIR} clean > > } > > > > customize_cmd cust_pkg > > >=20 > Both ways, I get the same error that reads as of below: >=20 > 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... > > >=20 Is pkg installed on your host? it seems not? Best regards, Bapt --bqPh76xD3yWylqqJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEUEARECAAYFAlUdjOsACgkQ8kTtMUmk6EyjkgCWP+eXsmdMHolPSXrVzrZyKy/J UwCgp6xy/VLjUFhjqY9AahOj9CdZrU0= =Aw66 -----END PGP SIGNATURE----- --bqPh76xD3yWylqqJ--