`No trusted public keys found` error while upgrading from FreeBSD 15-p4 to 15.1 using pkgbase

I tried following the instructions for the 15.1 release, for installing using pkgbase. I had for some reason disabled my FreeBSD-base repo in pkg at some point, so I re-enabled it, however after enabling it'd output this message every time I ran any pkg command.

Code:
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
pkg: Repository FreeBSD-base has a wrong packagesite, need to re-create database
Fetching meta.conf: 100%     179 B   0.2 kB/s    00:01
Fetching data: 100%    81 KiB  82.5 kB/s    00:01
pkg: No trusted public keys found
FreeBSD-base repository is up to date.
All repositories are up to date.

This is my configuration for FreeBSD-base in pkg

Code:
FreeBSD-base: {
    url             : "https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

Is it safe to continue following the instructions, and if not how do I fix this?
 
The fingerprints path is wrong. I guess you have a .conf file in /usr/local/ect/pkg/repos/.
Replace its content by:
Code:
FreeBSD-base: { enabled: yes }
 
This is my configuration for FreeBSD-base in pkg
There's more wrong, also the url. Check /etc/pkg/FreeBSD.conf, for FreeBSD-base that should be:
Rich (BB code):
FreeBSD-base: {
  url: "pkg+https://pkgbase.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: no
}
If that is set correctly, then, as mentioned, just enabling FreeBSD-base in /usr/local/etc/pkg/repos/FreeBSD.conf should leave you with the correct settings. Verify that you don't have an interfering /usr/local/etc/pkg/repos/FreeBSD-base.conf, best keep all your user settable pkg .conf settings in one file, unless you have a specific need to do so otherwise.
 
Back
Top