No active remote repositories configured

When trying to install any packages I get the above error, I can't figure what is wrong. The system (14.1) was working
previously but hasn't been used for some months.

I can ping pkg,FreeBSD.org so the error must be in my pkg configuration.

How do I restore the original configuration files?
 
The system (14.1)
14.1 is End-of-Life and unsupported. All 14 branch packages are now built on the FreeBSD package build clusters for version 14.3 (RELEASE and STABLE).

Which FreeBSD version branch of the packages should be installed is determined by the ABI setting in the repository configuration files. for example:

/etc/pkg/FreeBSD.conf
Rich (BB code):
FreeBSD: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",

To resolve the problem, upgrade your system to 14.3, or, if you wish to stay at the moment on 14.1 (not recommended), upgrade packages from ports, preferable with a ports management tool. If the number of installed packages are high, with all the build dependencies, this will take some time, you might as well upgrade to 14.3, less time-consuming.
 
Looks like the problem must have arisen when I tried to set up a local repository.

After removing /usr/local/etc/pkg/ things work normally.

With 15.0 due out next month, I'll postpone upgrading.
 
Back
Top