New install with restored config - won't update from 24.1 to 24.1.7

Started by DavidRa, May 17, 2024, 06:47:57 AM

Previous topic - Next topic
This one has me a little confused. I have the VM configured to use the default pkg mirror, type Community:

Type opnsense
Version 24.1
Architecture amd64
Commit 2a5b9278e
Mirror https://pkg.opnsense.org/FreeBSD:13:amd64/24.1
Repositories OPNsense
Updated on Fri Jan 26 21:50:57 AEDT 2024
Checked on Fri May 17 14:38:02 AEST 2024

When I run a check for updates, it appears successful:

***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 24.1 at Fri May 17 14:38:02 AEST 2024
Fetching changelog information, please wait... done
Updating OPNsense repository catalogue...
Waiting for another process to update repository OPNsense
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
Checking for upgrades (0 candidates): . done
Processing candidates (0 candidates): . done
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***


And I get the green popup telling me there are no updates available on the selected mirror. However, if I attempt to install a plugin, I'm informed that I need to update first:

***GOT REQUEST TO INSTALL***
Currently running OPNsense 24.1 at Fri May 17 14:44:09 AEST 2024
Installation out of date. The update to opnsense-24.1.7 is required.
***DONE***

The System > Firmware > Changelog quite reasonably shows me that I'm behind:

Version   Date   
24.1.7   2024-05-16   
24.1.6   2024-04-18   
24.1.5   2024-04-04   
24.1.4   2024-03-20   
24.1.3   2024-03-06   
24.1.2   2024-02-20   
24.1.1   2024-02-06   
24.1 (installed)   2024-01-30

The restored config is from a host with 24.1.6 installed, in case that matters. I'm guessing there's something I need to reset, but I'm lost as to what. I did try swapping to a different mirror, and a power cycle, but no change - there are still no updates available, but I'm not updated either.

Maybe the package database was damaged. You can do a health audit and/or run

# pkg install opnsense

And see if that helps.


Cheers,
Franco

pkg check didn't do anything interesting, but force installing the opnsense pkg again seems to have done the trick. Thanks.

Well the health check would have said something along the lines of "opnsense package not found" ;)


Cheers,
Franco