Since few days, pkg repository fails to update, at random. Most of the times, it works; Sometimes not. Location is India.
Here is my /usr/local/etc/pkg/repos/FreeBSD.conf
I tend to use the pkg0.twn.freebsd.org if it is not working. What is the recommended way? Shall I permanently add url:
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
}
"pkg+http://pkg0.twn.freebsd.org/${ABI}/latest"
?