pkg install fails in jail with v 1.8.7

Thomas Thompson sdb.tomcat at gmail.com
Tue Aug 23 15:25:48 UTC 2016


Found the issue.  The server in question is running 9.1, while the other
machines are @ 9.3.  I expect the issues to be resolved once I bring the
server up to date with the others.

-T.J.

On Mon, Aug 22, 2016 at 2:46 PM, Thomas Thompson <sdb.tomcat at gmail.com>
wrote:

> Hello,
>
> I've run into an odd problem with pkg v 1.8.7 and jails on a FreeBSD 9.3
> server.  I'm getting the same error as described in this thread from the
> forums:  https://forums.freebsd.org/threads/56490/ where package installs
> fail and report two errors (snipped from jail install logs):
>
> pkg: dup2(rootfd): Invalid argument
>
> pkg: Fail to create /usr: Bad file descriptor
>
> It's not an FS issue as far as I can tell (fsck returns clean), and it
> goes away if I lock the pkg version in the ezjail.current file before doing
> updates and installing new packages:
>
> pkg lock -y pkg
>
> pkg 1.8.7 works fine on another server, and my google-fu isn't finding
> anything obvious.  Any help / pointers here would be greatly appreciated.
> For reference / on the server is ufs.
>
> -T.J.
>


More information about the freebsd-jail mailing list