From owner-freebsd-stable@FreeBSD.ORG Wed Apr 1 10:48:22 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 93474318 for ; Wed, 1 Apr 2015 10:48:22 +0000 (UTC) Received: from mail-ob0-x234.google.com (mail-ob0-x234.google.com [IPv6:2607:f8b0:4003:c01::234]) (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 54226926 for ; Wed, 1 Apr 2015 10:48:22 +0000 (UTC) Received: by obcjt1 with SMTP id jt1so73078466obc.2 for ; Wed, 01 Apr 2015 03:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=KohFHFHqGeTgaTNaX70HBSlnYLGkKVtUiy0KbvMeLPQ=; b=eWjbHscmpU6ZrMfssMnzAm2xmFYYeDdeJucJy2K+SieH07EgVDJ9Qb0cOicJ7XZYW8 prgvuUdCEQ/jAt0R4rHdQ6NVTikWBs+gZekKJuyWnjs7n0CC4nB0ygonY4twQyAcpR3T raiyzpaM/0BBZF3TslWWSNU9H66um+omiO2J3wDoSM4AVax0FX7r0A1nbO12ysk2a8EG hGoCHHgItuy/cOA4txVjtJcYVfOToIRMJN4EFYi5tLffuJ58hYwHkEXBnd6dTTE/nt1a OkPl5uTwycKES824JZ2KVEk/Y63byIe2TjTcBOBdLIk0wofOU95iNvVIeNuByO92mbxj pLrw== MIME-Version: 1.0 X-Received: by 10.60.77.38 with SMTP id p6mr35065194oew.75.1427885301520; Wed, 01 Apr 2015 03:48:21 -0700 (PDT) Received: by 10.202.177.136 with HTTP; Wed, 1 Apr 2015 03:48:21 -0700 (PDT) Date: Wed, 1 Apr 2015 12:48:21 +0200 Message-ID: Subject: 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-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Wed, 01 Apr 2015 10:48:22 -0000 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