OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: shadesh on February 13, 2021, 02:46:19 pm

Title: Upgrade failed with "Newer FreeBSD version"
Post by: shadesh on February 13, 2021, 02:46:19 pm
Hey,

after upgrading to 21.1 the system cannot be upgraded to newer versions.
I always get a mismatch in freebsd version for different packages.
E.g.

Code: [Select]
root@gw:~ # pkg update
Updating FreeBSD repository catalogue...
Fetching packagesite.txz: 100%    6 MiB   6.4MB/s    00:01   
Processing entries:   0%
Newer FreeBSD version for package php73-pear-channel-horde:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1202000
- running kernel: 1201000
Ignore the mismatch and continue? [y/N]:
pkg: repository FreeBSD contains packages for wrong OS version: FreeBSD:12:amd64
Processing entries: 100%
Unable to update repository FreeBSD
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
Error updating repositories!
root@gw:~ # uname -a
FreeBSD gw 12.1-RELEASE-p12-HBSD FreeBSD 12.1-RELEASE-p12-HBSD #0  3c6040c7243(stable/21.1)-dirty: Mon Jan 25 12:27:52 CET 2021 root@sensey:/usr/obj/usr/src/amd64.amd64/sys/SMP  amd64
Title: Re: Upgrade failed with "Newer FreeBSD version"
Post by: almodovaris on February 13, 2021, 09:09:08 pm
So? Simply set the flag IGNORE_OSVERSION=yes and then choose 12 from the menu.
Title: Re: Upgrade failed with "Newer FreeBSD version"
Post by: franco on February 13, 2021, 09:33:50 pm
For official purposes: please do not enable the FreeBSD repository.

And if you must only enable it briefly and disable when done before it breaks your system later on.


Cheers,
Franco
Title: Re: Upgrade failed with "Newer FreeBSD version"
Post by: franco on February 13, 2021, 09:34:54 pm
PS: If you install FreeBSD pkg 1.16.2 update at the moment you will somewhat brick your system already. ;)