<div class="bbWrapper">I've created a new plugin jail on 9.2.1. When I try the following command, this is the only response I get:<br />
<br />
<div class="bbCodeBlock bbCodeCode"><div class="type">Code:</div><pre>root@downloaders:/ # pkg install nano
Updating repository catalogue
root@downloaders:/ #</pre></div><br />
<br />
Nothing happens after this. The pkg does not install. I'm not sure what I'm doing wrong.<br />
<br />
Any advice?</div>
<div class="bbWrapper">I appreciate the help but that directly contradicts the documentation here:<br />
<br />
<a href="http://doc.freenas.org/index.php/Installing_non-PBI_Software" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://doc.freenas.org/index.php/Installing_non-PBI_Software</a><br />
<br />
It says not to use pkg_add. Not too sure why this has changed?</div>
<div class="bbWrapper">Hmm, the jail <i>pkg</i> config seems to be broken.<br />
Try this in the jail:<br />
Create file <i>/usr/local/etc/pkg/repos/FreeBSD.conf</i> with this content:<br />
<div class="bbCodeBlock bbCodeCode"><div class="type">Code:</div><pre>FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: yes
}</pre></div></div>
<div class="bbWrapper">I've used pkg install without a problem.. just look at my guide for Minecraft(<a href="http://forums.freenas.org/threads/how-to-install-minecraft-server-in-a-jail.18246/#post-100016" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://forums.freenas.org/threads/how-to-install-minecraft-server-in-a-jail.18246/#post-100016</a>). I did that just last week with 9.2.0. Not upgrading to 9.2.1 at the present time and currently don't even have it on the table.</div>
<div class="bbWrapper">Thanks Dusan. I will try this in a minute. Problem is now I cannot even create a jail. FreeNAS crashes whenever it tries to create one.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 22572" data-quote="cyberjock" data-source="post: 100159"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=100159"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-100159">cyberjock said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
I've used pkg install without a problem.. just look at my guide for Minecraft(<a href="http://forums.freenas.org/threads/how-to-install-minecraft-server-in-a-jail.18246/#post-100016" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://forums.freenas.org/threads/how-to-install-minecraft-server-in-a-jail.18246/#post-100016</a>). I did that just last week with 9.2.0. Not upgrading to 9.2.1 at the present time and currently don't even have it on the table.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote> <br />
<br />
I used it with no issues on 9.2.0. I upgraded to 9.2.1 and all hell has broke loose on new jails.<br />
<br />
pkg install works on 9.2.0<br />
pkg install does not work on 9.2.1<br />
<br />
Creating a new jail also crashes FreeNAS.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 22572" data-quote="cyberjock" data-source="post: 100159"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=100159"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-100159">cyberjock said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
I've used pkg install without a problem.. just look at my guide for Minecraft(<a href="http://forums.freenas.org/threads/how-to-install-minecraft-server-in-a-jail.18246/#post-100016" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://forums.freenas.org/threads/how-to-install-minecraft-server-in-a-jail.18246/#post-100016</a>). I did that just last week with 9.2.0. Not upgrading to 9.2.1 at the present time and currently don't even have it on the table.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote>Of course it works in 9.2.0, this problem is 9.2.1 specific. Possibly a regression caused by: <a href="https://bugs.freenas.org/issues/4092" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://bugs.freenas.org/issues/4092</a>, see <a href="https://bugs.freenas.org/issues/4157" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://bugs.freenas.org/issues/4157</a><br />
<blockquote data-attributes="member: 36311" data-quote="Pouper" data-source="post: 100163"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=100163"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-100163">Pouper said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
pkg install works on 9.2.0<br />
pkg install does not work on 9.2.1
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote>This I can confirm.<br />
<blockquote data-attributes="" data-quote="" data-source=""
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
Creating a new jail also crashes FreeNAS.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote>This works for me. I can create jails on a fresh 9.2.1 install.</div>
<div class="bbWrapper">Thanks Dusan. I'm working on the upgrade from 9.2.0. I figured it would work on a fresh install of 9.2.1. I'm going to try a fresh install of 9.2.1 and then see if I can get your fix to work.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 27981" data-quote="Dusan" data-source="post: 100155"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=100155"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-100155">Dusan said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
Hmm, the jail <i>pkg</i> config seems to be broken.<br />
Try this in the jail:<br />
Create file <i>/usr/local/etc/pkg/repos/FreeBSD.conf</i> with this content:<br />
<div class="bbCodeBlock bbCodeCode"><div class="type">Code:</div><pre>FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
enabled: yes
}</pre></div>
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote> <br />
<br />
Dusan, could you kindly explain how to create this file within a new jail? I only know how to do this with nano (fairly new) and I obviously cannot install nano.</div>
<div class="bbWrapper">Use <i>vi</i>:<br />
<ol>
<li data-xf-list-type="ol"><i>mkdir -p /usr/local/etc/pkg/repos</i></li>
<li data-xf-list-type="ol"><i>vi /usr/local/etc/pkg/repos/FreeBSD.conf</i></li>
<li data-xf-list-type="ol">press <i>i</i> (this enters the input mode)</li>
<li data-xf-list-type="ol">paste the content of the file</li>
<li data-xf-list-type="ol">press <i>Esc</i> (exits the input mode)</li>
<li data-xf-list-type="ol">type <i>:wq </i>and press <i>Enter</i> (this saves the file and quits <i>vi</i>, do not forget to type the colon)</li>
</ol>I just realized you can also edit/create the file from the host. Use the FreeNAS<i> nano</i> to create/edit the file in <i><jail_root>/</i><i>usr/local/etc/pkg/repos</i>, where <i><jail_root</i>> is the directory/dataset that contains all your jails.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 27981" data-quote="Dusan" data-source="post: 100173"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=100173"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-100173">Dusan said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
Use <i>vi</i>:<br />
<ol>
<li data-xf-list-type="ol"><i>mkdir -p /usr/local/etc/pkg/repos</i></li>
<li data-xf-list-type="ol"><i>vi /usr/local/etc/pkg/repos/FreeBSD.conf</i></li>
<li data-xf-list-type="ol">press <i>i</i> (this enters the input mode)</li>
<li data-xf-list-type="ol">paste the content of the file</li>
<li data-xf-list-type="ol">press <i>Esc</i> (exits the input mode)</li>
<li data-xf-list-type="ol">type <i>:wq </i>and press <i>Enter</i> (this saves the file and quits <i>vi</i>, do not forget to type the colon)</li>
</ol>I just realized you can also edit/create the file from the host. Use the FreeNAS<i> nano</i> to create/edit the file in <i><jail_root>/</i><i>usr/local/etc/pkg/repos</i>, where <i><jail_root</i>> is the directory/dataset that contains all your jails.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote> <br />
Perfect. Thank you for the help! Hopefully this can be fixed in the next revision of FreeNAS.</div>
<div class="bbWrapper">Just throwing this out there... When I attempted to make a new jail and use pkg the above did not work. The solution:<br />
<br />
make the url http:// only (not pkg+http)<br />
after this pkg update<br />
upgrade pkg<br />
edit the FreeBSD.conf file again and re-add the pkg+http part<br />
<br />
After I did this it all seemed to work for me. Hopefully it is fixed later.</div>
<div class="bbWrapper">Has anyone been able to get this to work? I tried the methods above only to get<br />
<br />
Updating repository catalogue<br />
pkg: <a href="http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/digests.txz" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/digests.txz</a>: No address record<br />
pkg: Unable to find catalogs</div>
<div class="bbWrapper">It works fine for me when you follow the instructions above about making a FreeBSD.Conf ... After a fresh jail install make the file stated earlier, use http:// instead of pkg+http:// .... update pkg.... then change it to pkg+http afterwards.</div>
<div class="bbWrapper">I seemed to have a broken networking because I could ping google sometimes and then it would stop working. <br />
<br />
I deleted and recreated the jail using a portsjail not a pluginjail then followed Dusan's comments to create the repo file. That worked.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 37138" data-quote="Mace" data-source="post: 100459"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=100459"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-100459">Mace said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
Just throwing this out there... When I attempted to make a new jail and use pkg the above did not work. The solution:<br />
<br />
make the url http:// only (not pkg+http)<br />
after this pkg update<br />
upgrade pkg<br />
edit the FreeBSD.conf file again and re-add the pkg+http part<br />
<br />
After I did this it all seemed to work for me. Hopefully it is fixed later.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote> <br />
That totally fixed it for me! Thanks so much for the info.</div>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.