OPNsense Forum

English Forums => 26.7 Series => Topic started by: blizzard97 on July 15, 2026, 06:43:45 PM

Title: The Package manager "pkg" is incompatible and needs a reinstall
Post by: blizzard97 on July 15, 2026, 06:43:45 PM
***GOT REQUEST TO UPGRADE***
Currently running OPNsense 26.1.11_10 (amd64) at Wed Jul 15 09:28:13 PDT 2026
Fetching packages-26.7-amd64.tar: ............................................................................................. done
Fetching base-26.7-amd64.txz: ........... done
Fetching kernel-26.7-amd64.txz: ....... done
Flushing temporary package files... done
Extracting packages-26.7-amd64.tar... done
Extracting base-26.7-amd64.txz... done
Extracting kernel-26.7-amd64.txz... done
Please reboot.
>>> Invoking upgrade script 'sanity.sh'
The Package manager "pkg" is incompatible and needs a reinstall.
>>> Error in upgrade script '10-sanity.sh'
The upgrade was aborted due to an error.
***DONE***
Title: Re: The Package manager "pkg" is incompatible and needs a reinstall
Post by: franco on July 15, 2026, 07:13:27 PM
# pkg lock -y pkg
# opnsense-revert pkg
Title: Re: The Package manager "pkg" is incompatible and needs a reinstall
Post by: wincent on July 17, 2026, 11:38:10 AM
Just like my situation, I encountered this error while upgrading from 26.1.11_10 to 26.7. After running the command:
# pkg lock -y pkg
# opnsense-revert pkg
I successfully upgraded to 26.7, but still encountered pkg compatibility issues, and then I try to reinstall it again, still warning!
pkg-static: warning: database version 38 is newer than libpkg(3) version 36, but still compatible
Title: Re: The Package manager "pkg" is incompatible and needs a reinstall
Post by: franco on July 17, 2026, 12:09:55 PM
> pkg-static: warning: database version 38 is newer than libpkg(3) version 36, but still compatible

It doesn't go away since the newer version tainted the database. In practice that's ok unless it complains about not being compatible. In this case only opnsense-bootstrap will help.


Cheers,
Franco
Title: Re: The Package manager "pkg" is incompatible and needs a reinstall
Post by: wincent on July 17, 2026, 12:32:30 PM
Okay, then forget about it. I don't want to reinstall all core system packages.
Title: Re: The Package manager "pkg" is incompatible and needs a reinstall
Post by: franco on July 17, 2026, 01:19:19 PM
Yeah I think you're fine.  We're aiming to udate the package manager for 26.7.x in 6-8 weeks.  The reason why we are so slow is to avoid major upgrade problems with new introduced versions upstream.  Can't afford to catch a regression at the end/beginning of a major cycle.