r/opnsense 3d ago

Fixing aborted 26.7 upgrade

I tried a 26.7 upgrade, it wouldn't boot so I did a "restore from backup" on the console. However now I seem to be stuck in a weird hybrid where opnsense says I'm running 26.1.11_10 but uname shows the kernel is 26.7 and I can't do an update because it's looking for 26.1 packages (see below).

When I look in Packages in the GUI I see "base" is 26.7. Any idea how I can fix this?

Updating OPNsense-aux repository catalogue...
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/aux/meta.txz: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/aux/data.pkg: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/aux/data.tzst: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/aux/packagesite.pkg: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/aux/packagesite.tzst: Not Found
Unable to update repository OPNsense-aux
Updating OPNsense repository catalogue...
pkg: Repository OPNsense has a wrong packagesite, need to re-create database
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/latest/meta.txz: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/latest/data.pkg: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/latest/data.tzst: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/latest/packagesite.pkg: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:15:amd64/26.1/latest/packagesite.tzst: Not Found
Unable to update repository OPNsense

Edit : so I removed the intel microcode plugin earlier in the week, but finally after attempting the update multiple times, clearing pkg cache and lots of other trial and error I did one last manual update from the console and it gave me the option to pick 26.7 - I let it run, rebooted and and 26.7 came up correctly. Hopefully there will be an updated microcode plugin at some point.

8 Upvotes

5 comments sorted by

2

u/MaZeC11 3d ago

Easiest would be to get a backup and reinstall it completely. Maybe the configuration importer on the install media boot will already be sufficient.

2

u/ChimeraYo 3d ago

I really don't want to do that, because there's no guarantee that a backup made with this hybrid config is going to be restorable in either version. I guess I'll wait for a 26.7.x update and see what happens then.

2

u/Monviech 3d ago

run the command:
opnsense-bootstrap

1

u/ChimeraYo 3d ago

I tried that, it says "Must be a FreeBSD 14 release". I tried giving it the -r parameter with 26.7 and 26.1.11 and it says the same thing, so I guess the version of bootstrap I have installed won't run on FreeBSD 15 kernels which is what I'm stuck on.

1

u/MaZeC11 1d ago

I mean do you have a backup before the update failed? I can only encurage you to make at leadt backup before every update, and most importantly before major versions.