I recently upgraded from FreeBSD 11.1-release to 11.2 following the handbook, I’m now getting : size mismatch, cannot continue on some of the jails when attempting to update and install packages.
For example when I attempt to install curl
in an effort to resolve the issue I tried the below commands which seems to have made matters worse
now when I run pkg update
Even pressing no
makes no difference and ignoring this error does not seem
like a great idea, also found a “workaround” that suggested
changing the kernel number in pkg.conf which seems like it would
cause additional issues with packages in the future.
Additional info that
maybe helpful:
uname results from one of the effected jails
and the result when running from host
What is the best way to address this issue?
Thanks,
Tim
For example when I attempt to install curl
Bash:
Fetching curl-7.61.0.txz: 100% 1 MiB 1.3MB/s 00:01
pkg: cached package curl-7.61.0: size mismatch, fetching from remote
[2/3] Fetching curl-7.61.0.txz: 100% 1 MiB 1.3MB/s 00:01
pkg: cached package curl-7.61.0: size mismatch, cannot continue
Bash:
pkg clean
rm -rf /var/cache/pkg/*
pkg update -f
rm /var/db/pkg/repo-*.sqlite
pkg bootstrap -f
now when I run pkg update
Bash:
pkg update
Updating FreeBSD
repository catalogue...
pkg: Repository
FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite)
failed: No such file or directory
Fetching meta.txz:
100% 940 B 0.9kB/s 00:01
Fetching
packagesite.txz: 100% 6 MiB 2.2MB/s 00:03
Processing entries:
0%
Newer FreeBSD
version for package picmi-kde4:
To ignore this error
set IGNORE_OSVERSION=yes
- package: 1101001
- running kernel:
1100122
Allow missmatch
now?[Y/n]:
Even pressing no
makes no difference and ignoring this error does not seem
like a great idea, also found a “workaround” that suggested
changing the kernel number in pkg.conf which seems like it would
cause additional issues with packages in the future.
Additional info that
maybe helpful:
uname results from one of the effected jails
Code:
uname -U && uname -K
1100122
1102000
and the result when running from host
Bash:
uname -U && uname -K
1102000
1102000
What is the best way to address this issue?
Thanks,
Tim