@ewuewu In addition to all the above advice, there is this:
https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html#upgrade-not-offered-library-errors
...but I have seen Netgate post more than once that they suggest reinstalling and restoring the config from backup if it is several versions old. If you really do try upgrading, (and get pfSense to see updates), at a minimum I'd try to upgrade to "previous stable version" first instead of trying the latest, then upgrading again. But, plan on/prep for a reinstall and then you won't be disappointed if the upgrade goes haywire and the router is offline.