OPNsense Forum

English Forums => 23.7 Legacy Series => Topic started by: starlegion80 on January 25, 2024, 11:25:40 am

Title: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: starlegion80 on January 25, 2024, 11:25:40 am
Hello @all,

this is my change-log view from within OpnSense:

 23.7.12   2024-01-16   
23.7.11   2024-01-04   
23.7.10   2023-12-12   
23.7.9 (installed)   2023-11-23   
23.7.8   2023-11-09

My Update-Status:

Type    opnsense    
Version    23.7.9    
Architecture    amd64    
Commit    7d9231b7d    
Mirror    https://pkg.opnsense.org/FreeBSD:13:amd64/23.7    
Repositories    OPNsense    
Updated on    Sat Nov 25 04:10:48 CET 2023    
Checked on    Thu Jan 25 11:07:31 CET 2024

When I select "Update" the following update results are returned:

***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 23.7.9 at Thu Jan 25 11:20:13 CET 2024
Fetching changelog information, please wait... done
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
Processing entries: .......... done
OPNsense repository update completed. 863 packages processed.
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***

My issue is that 23.7.9 is obviously not the most recent version but my OpnSense seems not to update anymore.
Also I have packages which have conflicts (they need 23.7.12):
os-acme-client (missing)   3.20   727KiB   3   OPNsense   ACME Client   
os-bind (missing)   1.29   155KiB   3   OPNsense   BIND domain name service   
os-realtek-re (missing)   1.0   361B   3   OPNsense   Realtek re(4) vendor driver   
os-theme-cicada (missing)   1.34_4   5.26MiB   3   OPNsense   The cicada theme - dark grey onyx   
os-theme-rebellion (missing)   1.8.9   5.22MiB   3   OPNsense   A suitably dark theme   
os-wireguard (missing)   2.6   84.6KiB   3   OPNsense   WireGuard VPN service kernel implementation

When trying to install one of these plugins I got the following message:
***GOT REQUEST TO INSTALL***
Currently running OPNsense 23.7.9 at Thu Jan 25 11:23:03 CET 2024
Installation out of date. The update to opnsense-23.7.12 is required.
***DONE***

So the plugins needs a more up2date version which cannot be installed because my OpnSense thinks it is the most recent version.

Anyone who has an idea how that issue can be solved without reinstalling?

By the way I have a community edition. Sorry if I post it here in the productive channel but I did not found a dedicated community edition thread.

Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: newsense on January 25, 2024, 02:43:15 pm
Try upgrading from CLI, post the full output here
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: starlegion80 on January 25, 2024, 04:51:02 pm
Thank you for the hint updating over cli.
But the effect remains the same:


  0) Logout                              7) Ping host
  1) Assign interfaces                   8) Shell
  2) Set interface IP address            9) pfTop
  3) Reset the root password            10) Firewall log
  4) Reset to factory defaults          11) Reload all services
  5) Power off system                   12) Update from console
  6) Reboot system                      13) Restore a backup

Enter an option: 12

Fetching change log information, please wait... done

This will automatically fetch all available updates and apply them.

Proceed with this action? [y/N]: y

Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories 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.
Checking integrity... done (0 conflicting)
Nothing to do.
Checking all packages: . done
The following package files will be deleted:
        /var/cache/pkg/pkg-1.19.2_1~6c501f4b59.pkg
        /var/cache/pkg/pkg-1.19.2_1.pkg
The cleanup will free 4 MiB
Deleting files: .. done
All done
Nothing to do.
Starting web GUI...done.
Generating RRD graphs...done.

Installation out of date. The update to opnsense-23.7.12 is required.

----------------------------------

After this the menu returns but no update/upgrade is done.
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: franco on January 25, 2024, 05:32:52 pm
Health audit please, something is wrong in the package database (like core package forgot it's installed).


Cheers,
Franco
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: starlegion80 on January 25, 2024, 06:58:34 pm
Hello,

this is the output of the health audit:

***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 23.7.9 at Thu Jan 25 18:49:47 CET 2024
>>> Root file system: /dev/gpt/rootfs
>>> Check installed kernel version
Version 23.7.8 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 23.7.8 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
>>> Check installed plugins
No plugins found.
>>> Check locked packages
No locks found.
>>> Check for missing package dependencies
Checking all packages: . done
>>> Check for missing or altered package files
Checking all packages: . done
>>> Check for core packages consistency
Core package "opnsense" not known to package database.
***DONE***

-------------------------------------------------------------

The last one sounds like what you mentioned, isnĀ“t it?
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: chemlud on January 25, 2024, 07:15:59 pm
Educated guess what will come next (without AI involved here :-D )

https://forum.opnsense.org/index.php?topic=35609.msg173121#msg173121
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: franco on January 25, 2024, 07:48:53 pm
Educated guess what will come next (without AI involved here :-D )

https://forum.opnsense.org/index.php?topic=35609.msg173121#msg173121

Not bad :)

Though here the health audit is fine otherwise so I think a simple solution will do:

# pkg install opnsense


Cheers,
Franco
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: chemlud on January 25, 2024, 08:03:00 pm
fine! :-) Although I can't detect a difference to the health ceck in the linked thread. But I'm tired... ;-)
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: starlegion80 on January 25, 2024, 09:08:27 pm
pkg install did it, thank you very much Franco!
Title: Re: 23.7.9 cannot update to most recent 23.7.12 / no update available - but shown
Post by: franco on January 26, 2024, 02:55:14 pm
fine! :-) Although I can't detect a difference to the health ceck in the linked thread. But I'm tired... ;-)

Well it appears opnsense-bootstrap was a little too much on the other thread as well. We all learn something I guess :)