Re: Switching pkg from quarterly to latest

"Bobb Shires" <[email protected]> Sun, 24 May 2026 23:46:23 -0400
Newsgroups gmane.os.freebsd.questions
Message-ID <[email protected]>
That was it, thanks Steve!
Contents of my /usr/local/etc/pkg/repos/FreeBSD.conf was the single line
FreeBSD-ports: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest" }
I've replaced it with what you provided and all appears well - repositories updated without complaint.

(that part of the handbook needs work? Or did I skip a crucial step elsewhere?)


On Sun, May 24, 2026, at 23:22, Steve Rikli wrote:
> For starters, let's do the simple thing and check what your new
> pkg config file actually ended up looking like.
>
> Fwiw I've usually had something like this for FreeBSD 14 and earlier:
>
> FreeBSD: {
>   url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
>   mirror_type: "srv",
>   signature_type: "fingerprints",
>   fingerprints: "/usr/share/keys/pkg",
>   enabled: yes
> }
>
> For FreeBSD 15 and newer, where there is new pkgbase as well as pkg,
> I have the same config except the repo name for pkg is "FreeBSD-ports".
>
> I'd expect the 2nd setup to work on 14 as well, but I suspect the
> additional lines after "url:" might be missing from your new file, and
> that may be giving trouble.
>
>
> On Sun, May 24, 2026 at 10:26:28PM -0400, Bobb Shires wrote:
>> I'm on 14.4-RELEASE-p5 and following instructions in section 4.4.2 of the handbook "To switch pkg(8) from Quarterly to Latest run the following commands:"
>> https://docs.freebsd.org/en/books/handbook/ports/#quarterly-latest-branch
>> 
>> The two commands listed appeared to complete normally, however the command
>> # pkg update -f
>> 
>> Gives me this... Help please? What does this mean?
>> Thanks!
>> 
>> === root@monster ~ 2 -> # pkg update -f
>> Updating FreeBSD repository catalogue...
>> Fetching meta.conf: 100%     179 B   0.2 kB/s    00:01    
>> Fetching data: 100%    10 MiB  11.0 MB/s    00:01    
>> Processing entries: 100%
>> FreeBSD repository update completed. 37078 packages processed.
>> Updating FreeBSD-kmods repository catalogue...
>> Fetching meta.conf: 100%     179 B   0.2 kB/s    00:01    
>> Fetching data: 100%    36 KiB  37.0 kB/s    00:01    
>> Processing entries: 100%
>> FreeBSD-kmods repository update completed. 245 packages processed.
>> Updating FreeBSD-ports repository catalogue...
>> pkg: Repository FreeBSD-ports has a wrong packagesite, need to re-create database
>> pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/meta.conf -- pkg+:// implies SRV mirror type
>> pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/meta.txz -- pkg+:// implies SRV mirror type
>> repository FreeBSD-ports has no meta file, using default settings
>> pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/data.pkg -- pkg+:// implies SRV mirror type
>> pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/data.tzst -- pkg+:// implies SRV mirror type
>> pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/packagesite.pkg -- pkg+:// implies SRV mirror type
>> pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/packagesite.tzst -- pkg+:// implies SRV mirror type
>> Unable to update repository FreeBSD-ports
>> Error updating repositories!