Enabling FreeBSD repo on 23.01 gives "wrong OS version"
-
Hi. I'm following the guide here...
https://docs.netgate.com/pfsense/en/latest/recipes/freebsd-pkg-repo.html
...to enable the FreeBSD repo to install xmlstarlet. However, after I have done so and run a pkg update, I get this error:
Updating FreeBSD repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 Fetching packagesite.pkg: 100% 5 MiB 4.9MB/s 00:01 Processing entries: 0% Newer FreeBSD version for package zziplib: To ignore this error set IGNORE_OSVERSION=yes - package: 1400084 - running kernel: 1400073 Ignore the mismatch and continue? [y/N]: pkg: repository FreeBSD contains packages for wrong OS version: FreeBSD:14:armv7 Processing entries: 100% Unable to update repository FreeBSD Updating pfSense-core repository catalogue... pfSense-core repository is up to date. Updating pfSense repository catalogue... pfSense repository is up to date. Error updating repositories!
Anyone know what's going on? I'm on an SG-3100. Thanks!
-
It's because it's built on a pre-release version the kernel checks the version numbers and they don't match.
You may be able to install individual pkgs by uploading them or using pkg add with the direct URL. But it's not recommended. Anything that has a lot of dependencies will cause problems.Steve
-
@stephenw10 Thanks for the reply. Looks like you're correct. I tried to install the package manually:
pkg add http://pkg.freebsd.org/FreeBSD:14:armv7/latest/All/xmlstarlet-1.6.1_2.pkg
And when I ran it
xml
it gave me this:ld-elf.so.1: /usr/local/bin/xml: Undefined symbol "__libc_start1@FBSD_1.7"
I just deleted the package and just giving up. Thanks.
-
What were you wanting to do with it? Perhaps there's an alternative tool we have already.
-
@stephenw10 I'm trying to use the script for the VPN service PIA (Private Internet Access) to enable port forwarding and it relies on the tool,
xml
to parse XML files. It's no biggie. I reverted back everything. Thanks for your help. -
Hmm, you have a link?
-
-
Did you see this too?
Regards
-
@fsc830 Yeah. I came across it after I had posted.
It seems like the new FreeBSD 14.0 kernel used by pfSense Plus 23.01 is based on a pre-release version. So basically, I'm SOL for now.
I don't want to mess with the system too much so I just went ahead and reverted all the changes I had made. No biggie but thanks for the heads up.