I haven't run into this but a segmentation fault wrt to pkg has been reported:
PR 287738; it is now in progress.
What might help, try this first:
sudo pkg upgrade -r FreeBSD pkg
. Then the rest of the upgrades.
Please report back if this works or not.
Note that, when using 14.2-RELEASE, be extra careful to get the latest version (=highest numbered version) of all relevant packages containing kernel modules, such as (graphics) packages like
graphics/drm-61-kmod or packages containing kernel modules for relevant wireless drivers, matched to your specific minor version.
If you built such packages yourself on 14.2-RELEASE, for example
graphics/drm-61-kmod, you'll get the correct version.
If you use packages, you should use the
FreeBSD-kmods
repository; by default, not enabled on 14.2-RELEASE. For information about the
FreeBSD-kmods
, see
thread, message #66 and subsequent messages.
Having an enabled
FreeBSD-kmods
repository, upgrading of packages can be a problem. Using a two-step upgrade process has always worked reliably for me*:
pkg upgrade -r FreeBSD
pkg upgrade -r FreeBSD-kmods
Recently a new pkg version was released:
ports-mgmt/pkg: update to 2.2.1 - 2025-06-27 09:11:01
For the supported 14.2-RELEASE and 14.3-RELEASE it is at the moment only available as a package using
Latest
.
On 14.2-R or 14.3-RELEASE using
Quarterly
:
Rich (BB code):
[0-0] # date -u
Wed Jul 2 06:34:25 UTC 2025
[1-0] # pkg rquery -e '%n = pkg' '[%R] %n %v'
[FreeBSD] pkg 2.2.0
On 14.2-R or 14.3-RELEASE using
Latest
:
Rich (BB code):
[10-0] # pkg rquery -e '%n = pkg' '[%R] %n %v'
[FreeBSD] pkg 2.2.1
With the new quarter 2025Q3 having just started, I'm expecting it to appear on
Quarterly
soon.
___
* EDIT
Note: this is not how it should be; it should be sufficient to just use:
sudo pkg upgrade
Unfortunately, pkg does not handle multiple enabled repositories well in all cases; we're all waiting for this to be resolved.