upgrade from 21.7.8 to 22.1

Started by picasso7it, June 25, 2025, 03:47:39 PM

Previous topic - Next topic
Hello everyone,
I'm trying to update an older version of Opnsense, currently 21.7.8, but I'm having trouble.
I noticed that my FreeBSD system is on version 13, when it should be on version 12 with Opnsense 21.

root@pf:~ # opnsense-version
OPNsense 21.7.8 (amd64/OpenSSL)

root@pf:~ # uname -r
13.0-STABLE

When I run an update with the opnsense-update tool, I get the following message:
root@pf:~ # opnsense-update -p  -A 22.1
Updating OPNsense repository catalogue...
pkg-static: https://pkg.opnsense.org/FreeBSD:12:amd64/22.1/latest/meta.txz: Not Found
repository OPNsense has no meta file, using default settings
pkg-static: https://pkg.opnsense.org/FreeBSD:12:amd64/22.1/latest/packagesite.txz: Not Found
Unable to update repository OPNsense
Error updating repositories!

How can I successfully update to version 22.1 and then to future versions?

Thank you.

maybe switching to a different mirror in system>firmware>settings could help?

I forced it by setting the correct path to the repository in setting mirrors

But when I return to the status, the path is invalid.
it displays
Mirror https://pkg.opnsense.org/FreeBSD:13:amd64/22.1//FreeBSD:12:amd64/21.7

I can't test with another mirror because for the update, I use a Squid proxy that only whitelists certain sites, including pkg.opnsense.org.

I need to be able to modify the path to the mirror correctly. Is this possible from the command line?

You could also try a reinstall with a later version and import the config backup afterwards.

That can be done offline.

You could take the chance and install with ZFS to use the new Snapshot feature.
Hardware:
DEC740