openjdk 17 is not provided/available on Debian Buster.
According to the migration FAQ: openHAB 4 migration FAQ
- Get a new SD card (preferrably an “Endurance” labelled one) and keep the old one as your fallback
- Run option 50 to create an OH config backup and copy it to some box of yours
- Download and flash openHABian 1.8
- Put the SD in your Windows system and open the first (only) partition. Edit
openhabian.conf
and setclonebranch=openHAB3
. That should result in (latest) OH3 being installed.- Also put your backup zip file there, name it
initial.zip
. That’ll auto-import the config during install.- Now put the SD in the Raspi and turn it on. Let openHABian do its install magic.
- When finally done, login and run
openhabian-config
menu option 03 to upgrade to OH4