Re: pkg update issue

From: Budi Janto <budijanto_at_studiokaraoke.co.id>
Date: Fri, 12 Dec 2025 07:58:14 UTC
On 12/12/25 12:11 PM, Matthias Fechner wrote:
> then there is maybe an issue with the mirror you are using and that 
> mirror is out of sync:
> fetch -v https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.conf
> resolving server address: pkg.freebsd.org:443
> SSL options: 82004850
> Peer verification enabled
> Using OpenSSL default CA cert file and path
> Verify hostname
> TLSv1.3 connection established using TLS_AES_256_GCM_SHA384
> Certificate subject: /CN=pkg.freebsd.org
> Certificate issuer: /C=US/O=Let's Encrypt/CN=E8
> requesting https://pkg.freebsd.org/FreeBSD:15:amd64/quarterly/meta.conf
> remote size / mtime: 179 / 1737583847
> meta.conf                                              179  B 3798 kBps 
>    00s
> 
> Maybe set as an intermediate solution an entry into /etc/hosts?
> 
> For me it is using the following IP:
> host pkg.FreeBSD.org
> pkg.freebsd.org is an alias for pkgmir.geo.freebsd.org.
> pkgmir.geo.freebsd.org has address 85.30.190.140
> pkgmir.geo.freebsd.org mail is handled by 0 .

OK, here we get a different result from the GeoDNS answer.

# host pkg.FreeBSD.org
pkg.FreeBSD.org is an alias for pkgmir.geo.FreeBSD.org.
pkgmir.geo.FreeBSD.org has address 203.80.16.152
pkgmir.geo.FreeBSD.org has IPv6 address 2404:a8:3ff::50:2
pkgmir.geo.FreeBSD.org mail is handled by 0 .

# fetch https://pkgmir.geo.freebsd.org/FreeBSD:15:amd64/quarterly/meta.conf
fetch: 
https://pkgmir.geo.freebsd.org/FreeBSD:15:amd64/quarterly/meta.conf: Not 
Found

I tried to use HTTP instead of HTTPS in /etc/pkg/FreeBSD.conf:
FreeBSD: {
   url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
   mirror_type: "srv",
   signature_type: "fingerprints",
   fingerprints: "/usr/share/keys/pkg",
   enabled: yes
}
FreeBSD-kmods: {
   url: 
"pkg+http://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
   mirror_type: "srv",
   signature_type: "fingerprints",
   fingerprints: "/usr/share/keys/pkg",
   enabled: yes
}

# pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%   10 MiB 415.5kB/s    00:26
Processing entries: 100%
FreeBSD repository update completed. 36643 packages processed.
Updating FreeBSD-kmods repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%   33 KiB  33.7kB/s    00:01
Processing entries: 100%
FreeBSD-kmods repository update completed. 214 packages processed.
All repositories are up to date.

Thanks Matthias.



-- 
Regards,
Budi Janto