pkg update very slow

I have a problem accessing 'latest' repository - it is very very slow:

Code:
njails-6# pkg update
Updating FreeBSD repository catalogue...
Fetching packagesite.txz:  15%    1 MiB  32.8kB/s    05:56 ETA

My configuration:
Code:
njails-6# cat /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

What's happening? Should I try to force using another address?
I don't see any particular problem of accessing other network services...
 
Already tried a -4?
I have no IPv6 addresses on this server.

You can try switching to another mirror but there's no guarantee an individual mirror is up.
I've got 6.5MB/s using pkg0.pkt.freebsd.org.
So, there is a real problem of dispatching the traffic between the mirrors :(
Any place to report it?
 
So, there is a real problem of dispatching the traffic between the mirrors
No, there is an issue with the connection between you and a specific mirror. pkg.freebsd.org automatically switches you to a GeoDNS based "closest", available, mirror. That might not be the most optimal mirror, but the most optimal server could be offline (for whatever reason).
 
No, there is an issue with the connection between you and a specific mirror.
OK, how should I reconfigure my server, to be able to get packages at a reasonable speed, using the mirror where I can have a good connection?
 
Change the URL in the conf to the mirror that suits you best. But, as SirDice says, if it goes down you'll get nothing until you change the conf file again.
Or you could build the packages using ports and set up your own mirror. Probably not the answer you were seeking...
 
Back
Top