Skip to content

Instantly share code, notes, and snippets.

@grahamperrin
Created October 27, 2025 05:29
Show Gist options
  • Select an option

  • Save grahamperrin/1a36d21e9c6d3bc363cee7ecfe779595 to your computer and use it in GitHub Desktop.

Select an option

Save grahamperrin/1a36d21e9c6d3bc363cee7ecfe779595 to your computer and use it in GitHub Desktop.
2025-10-27 pkg oddities with (end of life) 14.2-RELEASE
Script started on Mon Oct 27 05:11:46 2025
root@fourteen-two:~ # echo $SHELL
/bin/tcsh
root@fourteen-two:~ # pkg repos -e | grep url | sort
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly",
root@fourteen-two:~ # freebsd-version -kru ; uname -mvKU
14.2-RELEASE
14.2-RELEASE
14.2-RELEASE
FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64 1402000 1402000
root@fourteen-two:~ # pkg -v
2.3.1
root@fourteen-two:~ # pkg upgrade -Fqy
root@fourteen-two:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 0%
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 0%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@fourteen-two:~ # pkg install -qy nano
root@fourteen-two:~ # setenv TERM xterm-clear
root@fourteen-two:~ # nano /usr/local/etc/pkg/repos/FreeBSD.conf
[?1l>[?2004lroot@fourteen-two:~ # mkdir -p /usr/local/etc/pkg/repos
root@fourteen-two:~ # cd /usr/local/etc/pkg/repos
root@fourteen-two:/usr/local/etc/pkg/repos # cp /etc/pkg/FreeBSD.conf .
root@fourteen-two:/usr/local/etc/pkg/repos # nano FreeBSD.conf
root@fourteen-two:~ # pkg repos -e | grep url
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
root@fourteen-two:~ # pkg upgrade -Fqy
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
root@fourteen-two:~ # pkg upgrade -Uy
Checking for upgrades (1 candidates): 0%
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 0%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@fourteen-two:~ # pkg -v
2.3.1
root@fourteen-two:~ # pkg bootstrap -fy
Bootstrapping pkg from pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest, please wait...
Installing pkg-2.3.1...
Newer FreeBSD version for package pkg:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1403000
- running userland: 1402000
Ignore the mismatch and continue? [y/N]: y
package pkg is already installed, forced install
Extracting pkg-2.3.1: 0%
Extracting pkg-2.3.1: 100%
root@fourteen-two:~ # pkg -v
2.3.1
root@fourteen-two:~ #
root@fourteen-two:~ # nano /usr/local/etc/pkg/repos/FreeBSD.conf
root@fourteen-two:~ # pkg upgrade -Fqy
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
root@fourteen-two:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 0%
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 0%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@fourteen-two:~ # pkg bootstrap -fy
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
Installing pkg-2.3.1...
Newer FreeBSD version for package pkg:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1403000
- running userland: 1402000
Ignore the mismatch and continue? [y/N]: y
package pkg is already installed, forced install
Extracting pkg-2.3.1: 0%
Extracting pkg-2.3.1: 100%
root@fourteen-two:~ # nano /etc/pkg/FreeBSD.conf
root@fourteen-two:~ # nano /usr/local/etc/pkg/repos/FreeBSD.conf
root@fourteen-two:~ # pkg repos -e | grep url
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly",
root@fourteen-two:~ # pkg bootstrap -fy
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
Installing pkg-2.3.1...
Newer FreeBSD version for package pkg:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1403000
- running userland: 1402000
Ignore the mismatch and continue? [y/N]: ^C
root@fourteen-two:~ # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
root@fourteen-two:~ # pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.conf: 0%
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 0%
Fetching data.pkg: 18% 2 MiB 2.0MB/s 00:04 ETA
Fetching data.pkg: 44% 4 MiB 2.7MB/s 00:02 ETA
Fetching data.pkg: 69% 7 MiB 2.7MB/s 00:01 ETA
Fetching data.pkg: 97% 10 MiB 3.0MB/s 00:00 ETA
Fetching data.pkg: 100% 10 MiB 2.6MB/s 00:04
Processing entries: 0%
Newer FreeBSD version for package zycore-c:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1403000
- running userland: 1402000
Ignore the mismatch and continue? [y/N]: y
Processing entries: 0%
Processing entries: 100%
FreeBSD repository update completed. 36594 packages processed.
All repositories are up to date.
root@fourteen-two:~ # pkg bootstrap -fy
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
Installing pkg-2.3.1...
Newer FreeBSD version for package pkg:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1403000
- running userland: 1402000
Ignore the mismatch and continue? [y/N]: n
package pkg is already installed, forced install
Extracting pkg-2.3.1: 0%
Extracting pkg-2.3.1: 100%
root@fourteen-two:~ # pkg -v
2.3.1
root@fourteen-two:~ # freebsd-version -kru ; uname -mvKU
14.2-RELEASE
14.2-RELEASE
14.2-RELEASE
FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64 1402000 1402000
root@fourteen-two:~ # exit
exit
Script done on Mon Oct 27 05:22:04 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment