Randomly unable to update pkg repository in FreeBSD 12.2 - pkgmir.geo.freebsd.org not found

Since few days, pkg repository fails to update, at random. Most of the times, it works; Sometimes not. Location is India.

Code:
~% doas pkg upgrade
Updating FreeBSD repository catalogue...
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/latest/meta.txz: Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/latest/packagesite.txz: Not Found
Unable to update repository FreeBSD
Error updating repositories!


Here is my /usr/local/etc/pkg/repos/FreeBSD.conf
Code:
:~% cat /usr/local/etc/pkg/repos/FreeBSD.conf
# $FreeBSD: releng/12.2/usr.sbin/pkg/FreeBSD.conf.quarterly 346780 2019-04-27 04:00:50Z cperciva $
#
# 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+http://pkg0.twn.freebsd.org/${ABI}/latest",
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
I tend to use the pkg0.twn.freebsd.org if it is not working. What is the recommended way? Shall I permanently add url: "pkg+http://pkg0.twn.freebsd.org/${ABI}/latest" ?
 
I tend to use the pkg0.twn.freebsd.org if it is not working. What is the recommended way? Shall I permanently add url: "pkg+http://pkg0.twn.freebsd.org/${ABI}/latest" ?
pkg is already GeoIP-aware. The pkg.freebsd.org resolves/switchs to nearest one.

Since few days, pkg repository fails to update, at random. Most of the times, it works; Sometimes not. Location is India.
Sometime VPN is the solution!
 
Back
Top