Re: pkg update broke

"William F. Dudley Jr." <[email protected]> Mon, 6 Jul 2026 00:06:31 -0400
Newsgroups gmane.os.freebsd.questions
Message-ID <[email protected]>
Steve,

The clock is correct.

pkg-static bootstrap -f

made no improvement.  pkg update still fails as before.

Interestingly, the position of the "-f" is important:

pkg-static -f bootstrap
pkg-static: illegal option -- f
pkg-static: Invalid argument provided

Thanks,
Bill Dudley

On 7/6/26 12:02 AM, Steve Rikli wrote:
> 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.