FreeBSD 14.4 - pkg is slow to update database

So I have just installed FreeBSD 14.4-release-p7 (ok, I installed 14.4-release and used freebsd-update to get to -p7) on a new partition on the SSD of my workstation.
And suddenly, pkg is slow to update it's database (the "processing entries" part), fetching takes a little less than ten seconds, but look at this
Code:
root@kg-core2:~ # time pkg upgrade -n
Updating FreeBSD repository catalogue...
Fetching data: 100%   540 MiB  62.9 MB/s    00:09    
Processing entries:  76%
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!
Checking for upgrades (4 candidates): 100%
Processing candidates (4 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
      224.94 real       199.95 user         6.56 sys
that's around 3 minutes!
And it complains that it can't update the FreeBSD repository. What gives?
It wasn't that slow when I installed, it has just become slow now.
Recap:
Code:
root@kg-core2:~ # freebsd-version -ku
14.4-RELEASE-p7
14.4-RELEASE-p7
root@kg-core2:~ # uname -a
FreeBSD kg-core2.kg4.no 14.4-RELEASE-p7 FreeBSD 14.4-RELEASE-p7 #0 -dirty: Tue Jun 30 08:53:56 UTC 2026     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@kg-core2:~ # pkg info pkg\*
pkg-2.7.5
pkgconf-2.4.3_1,1
date and time is synced
Code:
root@kg-core2:~ # ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 192.36.143.130   2 u  114  128  377    0.064   +2.125   0.108
and I did 'certctl rehash' (it shouldn't matter, it fetches files all right)
the repo directories
Code:
root@kg-core2:~ # ls -l /var/db/pkg /var/db/pkg/repos
/var/db/pkg:
total 106788
-rw-r--r--  1 root wheel 109289472 Jul 21 23:19 local.sqlite
drwxr-xr-x  4 root wheel       512 Jul 21 19:30 repos

/var/db/pkg/repos:
total 8
drwxr-xr-x  2 root wheel 512 Jul 21 23:37 FreeBSD
drwxr-xr-x  2 root wheel 512 Jul 21 19:30 FreeBSD-kmods
this one is new for me.
 
I am seeing this as well, maybe even more so. Just ran pkg update, and the download took much more time, as did the processing. It seems now the download was 540MiB, and the processing did not finish successfully:
Code:
Updating FreeBSD repository catalogue...
Fetching data: 100%   540 MiB   2.4 MB/s    03:52    
Processing entries:  76%
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!

On a different host, same command but different error (oops, ran out of space on /tmp):
Code:
Updating FreeBSD repository catalogue...
Fetching data: 100%   540 MiB   5.4 MB/s    01:44    

/tmp: write failed, filesystem is full
pkg: Error extracting the archive: 'Write error'
pkg: No signature found
Fetching packagesite: 100%   540 MiB   3.9 MB/s    02:24    

/tmp: write failed, filesystem is full
pkg: Error extracting the archive: 'Write error'
pkg: No signature found
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!

Both systems are 14.4-RELEASE-p7

What's up with the repository?
 
Back
Top