I have read a number of posts about such a problem and tried the recommended solutions that I haven't found one that works.
I am running FreeBSD 13.2-RELEASE-p2 which maybe part of the problem but am unable to update it.
I don't have a local REPO.
This does work:-
Could the problem be related to my /var/db/pkg which I tried to update some time ago when attempting to create a local pkg repo over a year ago?
I am running FreeBSD 13.2-RELEASE-p2 which maybe part of the problem but am unable to update it.
Code:
root@EMTEC:~ # pkg install emacs
Updating FreeBSD repository catalogue...
pkg: packagesite URL error for pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/meta.conf -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/meta.txz -- pkg+:// implies SRV mirror type
repository FreeBSD has no meta file, using default settings
pkg: packagesite URL error for pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/data.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/data.txz -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/packagesite.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/packagesite.txz -- pkg+:// implies SRV mirror type
Unable to update repository FreeBSD
Error updating repositories!
I don't have a local REPO.
This does work:-
Code:
root@EMTEC:~ # fetch http://pkg.freebsd.org/FreeBSD:13:amd64/latest/data.pkg
data.pkg 10 MB 2404 kBps 04s