OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: jcordeiro on October 30, 2025, 01:15:26 PM

Title: Unable to update past 25.7
Post by: jcordeiro on October 30, 2025, 01:15:26 PM
I am stuck on 25.7. When I try to update I received an incorrect pkg in the gui. So I tried using the CLI and was getting pkgdb.c.1633:database disk image is malformed. I then tried this in the CLI:

sudo pkg clean -ay
sudo rm -f /var/db/pkg/local.sqlite
sudo rm -f /var/db/pkg/repo-*.sqlite /var/db/pkg/*meta*

sudo pkg bootstrap -f
sudo pkg update -f

It seemed to work but it is still stuck on 25.7

Whenever I try to update I get the attached message that everything is up to date.

Title: Re: Unable to update past 25.7
Post by: franco on October 30, 2025, 01:21:58 PM
The health audit will likely tell you that the core package is not installed. This happens when the local package database is corrupt and the system thinks no packages are installed. Then it finds no updates when you check for them.

Please provide the health audit first.


Cheers,
Franco
Title: Re: Unable to update past 25.7
Post by: jcordeiro on October 30, 2025, 04:10:44 PM
Looks like there is a problem with the core package, is there a way to fix it?:

***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 25.7 (amd64) at Thu Oct 30 15:09:11 UTC 2025
>>> Root file system: /dev/gpt/rootfs
>>> Check installed kernel version
Version 25.7 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 25.7 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense (Priority: 11)
>>> 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***
Title: Re: Unable to update past 25.7
Post by: franco on October 30, 2025, 06:02:52 PM
From the console run:

# pkg install opnsense

or

# opnsense-bootstrap

if the first command doesn't work, but normally it should.


Cheers,
Franco
Title: Re: Unable to update past 25.7
Post by: jcordeiro on October 30, 2025, 08:15:21 PM
That fixed it. Thank you!