Issues updating/installing packages , updating pkg.

Fresh install of FreeBSD 15. ( I think its allowed now ? as its ALPHA if no - sorry)
I have issues. Last night i could install a package and never used OS again until today. Played a lot with repo ( latest, quarterly, pkg+https / http / https etc )
Now im getting this error:
Code:
root@kodasBSD:/home/evo # nvim /usr/local/etc/pkg/repos/FreeBSD.conf
root@kodasBSD:/home/evo # pkg update -f
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%   10 MiB  10.7MB/s    00:01
Processing entries: 100%
FreeBSD-ports repository update completed. 36382 packages processed.
Updating FreeBSD-ports-kmods repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%   28 KiB  28.4kB/s    00:01
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 201 packages processed.
All repositories are up to date.
root@kodasBSD:/home/evo # pkg upgrade
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        pkg: 2.2.2 -> 2.3.1 [FreeBSD-ports]

Number of packages to be upgraded: 1

13 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching pkg-2.3.1.pkg: 100%   13 MiB   4.7MB/s    00:03
Checking integrity... done (0 conflicting)
[1/1] Upgrading pkg from 2.2.2 to 2.3.1...
[1/1] Extracting pkg-2.3.1: 100%
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (3 candidates): 100%
Processing candidates (3 candidates): 100%
The following 3 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        neovim: 0.11.3 -> 0.11.4 [FreeBSD-ports]
        qemu-guest-agent: 10.0.3 -> 10.1.0 [FreeBSD-ports]
        tree-sitter: 0.25.8 -> 0.25.9 [FreeBSD-ports]

Number of packages to be upgraded: 3

13 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/3] Fetching neovim-0.11.4.pkg: 100%    8 MiB   4.0MB/s    00:02
[2/3] Fetching qemu-guest-agent-10.1.0.pkg: 100%    5 MiB   5.1MB/s    00:01
[3/3] Fetching tree-sitter-0.25.9.pkg: 100%  123 KiB 126.4kB/s    00:01
Checking integrity... done (0 conflicting)
[1/4] Upgrading qemu-guest-agent from 10.0.3 to 10.1.0...
[1/4] Extracting qemu-guest-agent-10.1.0: 100%
[2/4] Deinstalling neovim-0.11.3...
[2/4] Deleting files for neovim-0.11.3: 100%
[3/4] Upgrading tree-sitter from 0.25.8 to 0.25.9...
[3/4] Extracting tree-sitter-0.25.9: 100%
[4/4] Installing neovim-0.11.4...
[4/4] Extracting neovim-0.11.4: 100%
root@kodasBSD:/home/evo # uname -r
15.0-ALPHA2
root@kodasBSD:/home/evo # pkg install git-tiny
Updating FreeBSD-ports repository catalogue...
pkg: No SRV record found for the repo 'FreeBSD-ports'
pkg: An error occurred while fetching package: No error
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest/meta.txz -- pkg+:// implies SRV mirror type
repository FreeBSD-ports has no meta file, using default settings
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest/data.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest/data.tzst -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest/packagesite.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest/packagesite.tzst -- pkg+:// implies SRV mirror type
Unable to update repository FreeBSD-ports
Updating FreeBSD-ports-kmods repository catalogue...
pkg: No SRV record found for the repo 'FreeBSD-ports-kmods'
pkg: An error occurred while fetching package: No error
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest/meta.txz -- pkg+:// implies SRV mirror type
repository FreeBSD-ports-kmods has no meta file, using default settings
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest/data.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest/data.tzst -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest/packagesite.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest/packagesite.tzst -- pkg+:// implies SRV mirror type
Unable to update repository FreeBSD-ports-kmods
Error updating repositories!

I used CloudFlare DNS ( ipv4 and ipv6 ), static ip and slaac for ipv6 during OS install.
I dont use pkgbase at the moment.
Is this my ISP or FreeBSD ? also i run my FreeBSD 15-ALPHA2 inside Proxmox VM but im not sure this is an issue as i used to do it in the past.
P.s. sometimes reboot helps. is this some sort of glitch with routing ? resolver ? CloudFlare or FreeBSD server side ?
 
Also, while i was i fighting with pkg update / upgrade - i had this issue once pkg update -f :
Code:
# pkg install python
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
^C
root@kodasBSD:/home/evo # pkg install pkg
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Updating FreeBSD-ports repository catalogue...
^C
 
# pkg -vv
Code:
Version                 : 2.3.1
libpkg                  : 2.3.1
libcurl                 : libcurl/8.16.0 OpenSSL/3.5.1 zlib/1.3.1
libarchive              : libarchive 3.8.1
sqlite                  : 3.50.4
openssl                 : OpenSSL 3.5.1 1 Jul 2025
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-15";
HANDLE_RC_SCRIPTS = false;
DEFAULT_ALWAYS_YES = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
    "/etc/pkg/",
    "/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
