Date: Sun, 24 May 2026 21:24:29 -0700 From: Steve Rikli <sr@genyosha.net> To: Bobb Shires <bobb@fastmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Switching pkg from quarterly to latest Message-ID: <ahPO_WJSfZSWqg60@dragon.home.genyosha.net> In-Reply-To: <b54ed3e6-d83a-4a3b-8224-e7e74bcfd0cd@app.fastmail.com> References: <7cb31e23-dfd4-4009-b993-87f71d238ea3@app.fastmail.com> <ahPAheT7WoZQTLXH@dragon.home.genyosha.net> <b54ed3e6-d83a-4a3b-8224-e7e74bcfd0cd@app.fastmail.com>
index | next in thread | previous in thread | raw e-mail
I suspect that Handbook command needs adjusting.
E.g. I typically use /etc/pkg/FreeBSD.conf as a template to create a
new /usr/local/etc/pkg/repos/FreeBSD.conf file, either modified manually
if I'm doing something custom, or more typically created with 'sed' if
I'm just switching repos like this.
On Sun, May 24, 2026 at 11:46:23PM -0400, Bobb Shires wrote:
> 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!
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ahPO_WJSfZSWqg60>
