Getting Timeout was reached when running pkg

Hello Folks,

I'm looking for some help. I Just installed FreeBSD 15 and every time that I run pkg, it throws some errors:

pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0/meta.conf: Timeout was reached
pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0/meta.txz: Requested range was not delivered by the server


FreeBSD 15.0-RELEASE-p5 FreeBSD 15.0-RELEASE-p5 releng/15.0-n281018-0730d5233286 GENERIC amd64

Code:
# Generated by resolvconf
nameserver 8.8.8.8
nameserver 8.8.4.4

I couldn't find anything related. I thought at first that it was some type of dns issue, but I tried different nameservers without luck.

Do you have any suggestions?

Thanks!
 
Just trying to fetch the first file works for me, so probably something to do with your network.
Code:
$ fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0/meta.conf
meta.conf  179  B 2357 kBps    00s
Have you got any other computers you can try on to see if you can fetch the first file.

I get Forbidden error if I try the second link, but that might be because I am trying direct access with fetch.
 
Hi richardtoohey2

If I run it manually, works.

1775521634139.png



Thanks
 
I got timeouts with pkg(8) just after I upgraded from FreeBSD 13.5 to 14.4, and had to upgrade the packages to get the shared libraries needed (ssl stuff). The llvm package was downloading at a leisurely 16.4KBytes/sec and, at 98% complete, pkg decided that it was taking too long. It just gave up on the whole pkg upgrade! Upon restart, it threw away the partial llvm package, started on it afresh, and failed again. I guess I could hunt down all the kiddies on vacation with phones and iPads, who clog up my cellular mobile Internet connection, or just suggest that the person who put the timeout into pkg should sentenced to live at the end of a 9600 baud PPP Internet connection...
 
Fastest_pkg docs mention:

Write configuration:
Code:
mkdir -p /usr/local/etc/pkg/repos/
echo 'FreeBSD: { url: "http://pkg0.fra.freebsd.org/${ABI}/latest", mirror_type: "NONE" }' \
        > /usr/local/etc/pkg/repos/FreeBSD.conf

I've created the file FreeBSD.conf under /usr/local/etc/pkg/repos/

I see this:
FreeBSD: { url: "http://pkg0.nyi.freebsd.org/${ABI}/quarterly", mirror_type: "NONE" }

When run again pkg, I'm getting the following:

pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0/meta.conf: Timeout was reached
pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0/meta.txz: Requested range was not delivered by the server

It doesn't seem to be using the same repo pkg0.nyi.freebsd.org, how do I force it?

Thanks
 
Back
Top