Re: pkg update broke

Steve Rikli <[email protected]> Sun, 5 Jul 2026 21:02:29 -0700
Newsgroups gmane.os.freebsd.questions
Message-ID <[email protected]>
On Sun, Jul 05, 2026 at 09:37:04PM -0400, William F. Dudley Jr. wrote:
> I am running "FreeBSD 14.3-RELEASE-p16 amd64".
> 
> I did "freebsd-update fetch" followed by "freebsd-update install", and the
> power (and my UPS) failed, I think, during the "freebsd-update install"
> step.
> 
> Now, when I run "pkg update", I get this:
> 
> pkg: Failed to fetch
> https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/meta.conf: SSL peer
> certificate or SSH remote key was not OK
> 
> And identical lines for meta.txz, data.pkg, data.tzst, etc.
> 
> I have a nearly identical machine, and that machine can do pkg update
> successfully.
> 
> I have tried to figure out where pkg stores the SSL certificate or SSH key
> that it's complaining about but have been unsuccessful.  Running "man pkg",
> "man pkg.conf", scanning output of "pkg -vv", running "pkg -f bootstrap" all
> failed to help.
> 
> What is broken and how can I fix it?

Longshot guess: is your system clock time very far off, perhaps?

If you're okay with re-bootstrap, maybe try
   pkg-static -f bootstrap

... rather than the normal 'pkg' command.

Cheers,
sr.