Difficulty upgrading from 24.1.10 to 25.1

Started by lsheaves, February 04, 2025, 07:26:50 AM

Previous topic - Next topic
Hi All,

Be nice, newbie here :)

I was able to run the package upgrade, firewall did a reboot, but when it came back up again, I noted that the version hadn't changed.

When I go into System>Firmware>Status:

Type opnsense
Version 24.1.10_8
Architecture amd64
Commit 10cb2e320
Mirror https://pkg.opnsense.org/FreeBSD:14:amd64/24.1
Repositories OPNsense
   

If I try and force update by clicking on 'Check for Updates'... I receive an error:


***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 24.1.10_8 at Tue Feb  4 17:22:35 AEDT 2025
Fetching changelog information, please wait... fetch: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/sets/changelog.txz: Not Found
Updating OPNsense repository catalogue...
pkg: Repository OPNsense has a wrong packagesite, need to re-create database
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/latest/meta.txz: Not Found
repository OPNsense has no meta file, using default settings
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/latest/packagesite.pkg: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/latest/packagesite.txz: Not Found
Unable to update repository OPNsense
Error updating repositories!
pkg: Repository OPNsense has a wrong packagesite, need to re-create database
pkg: Repository OPNsense cannot be opened. 'pkg update' required
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***


After this I get the following dialog:  "Could not find the repository on the selected mirror"

Interestingly when I browse to https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/latest/packagesite.pkg I get a 404..  I have also tried changing the mirror to one of the other hosts, getting a 404 irrespective.

Appreciate any help you can provide here... Cheers, Luke

IIUC, 24.1.8_10 should upgrade to 24.7.1, which includes FreeBSD 13->14 upgrade. From there, you can update to 24.7.12, then to 25.1. It appears that you have FreeBSD 14 but still OPNsense 24.1.8_10, which suggests that something went wrong with the upgrade to 24.7.1 (were you watching it on the console?)

I'd probably make a backup of your config (and anything you may have tweaked outside the WebUI), then do a fresh install of 25.1 and import the backup... https://docs.opnsense.org/manual/install.html#opnsense-importer

Maybe there's another way to recover, though....

Looks like the upgrade to 24.7 did not sail through all the way... try again:

# opnsense-update -up -A 24.7

The same could happen to 25.1... something you installed from somewhere else is blocking the final package install.


Cheers,
Franco