pkg install fails in jail with v 1.8.7

Baptiste Daroussin bapt at FreeBSD.org
Tue Aug 23 15:49:21 UTC 2016


On Mon, Aug 22, 2016 at 02:46:21PM -0400, Thomas Thompson 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.

I have replied on the forum.
Short version: running a 9.3 binary that uses things (discovered at build time)
only available on 9.3 and not on 9.1. The fix: either upgrade your system or
build your on set of packages on 9.1

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-jail/attachments/20160823/41e0b6d0/attachment.sig>


More information about the freebsd-jail mailing list