Solved Unable to use pkg after upgrade 11.0 -> 12.2

After digging out an old disk which had FreeBSD installed, I thought I'd check what was installed and update it if necessary... First installed misc/mc, as I'm lost without it, then found that FreeBSD 11.0 was installed so decided to upgrade to 12.2. After the upgrade I rebooted twice running freebsd-update install then thought about upgrading my installed pkgs, but unfortunately I can't run pkg.

It results in:-

Less:
ld-elf.so.1: Shared object "libarchive.so.6" not found, required by "pkg"

After some investigation, it looks like /usr/local/sbin/pkg is causing the problem. /usr/sbin/pkg requires libarchiv.so.7 which does not exist.

What to do?
 
Back
Top