Solved PKG problem: libssl.so.111 required by libfetch.so.6

Hello experts,

I have a nginx jail (created with ezjail), but every time I want to install a pkg package I get this error message:
Code:
Shared object "libssl.so.111" not found, required by "libfetch.so.6"

Reading similar issues posted on this forum, they generally relate to a mismatch between the jail and the host system, but as far as I can see they're both the same:
Host uname -a
Code:
# uname -a
FreeBSD  12.1-RELEASE-p1 FreeBSD 12.1-RELEASE-p1 GENERIC  amd64

Jail uname -a
Code:
root@nginx:~ # uname -a
FreeBSD nginx 12.1-RELEASE-p1 FreeBSD 12.1-RELEASE-p1 GENERIC  amd64

The host system has been updated with
Code:
# freebsd-update fetch install
and ezjail with
Code:
# ezjail-admin update -u

I have tried
- pkg-static install -f pkg
- to change the package 'cut-off' from Quarterly to Latest in /etc/pkg/FreeBSD.conf (both on the host and jail)
- /usr/sbin/pkg bootstrap -f (in jail)

But whatever I do, the above libssl.so.111 error is not going away in the jail.

Any ideas where the problem is / could be, and how to fix this?

Thanks, Saji
 
Reading similar issues posted on this forum, they generally relate to a mismatch between the jail and the host system, but as far as I can see they're both the same:
Jails don't have a kernel, they run on the host's kernel. So don't look at the uname(1) output, it's always the same because you're looking at the kernel (there's only one kernel). Check with freebsd-version(1).
 
I'm having the same issue, but don't use ezjail. I'm using Freenas which uses iocage instead.

Does anyone know how to correct the base jail with either iocage or the base jail tooling?
 
Back
Top