Re: Upgrade 15.0-PRERELEASE to 15.0-RELEASE

From: Marek Zarychta <zarychtam_at_plan-b.pwste.edu.pl>
Date: Sun, 07 Dec 2025 22:13:52 UTC
W dniu 7.12.2025 o 22:34, vermaden pisze:
> Thank You for finding that stupid mistake of mine ... for the record - I needed to create 'trusted certificates' from 15.0-RELEASE system - just adding it here because it my help some ...

It is expected that upgrading from PRERELEASE to 15.0-RELEASE will fail. 
For more insight please check [1].

Thank you for sharing this howto with a workaround with the community !

Cheers

Marek

[1]: 
https://github.com/freebsd/freebsd-src/commit/a3b0902d73901e7243103e60cf78c53cd7f566a1

>
> # pkg update
> 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...
> Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
> Fetching data.pkg: 100%   80 KiB  81.6kB/s    00:01
> pkg: Error opening the trusted directory /usr/share/keys/pkgbase-15/trusted
> pkg: Error loading trusted certificates
> FreeBSD-base repository is up to date.
> All repositories are up to date.
>
> # cd /usr/share/keys/pkgbase-15/trusted
> cd: no such file or directory: /usr/share/keys/pkgbase-15/trusted
>
> # mkdir -pv /usr/share/keys/pkgbase-15/trusted
> /usr/share/keys/pkgbase-15
> /usr/share/keys/pkgbase-15/trusted
>
> # cat << EOF > /usr/share/keys/pkgbase-15/trusted/awskms-15
> function: "sha256"
> fingerprint: "1d7b45d20fa8d6ed26f9b4a13ac81a6b5df860b9fe644d07b87e92298ba72595"
> EOF
>
> # cat << EOF > /usr/share/keys/pkgbase-15/trusted/backup-signing-15
> function: "sha256"
> fingerprint: "56a77bdcb6c3cf7984729c6138bd5617c24aa0d466b3b604c96205b2c5629f3c"
> EOF
>
> # pkg update
> 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...
> Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
> Fetching data.pkg: 100%   80 KiB  81.6kB/s    00:01
> Processing entries:   0%
> Newer FreeBSD version for package FreeBSD-zlib-dbg:
> To ignore this error set IGNORE_OSVERSION=yes
> - package: 1500068
> - running userland: 1500063
> Ignore the mismatch and continue? [y/N]: y
> Processing entries: 100%
> FreeBSD-base repository update completed. 496 packages processed.
> All repositories are up to date.
>
> # pkg upg
> 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...
> FreeBSD-base repository is up to date.
> All repositories are up to date.
> Checking for upgrades (391 candidates): 100%
> Processing candidates (391 candidates): 100%
> The following 283 package(s) will be affected (of 0 checked):
>
> New packages to be INSTALLED:
>          FreeBSD-bluetooth-lib: 15.0 [FreeBSD-base]
>          FreeBSD-bzip2: 15.0 [FreeBSD-base]
>          FreeBSD-clibs-lib32: 15.0 [FreeBSD-base]
>          FreeBSD-ctf-lib: 15.0 [FreeBSD-base]
>          FreeBSD-flua: 15.0 [FreeBSD-base]
>          FreeBSD-ncurses-lib: 15.0 [FreeBSD-base]
>          FreeBSD-zfs-lib: 15.0 [FreeBSD-base]
>          FreeBSD-zlib: 15.0 [FreeBSD-base]
>
> Installed packages to be UPGRADED:
>          FreeBSD-acct: 15.snap20250819212823 -> 15.0 [FreeBSD-base]
>          FreeBSD-acct-dbg: 15.snap20250819212823 -> 15.0 [FreeBSD-base]
>          FreeBSD-acpi: 15.snap20250821215856 -> 15.0 [FreeBSD-base]
>          (...)
>          FreeBSD-zfs-dbg: 15.snap20250824225045 -> 15.0 [FreeBSD-base]
>          FreeBSD-zfs-dev: 15.snap20250824225045 -> 15.0 [FreeBSD-base]
>          FreeBSD-zoneinfo: 15.snap20250808125411 -> 15.0 [FreeBSD-base]
>
> Number of packages to be installed: 8
> Number of packages to be upgraded: 275
>
> The operation will free 92 MiB.
> 722 MiB to be downloaded.
>
> Proceed with this action? [y/N]:
>
>
>
> Thanks,
> vermaden
>
>
>
>
>
>
>
>
>
>
>
> Temat: Re: Upgrade 15.0-PRERELEASE to 15.0-RELEASE
> Data: 2025-12-07 22:13
> Nadawca: "Jason Tubnor" &lt;jason@tubnor.net>
> Adresat: freebsd-stable@freebsd.org; freebsd-pkgbase@freebsd.org; "vermaden" &lt;vermaden@interia.pl>;
>
>> "vermaden" vermaden@interia.pl – 8 December 2025 7:32 AM
>>
>>> FreeBSD-base: {
>>> url: "https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
>>> mirror_type: "none",
>>> signature_type: "fingerprints",
>>> fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
>>> enabled: no
>>> }
>> Hi Vermaden,
>>
>> You'll want to enable the repo 'enable: yes' and make sure the
> /usr/local/etc/pkg/repos/FreeBSD.conf has been removed (the whole
> /usr/local/etc/pkg directory can be removed unless you have custom stuff).
>> pkg update
>>
>> again and you should be good.
>>
>> Cheers.
>>