pkg update issue

0 views
Skip to first unread message

Budi Janto

unread,
Dec 11, 2025, 6:02:36 AM (8 days ago) Dec 11
to FreeBSD questions
Hi,



I need help about updating packages.

# pkg update -f
Updating FreeBSD repository catalogue...
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/meta.conf: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/meta.txz: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/data.pkg: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/data.tzst: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/packagesite.pkg: Not
found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/packagesite.tzst: Not
found
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/meta.conf:
Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/meta.txz: Not
found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/data.pkg: Not
found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/data.tzst:
Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/packagesite.pkg:
Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/packagesite.tzst:
Not found
Unable to update repository FreeBSD-kmods
Error updating repositories!

# cat /etc/pkg/FreeBSD.conf
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-kmods: {
url:
"pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}

# freebsd-version -kru
14.3-RELEASE-p5
14.3-RELEASE-p5
14.3-RELEASE-p6

Thanks.


--
Regards,
Budi Janto

OpenPGP_signature.asc

Marco Moock

unread,
Dec 11, 2025, 6:11:23 AM (8 days ago) Dec 11
to ques...@freebsd.org
Am 11.12.2025 um 18:01:25 Uhr schrieb Budi Janto:

> https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/meta.conf: Not
> found pkg: Failed to fetch

I've now tested to fetch that file using curl, that worked.

Please test that too to see if a connection error occurs.

--
Gruß
Marco

Send unsolicited bulk mail to 1765472...@cartoonies.org

Budi Janto

unread,
Dec 11, 2025, 7:01:21 AM (8 days ago) Dec 11
to Marco Moock, FreeBSD questions
On 12/11/25 6:10 PM, Marco Moock wrote:
> Am 11.12.2025 um 18:01:25 Uhr schrieb Budi Janto:
>
>> https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/meta.conf: Not
>> found pkg: Failed to fetch
>
> I've now tested to fetch that file using curl, that worked.
>
> Please test that too to see if a connection error occurs.

# curl https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/meta.conf
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

# 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 .

# ping -c 5 203.80.16.152
PING 203.80.16.152 (203.80.16.152): 56 data bytes
64 bytes from 203.80.16.152: icmp_seq=0 ttl=53 time=22.357 ms
64 bytes from 203.80.16.152: icmp_seq=1 ttl=53 time=22.537 ms
64 bytes from 203.80.16.152: icmp_seq=2 ttl=53 time=22.578 ms
64 bytes from 203.80.16.152: icmp_seq=3 ttl=53 time=22.450 ms
64 bytes from 203.80.16.152: icmp_seq=4 ttl=53 time=22.463 ms

--- 203.80.16.152 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.357/22.477/22.578/0.076 ms

# tcptraceroute 203.80.16.152 443
Selected device tun0, address 202.138.247.170, port 25998 for outgoing
packets
Tracing the path to 203.80.16.152 on TCP port 443 (https), 30 hops max
1 202.138.241.0 1.033 ms 1.232 ms 1.099 ms
2 gw-bdg.melsa.net.id (202.138.225.61) 1.287 ms 1.301 ms 1.320 ms
3 103.113.48.144 2.001 ms 2.110 ms 2.068 ms
4 125.208.158.89.cbn.net.id (125.208.158.89) 3.660 ms 3.994 ms
3.996 ms
5 121.100.4.237 4.354 ms 4.406 ms 4.132 ms
6 121.100.7.178 15.839 ms 15.789 ms 16.032 ms
7 * * *
8 223.28.47.182 81.404 ms 87.299 ms 79.483 ms
9 * * *
10 223.28.47.230 73.967 ms 75.075 ms 85.183 ms
11 202.185.6.218 21.829 ms 21.795 ms 22.040 ms
12 * * *
13 * * *
14 pkg0.kul.freebsd.org (203.80.16.152) [open] 22.755 ms 22.152 ms
22.500 ms


I try to use another ISP:
# curl https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/meta.conf
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

It looks like the results are similar. Thanks dude.



--
Regards,
Budi Janto
OpenPGP_signature.asc

Marco Moock

unread,
Dec 11, 2025, 8:55:59 AM (8 days ago) Dec 11
to FreeBSD questions
On 11.12.2025 18:59 Budi Janto <budi...@studiokaraoke.co.id> wrote:

> On 12/11/25 6:10 PM, Marco Moock wrote:
> > Am 11.12.2025 um 18:01:25 Uhr schrieb Budi Janto:
> >
> >> https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/meta.conf: Not
> >> found pkg: Failed to fetch
> >
> > I've now tested to fetch that file using curl, that worked.
> >
> > Please test that too to see if a connection error occurs.
>
> # curl
> https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3/meta.conf
> <html> <head><title>404 Not Found</title></head>
> <body>
> <center><h1>404 Not Found</h1></center>
> <hr><center>nginx</center>
> </body>
> </html>
>
> # 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 .

I get different results here, so in use another mirror (this is
intended to spread the load).
In my opinion, this inconsistency between the mirrors is an issue
itself.

Although, 14.0 is EoL. Please check which version you are running.


--
kind regards
Marco

Send spam to abfall17...@stinkedores.dorfdsl.de

Matthias Fechner

unread,
Dec 11, 2025, 9:58:47 AM (8 days ago) Dec 11
to Budi Janto, FreeBSD questions
Am 11.12.2025 um 13:01 schrieb Budi Janto:
> FreeBSD: {
should be:

FreeBSD-ports: {


> FreeBSD-kmods: {

should be:
FreeBSD-ports-kmod: {


Matthias



Matthias Fechner

unread,
Dec 11, 2025, 10:00:04 AM (8 days ago) Dec 11
to Budi Janto, FreeBSD questions
sry only for FreeBSD 15, for 14 it is ok.


--
Matthias Fechner
Dipl. Ingenieur (FH)
Master of Systems Engineering


Budi Janto

unread,
Dec 11, 2025, 6:13:47 PM (7 days ago) Dec 11
to Matthias Fechner, FreeBSD questions
On 12/11/25 9:59 PM, Matthias Fechner wrote:
> Am 11.12.2025 um 16:58 schrieb Matthias Fechner:
>> Am 11.12.2025 um 13:01 schrieb Budi Janto:
>>> FreeBSD: {
>> should be:
>>
>> FreeBSD-ports: {
>>
>>
>>> FreeBSD-kmods: {
>>
>> should be:
>> FreeBSD-ports-kmod: {
>
> sry only for FreeBSD 15, for 14 it is ok.
>
>

# freebsd-version -kru
15.0-RELEASE
15.0-RELEASE
15.0-RELEASE

# pkg update -f
Updating FreeBSD-ports repository catalogue...
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.conf: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.txz: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/data.pkg: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/data.tzst: Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/packagesite.pkg: Not
found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/packagesite.tzst: Not
found
Unable to update repository FreeBSD-ports
Updating FreeBSD-ports-kmods repository catalogue...
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/meta.conf:
Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/meta.txz: Not
found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/data.pkg: Not
found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/data.tzst:
Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/packagesite.pkg:
Not found
pkg: Failed to fetch
https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/packagesite.tzst:
Not found
Unable to update repository FreeBSD-ports-kmods
Error updating repositories!

# cat /etc/pkg/FreeBSD.conf
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD-ports: { enabled: no }" >
/usr/local/etc/pkg/repos/FreeBSD.conf
# echo "FreeBSD-ports-kmods: { enabled: no }" >>
/usr/local/etc/pkg/repos/FreeBSD.conf
#
# Note that the FreeBSD-base repository is disabled by default.
#

FreeBSD-ports: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-ports-kmods: {
url:
"pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-base: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
enabled: no
}

# 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

404 Not Found

404 Not Found
nginx


fetch: https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.conf: Not
Found

FreeBSD 15.0 get the similar issue here.



--
Regards,
Budi Janto
OpenPGP_signature.asc

Matthias Fechner

unread,
Dec 12, 2025, 12:11:40 AM (7 days ago) Dec 12
to Budi Janto, FreeBSD questions
Am 12.12.2025 um 01:12 schrieb Budi Janto:
> # freebsd-version -kru
> 15.0-RELEASE
> 15.0-RELEASE
> 15.0-RELEASE
>
ok, then you must use the new naming I mentioned.


> # 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
>
> 404 Not Found
>
> 404 Not Found
> nginx
>
>
> fetch: https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.conf:
> Not Found

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 .

Matthias



Budi Janto

unread,
Dec 12, 2025, 2:59:36 AM (7 days ago) Dec 12
to Matthias Fechner, FreeBSD questions
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
OpenPGP_signature.asc

Matthias Fechner

unread,
Dec 12, 2025, 3:06:28 AM (7 days ago) Dec 12
to Budi Janto, FreeBSD questions
Am 12.12.2025 um 09:58 schrieb Budi Janto:
> FreeBSD: {

if you are on FreeBSD version 15, you must replace `FreeBSD` with
`FreeBSD-ports` and do not modify any file for pkg in /etc, do your
modification in /usr/local/etc.
So copy the original files you want to modify into /usr/local/etc (with
corresponding directory structure) and modify it there.

If https is not working, you really should be very careful with what you
download.
pkg is doing a verification using the fingerprints, but this is an
indication that something is really broken on your site or on the
network to the servers.
Not that you have there some man-in-the-middle problem that modifies the
traffic.


Matthias


Dag-Erling Smørgrav

unread,
Dec 12, 2025, 6:59:02 PM (6 days ago) Dec 12
to Budi Janto, Matthias Fechner, FreeBSD questions
This will not work. If you want to force a specific server to be used
for pkg.freebsd.org, you will have to add entries to /etc/host.conf.

> I tried to use HTTP instead of HTTPS in /etc/pkg/FreeBSD.conf:
> FreeBSD: {
> [...]
> FreeBSD-kmods: {
> [...]

These are not the correct repository names for FreeBSD-15, meaning your
/etc/pkg/FreeBSD.conf has been tampered with.

> # 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%

If https doesn't work but http does, the reason is almost certainly that
your clock is wrong. Run `ntpdate freebsd.pool.ntp.org` and try again
with the correct configuration. And please enable the ntpd service so
your clock stays synchronized going forward.

Note that if your clock is off by a _lot_, DNS may also stop working.

DES
--
Dag-Erling Smørgrav - d...@FreeBSD.org

Reply all
Reply to author
Forward
0 new messages