DEVELOPER_MODE = false;
VULNXML_SITE = "https://vuxml.freebsd.org/freebsd/vuln.xml.xz";
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
HTTP_USER_AGENT = "pkg/2.3.1";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
    all-depends = "query %dn-%dv";
    annotations = "info -A";
    build-depends = "info -qd";
    cinfo = "info -Cx";
    comment = "query -i \"%c\"";
    csearch = "search -Cx";
    desc = "query -i \"%e\"";
    download = "fetch";
    iinfo = "info -ix";
    isearch = "search -ix";
    prime-list = "query -e '%a = 0' '%n'";
    prime-origins = "query -e '%a = 0' '%o'";
    leaf = "query -e '%#r == 0' '%n-%v'";
    list = "info -ql";
    noauto = "query -e '%a == 0' '%n-%v'";
    options = "query -i \"%n - %Ok: %Ov\"";
    origin = "info -qo";
    orphans = "version -vRl?";
    provided-depends = "info -qb";
    rall-depends = "rquery %dn-%dv";
    raw = "info -R";
    rcomment = "rquery -i \"%c\"";
    rdesc = "rquery -i \"%e\"";
    required-depends = "info -qr";
    roptions = "rquery -i \"%n - %Ok: %Ov\"";
    shared-depends = "info -qB";
    show = "info -f -k";
    size = "info -sq";
    unmaintained = "query -e '%m = \"ports@FreeBSD.org\"' '%o (%w)'";
    runmaintained = "rquery -e '%m = \"ports@FreeBSD.org\"' '%o (%w)'";
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
IP_VERSION = 0;
AUTOMERGE = true;
MERGETOOL = "";
VERSION_SOURCE = "";
CONSERVATIVE_UPGRADE = true;
FORCE_CAN_REMOVE_VITAL = true;
PKG_CREATE_VERBOSE = false;
AUTOCLEAN = false;
DOT_FILE = "";
REPOSITORIES {
}
VALID_URL_SCHEME [
    "pkg+http",
    "pkg+https",
    "https",
    "http",
    "file",
    "ssh",
    "tcp",
]
WARN_SIZE_LIMIT = 1048576;
METALOG = "";
IGNORE_OSVERSION = false;
BACKUP_LIBRARIES = false;
BACKUP_LIBRARY_PATH = "/usr/local/lib/compat/pkg";
PKG_TRIGGERS_DIR = "/usr/local/share/pkg/triggers";
PKG_TRIGGERS_ENABLE = true;
AUDIT_IGNORE_GLOB [
]
AUDIT_IGNORE_REGEX [
]
COMPRESSION_FORMAT = "";
COMPRESSION_LEVEL = -1;
ARCHIVE_SYMLINK = false;
REPO_ACCEPT_LEGACY_PKG = false;
FILES_IGNORE_GLOB [
]
FILES_IGNORE_REGEX [
]
SHLIB_PROVIDE_PATHS_NATIVE [
]
SHLIB_PROVIDE_PATHS_COMPAT_32 [
]
SHLIB_PROVIDE_PATHS_COMPAT_LINUX [
]
SHLIB_PROVIDE_PATHS_COMPAT_LINUX_32 [
]
SHLIB_PROVIDE_IGNORE_GLOB [
]
SHLIB_PROVIDE_IGNORE_REGEX [
]
SHLIB_REQUIRE_IGNORE_GLOB [
]
SHLIB_REQUIRE_IGNORE_REGEX [
]
PKG_DEBUG_FLAGS [
    "all",
]
COMPRESSION_THREADS = -1;
PKG_REINSTALL_ON_OPTIONS_CHANGE = true;
TRACK_LINUX_COMPAT_SHLIBS = false;
ABI = "FreeBSD:15:amd64";
ALTABI = "freebsd:15:x86:64";
OSVERSION = "1500064";


Repositories:
  FreeBSD-ports: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-ports-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
 
I had the same error with a 14 stable this morning.
It worked after repeating pkg upgrade again, so I can not reproduce it anymore...
Maybe due to some bad network connection, not sure...
 
I dont use pkgbase at the moment.
Is this my ISP or FreeBSD ? also i run my FreeBSD 15-ALPHA2 inside Proxmox VM but im not sure this is an issue as i used to do it in the past.
I have no idea if Proxmox is or could be an issue clouding a clear landscape; I don't use Proxmox. Some observations and remarks.

FreeBSD 15 comes with some major changes, supported pkgbase is one of them. As the official release of FreeBSD 15.0-RELEASE is nearing, things need to fall in place, errors, 'irritations', user inconveniences need to be ironed out. Now more than ever, things may change fast, however, with each new update hopefully less and less. Three ML's come to mind as particularly relevant:
  1. freebsd-stable
  2. freebsd-pkgbase
  3. freebsd-pkg
If you haven't subscribed already, I think you should consider doing so; and consider participating.

If you're sure you're using the latest* (snapshot, or build from source), have a clearly documented problem, of course preferably reproducible, then you should let it be known. Submitting a PR should also be viewed as an option. While I have no doubt forum users here are experimenting and testing the new stuff as well, I think (perhaps in addition to the forum), you probably have a better chance at the MLs, or through PRs, to get a more appropriate response. It is likely you get better guidance in how to proceed when you do need to provide more data and how, in order to help developers along.

Happy testing :)

* as of 2025-09-20 we're at 15.0: Update to ALPHA3
 
I need to wait for 15-STABLE or 15-RELEASE as 14.3-STABLE has no issues i experienced with 15-ALPHA2. Lets wait few more weeks and i think i need to read STABLE mailing list to see what is what.
 
Back
Top