OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: onlime on September 21, 2022, 11:49:54 PM

Title: OPNsense Community 22.7 to Business 22.4 downgrade
Post by: onlime on September 21, 2022, 11:49:54 PM
I am trying to downgrade two OPNsense appliances (DEC4630 / OPNsense Quad Core Gen4) from 22.7.2 / 22.7.4 (Community) to 22.4.x Business. We have received two license keys from https://shop.opnsense.com/ and I tried with the following settings:


Tried over web interface, over console option 12) Update from console or over pkg update, always gettings this:


Currently running OPNsense 22.7.4 (amd64/OpenSSL) at Wed Sep 21 23:20:43 CEST 2022
Fetching changelog information, please wait... fetch: https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/22.10/sets/changelog.txz: Not Found
Updating OPNsense repository catalogue...
pkg: https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/22.10/latest/meta.txz: Not Found
repository OPNsense has no meta file, using default settings
pkg: https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/22.10/latest/packagesite.pkg: Not Found
pkg: https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/22.10/latest/packagesite.txz: Not Found
Unable to update repository OPNsense
Error updating repositories!


How come OPNsense tries to retrieve the package list from the yet unreleased 22.10 (Business) URLs? How can I force it to use 22.4 instead?

I believe the license keys are correct, but I don't know where this 22.10 comes from and how I can override it.
Title: Re: OPNsense Community 22.7 to Business 22.4 downgrade
Post by: onlime on September 22, 2022, 12:05:06 AM
I have also tried this:


$ sed -I '.bkup' 's/22.10/22.4/' /usr/local/etc/pkg/repos/OPNsense.conf

$ cat /usr/local/etc/pkg/repos/OPNsense.conf
OPNsense: {
  fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense",
  url: "pkg+https://opnsense-update.deciso.com/xxxxxxxxxxxxxxxxxxxxxxxxxx/${ABI}/22.4/latest",
  signature_type: "fingerprints",
  mirror_type: "srv",
  priority: 11,
  enabled: yes
}


but it failed as well:


$ pkg update
Updating OPNsense repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01   
Fetching packagesite.pkg: 100%  222 KiB 227.3kB/s    00:01   
pkg: At least one of the certificates has been revoked
Unable to update repository OPNsense
Error updating repositories!
Title: Re: OPNsense Community 22.7 to Business 22.4 downgrade
Post by: franco on September 26, 2022, 10:03:02 AM
Downgrades are not possible. 22.7 belongs to 22.10 which is not yet available, not 22.4 which belongs to 22.1.

Reinstall from 22.10 business image with config import option... https://opnsense-update.deciso.com/


Cheers,
Franco