install 3rd part packages inside jail


Active Member

Reaction score: 4
Messages: 157

I am using ezjail on my FreeBSD 12.x setup. I am trying to install a package from the web and getting the following error:
root@smokeping:~ # pkg add ""
[smokeping] Fetching download_file?file_path=ookla-speedtest-1.0.0-freebsd.pkg: 100%  520 KiB 532.1kB/s    00:01   
[smokeping] Installing speedtest-
[smokeping] Extracting speedtest-   0%
pkg: Fail to create temporary file: /usr/share/man/man5/.pkgtemp.speedtest.5.sJma0PUoDxkf:Read-only file system
[smokeping] Extracting speedtest- 100%

Failed to install the following 1 package(s):
root@smokeping:~ #
This was the closet thing that I found to a solution so far...

I am using ZFS btw.



Reaction score: 830
Messages: 1,267

/usr/share/man/man5/ must be on a writable mountpoint... You installed a thin jail? Then install that package into the base jail (the one from which the thin jails mount their stuff).
EDIT From the manpage of ezjail(7): The major shortcoming of jails is that each jail has its own copy of the world. This eats disk space, inodes, and more importantly, prevents the sharing of binaries images between jails, thus increasing the memory pressure on the host system. In addition, this causes a major administration headache when comes the time to update the host system, as each jail needs to be updated independently.

Ezjail addresses these problems by creating a single basejail (a read-only nullfs(4) mounted directory) populated with the same binaries as the host system which is then shared across all the other service jails created by ezjail. Is is possible to update the base jail (and thus all the jails) in a single ezjail command.