Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 May 2014 09:49:24 -0400
From:      Fbsd8 <fbsd8@a1poweruser.com>
To:        Andrew Berg <aberg010@my.hennepintech.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bootstrapping  /usr/sbin/pkg inside a jail
Message-ID:  <536A39E4.8090202@a1poweruser.com>
In-Reply-To: <53694241.6050207@my.hennepintech.edu>
References:  <5369407E.9060008@a1poweruser.com> <53694241.6050207@my.hennepintech.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Berg wrote:
> On 2014.05.06 15:05, Fbsd8 wrote:
>> But after starting a jail and issuing the same command I get this
>>
>>
>> jexec dir23 tcsh
>> dir23 /root >/usr/sbin/pkg
>> The package management tool is not yet installed on your system.
>> Do you want to fetch and install it now? [y/N]: y
>> Bootstrapping pkg from 
>> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/Latest/, 
>> please wait...
>> pkg: Error fetching 
>> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/Latest//Latest/pkg.txz: 
>> File unavailable (e.g., file not found, no access)
>> A pre-built version of pkg could not be found for your system.
>> Consider changing PACKAGESITE or installing it from ports
>>
>> Why 2 different URL's?
>>  From inside of a jail how do I install pkg?
 >
 >
> Does your jail have working internet connectivity and DNS resolution?


Yes of course

It's not a question of getting to the internet which ping shows works.
Its that going to 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/Latest/
using a browser or ftp shows that directory path does not exist.

So it all boils down to, where is pkg program getting the url from and 
why is there difference between host and jail?

This is more a pkgng question then a jail question.








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