I have a VM with 14.3-RELEASE-p7, and thought I'd try to use pkgbasify with it. I followed the handbook instructions of making a bectl image called 15.0, then mounting it at /mnt/upgrade. In the past I'd had problems with it being unable to find keys but had found the solution when SirDice pointed me to https://www.freebsd.org/releases/15.0R/relnotes/#upgrade-rc, release notes which gave me the solution to get the right key urls. However, this time, it seems the base urls are off.
My /usr/local/etc/pkg/repos/FreeBSD-base.conf reads
This is what pkgbasify created. So, I tried copying from a machine where I did a successful upgrade. This shows base_release_0 rather than base_release_3.
But even when I do that, when I run, as instructed by the handbook
I get
Per the handbook's instructions I have already locked pkg in the chroot environment. It does running pkg bootstrap -f is recommended, but I remember from my previous update that worked (in that case, the problem was the keys directory) I didn't do that and had no problems. I'm not sure what I've missed here.
This is a VM and just for experimenting, but I'd like to know what I did wrong.
Per the release information page I did
My /usr/local/etc/pkg/repos/FreeBSD-base.conf reads
FreeBSD-base: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_3",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
(I haven't yet fixed the pkg keys line to see if that was still an issue)This is what pkgbasify created. So, I tried copying from a machine where I did a successful upgrade. This shows base_release_0 rather than base_release_3.
But even when I do that, when I run, as instructed by the handbook
Code:
env ABI=FreeBSD:15:amd64 pkg-static -c /mnt/upgrade upgrade -r FreeBSD-base
pkg-static: Repository FreeBSD-base has a wrong packagesite, need to re-create database
pkg-static: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_3/meta.conf: Not found
pkg-static: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_3/meta.txz: Not found
pkg-static: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_3/data.pkg: Not found
pkg-static: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_3/data.tzst: Not found
pkg-static: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_3/packagesite.pkg: Not found
pkg-static: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_3/packagesite.tzst: Not found
Unable to update repository FreeBSD-base
Error updating repositories!
Per the handbook's instructions I have already locked pkg in the chroot environment. It does running pkg bootstrap -f is recommended, but I remember from my previous update that worked (in that case, the problem was the keys directory) I didn't do that and had no problems. I'm not sure what I've missed here.
This is a VM and just for experimenting, but I'd like to know what I did wrong.
Per the release information page I did
Code:
cp /usr/src/usr.sbin/pkg/FreeBSD.conf.quarterly-release \
/etc/pkg/FreeBSD.conf