I have a pkgbasifyed 14.3-p6 system. I tried to upgrade following the handbook. https://docs.freebsd.org/en/books/handbook/cutting-edge/#pkgbase-major-zfs
My /usr/local/etc/pkg/repos/FreeBSD-base.conf reads
I created a 15.0-RELEASE boot environment, created a /mnt/update directory, and mounted the boot environment with
I then ran
The result was
I'm not sure of the error. Should I run pkg bootstrap -f as suggested? Is the trouble with no trusted keys found, and if so, what should I change to get trusted keys?
The handbook says after this, chroot and run freebsd-version--unsurprisingly it was still at 14.3 So, I'm not sure what needs to be changed here.
Thanks for any input. I have read various threads on upgrading and have seen some, but not all, need to change the fingerprint url, but I'm not sure of what to do next.
I think the next step is pkg bootstrap, but thought I'd ask first, as I *vaguely* remember someone saying don't do that, though I can't find the post and don't know if it's applicable to my situation or not.
My /usr/local/etc/pkg/repos/FreeBSD-base.conf reads
Code:
FreeBSD-base: {
url = "pkg+https://pkg.freebsd.org/${ABI}/base_release_0";
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
I created a 15.0-RELEASE boot environment, created a /mnt/update directory, and mounted the boot environment with
bectl mount 15.0-RELEASE /mnt/upgradeI then ran
env ABI=FreeBSD:15:amd64 pkg-static -c /mnt/upgrade upgrade -r FreeBSD-baseThe result was
Code:
env ABI=FreeBSD:15:amd64 pkg-static -c /mnt/upgrade upgrade -r FreeBSD-base
pkg-static: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
pkg-static: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended
Updating FreeBSD-base repository catalogue...
pkg-static: Repository FreeBSD-base has a wrong packagesite, need to re-create database
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 80 KiB 81.6kB/s 00:01
pkg-static: No trusted public keys found
FreeBSD-base repository is up to date.
FreeBSD-base is up to date.
pkg-static: Repository FreeBSD-base has a wrong packagesite, need to re-create database
pkg-static: Repository FreeBSD-base cannot be opened. 'pkg update' required
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
I'm not sure of the error. Should I run pkg bootstrap -f as suggested? Is the trouble with no trusted keys found, and if so, what should I change to get trusted keys?
The handbook says after this, chroot and run freebsd-version--unsurprisingly it was still at 14.3 So, I'm not sure what needs to be changed here.
Thanks for any input. I have read various threads on upgrading and have seen some, but not all, need to change the fingerprint url, but I'm not sure of what to do next.
I think the next step is pkg bootstrap, but thought I'd ask first, as I *vaguely* remember someone saying don't do that, though I can't find the post and don't know if it's applicable to my situation or not.