Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2018 19:41:06 +0000
From:      Rafal Lukawiecki <raf@rafal.net>
To:        Julian Elischer <julian@freebsd.org>
Cc:        Colin Percival <cperciva@tarsnap.com>, freebsd-cloud@freebsd.org
Subject:   Re: AMI building AMI
Message-ID:  <77A688A9-6272-4FC6-89DF-4F9231B7B3CE@rafal.net>
In-Reply-To: <50f75b01-2ea3-f7fd-24a6-65a4d64ae16d@freebsd.org>
References:  <085D225B-2E99-4540-B693-223087B14A27@rafal.net> <0100016099578ea7-02da1d5c-997d-47be-9cd8-dc6b75bbeda6-000000@email.amazonses.com> <8BCB67B8-DE56-491A-8E6A-95AFB83F71D6@rafal.net> <0100016099671dff-32d986bf-3979-40a3-accf-4d17c2020403-000000@email.amazonses.com> <8538BFB9-B82C-4520-ADB3-E25040EA1B30@rafal.net> <01000160a0283ad5-12b330d3-3f4b-43ea-9cdc-2524f5f42f4a-000000@email.amazonses.com> <DC1A9FE3-DF1F-4A87-8539-888D09CBA3EA@rafal.net> <004116c5-0938-5570-f119-fdc21e91b2ad@freebsd.org> <559A9E86-6E97-4A8D-96CC-95FC9180A483@rafal.net> <50f75b01-2ea3-f7fd-24a6-65a4d64ae16d@freebsd.org>

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


> On 2 Jan 2018, at 19:35, Julian Elischer <julian@freebsd.org> wrote:
>> $ pkg -c /mnt install awscli
>> Updating FreeBSD repository catalogue...
>> pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/meta.txz: <http://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/meta.txz:>; No address record
>> repository FreeBSD has no meta file, using default settings
>> pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/packagesite.txz: <http://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/packagesite.txz:>; No address record
>> Unable to update repository FreeBSD
>> Error updating repositories!
>
> this means that either in the jail/chroot or in your machine, dns lookups are failing.. did you remember to copy /etc/resolv.conf into the chroot/jail?

Bingo. Copying it solved the problem. Many thanks, Julian!

>>
>> $ pkg -c /mnt add awscli
>> pkg: awscli: No such file or directory
>> pkg: Was 'pkg install awscli' meant?
>> Failed to install the following 1 package(s): awscli
>>
>> Many thanks, everyone.
>> Rafal
> pkg install fetches over the network, pkg add installs a prefetched file,
>
> so I am guessing that if you use add, and point the preloaded file it may work.. Of course pkg may be smart enough to find the cached copy itself, but it still seems to want to look at the network.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77A688A9-6272-4FC6-89DF-4F9231B7B3CE>