I use ezjail to manage several jails. Now I've a problem where one of the jail's pkg system is completely broken, while other jails and the host OS's pkg works fine.
Enough said, the surface of the problem is this: in the jail with broken `pkg`:
- The host and all jails are on 11.3-RELEASE-p7 1103000
- The pkg version on the broken jail is 1.13.2 (very strange)
- The pkg version on the host OS and the rest of working jails is 1.14.5
- `which pkg` on all jails show `/usr/sbin/pkg`
- All jails `/usr/sbin` is mounted readonly from host's `/usr/jails/basejail` (how could different jails have different pkg version?)
Enough said, the surface of the problem is this: in the jail with broken `pkg`:
Code:
root@media_server:~ # pkg install curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
curl: 7.69.1 -> 7.71.0
Number of packages to be upgraded: 1
Proceed with this action? [y/N]: y
[media_server] [1/1] Upgrading curl from 7.69.1 to 7.71.0...
[media_server] [1/1] Extracting curl-7.71.0: 0%
pkg: Fail to create /usr/local:Read-only file system <<<<<<<<<<<<<<<<<
[media_server] [1/1] Extracting curl-7.71.0: 100%