pkgng cannot fetch from PACKAGESITE with nanobsd.sh in FreeBSD 10.1
Zenny
garbytrash at gmail.com
Sun Apr 5 01:20:20 UTC 2015
On 4/5/15, Zenny <garbytrash at gmail.com> wrote:
> Thanks Brandon.
>
> Yes, I did notice a typo. Missed a 'D' in NANO_WORLDDIR:
> pkg -c ${NANO_WORLDIR} install -fy ${PACKAGELIST}
The above asked to do a 'pkg update', so accordingly, I added to
custom_packages the following:
cust_NANOBSD_packages() {
env SSL_NO_VERIFY_HOSTNAME="true" \
env SSL_NO_VERIFY_PPER="true" \
pkg -c ${NANO_WORLDDIR} -f update
env SSL_NO_VERIFY_HOSTNAME="true" \
env SSL_NO_VERIFY_PPER="true" \
pkg -c ${NANO_WORLDDIR} install -y ${PACKAGELIST}
env SSL_NO_VERIFY_HOSTNAME="true" \
SSL_NO_VERIFY_PEER="true" \
pkg -c ${NANO_WORLDDIR} clean -a -y
rm -f ${NANO_WORLDDIR}/var/db/pkg/repo-*.sqlite
}
But it fails with:
+ env SSL_NO_VERIFY_HOSTNAME=true env SSL_NO_VERIFY_PPER=true pkg -c
/usr/obj/nanobsd.NANOBSD-PFS//_.w -f update
pkg: illegal option -- f
Updating FreeBSD repository catalogue...
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/meta.txz: No address record
pkg: repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/packagesite.txz:
No address record
pkg: Unable to update repository FreeBSD
hmmmm....
>
> /z
>
>
> On 4/5/15, Brandon Allbery <allbery.b at gmail.com> wrote:
>> On Sat, Apr 4, 2015 at 8:26 PM, Zenny <garbytrash at gmail.com> wrote:
>>
>>> + cust_NANOBSD_packages
>>> + env SSL_NO_VERIFY_HOSTNAME=true env SSL_NO_VERIFY_PPER=true pkg -c
>>> install -fy nano
>>> pkg: illegal option -- f
>>> pkg: illegal option -- y
>>> pkg: chroot failed!
>>>
>>> When I install with -y flag on the host node, it works fine, but
>>> causing problem only in the chrooted environment. Where did I get
>>> wrong? Thanks in advance.
>>>
>>
>> Notice that ${NANO_WORLDDIR} didn't substitute anything; it used
>> "install"
>> as the chroot (which is why it failed) and -fy as global options instead
>> of
>> options to the "install" command it didn't see because -c ate it.
>>
>> --
>> brandon s allbery kf8nh sine nomine
>> associates
>> allbery.b at gmail.com
>> ballbery at sinenomine.net
>> unix, openafs, kerberos, infrastructure, xmonad
>> http://sinenomine.net
>>
>
More information about the freebsd-stable
mailing list