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

sajigol919

New Member

Reaction score: 2
Messages: 9

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
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,074
Messages: 33,623

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).
 
OP
S

sajigol919

New Member

Reaction score: 2
Messages: 9

Thanks.
freebsd-version shows
Code:
12.1-RELEASE-p4
for both host and jail
 

Zirias

Aspiring Daemon

Reaction score: 458
Messages: 961

Well, /usr/lib/libssl.so.111 is part of FreeBSD 12.1, so somehow, your jail got damaged…
 
OP
S

sajigol919

New Member

Reaction score: 2
Messages: 9

Well, /usr/lib/libssl.so.111 is part of FreeBSD 12.1, so somehow, your jail got damaged…
Thanks all for your suggestions and just being there to listen!

Although the host and the jail have the same version according to freebsd-version, I forced the basejail to be updated as per the FreeBSD Handbook (ezjail - 14.6.4.1. Updating the Operating System).

The error has gone now.
 
Top