Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 2015 20:39:40 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Zenny <garbytrash@gmail.com>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: pkgng cannot fetch from PACKAGESITE with nanobsd.sh in FreeBSD 10.1
Message-ID:  <20150402183939.GC30115@ivaldir.etoilebsd.net>
In-Reply-To: <CACuV5sB%2BqECSAii%2BeQgXiMGw2qHuqHWf9UCRQGcaP0N0dgPkxA@mail.gmail.com>
References:  <CACuV5sB%2BqECSAii%2BeQgXiMGw2qHuqHWf9UCRQGcaP0N0dgPkxA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150402183939.GC30115>