openhabian@openhabian:~ $ sudo apt update
[sudo] password for openhabian:
Hit:1 http://davesteele.github.io/comitup/repo comitup InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Get:4 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B]
Get:5 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease [12.8 kB]
Err:5 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
Fetched 4,584 B in 3s (1,816 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
92 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease: The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
W: Failed to fetch https://openhab.jfrog.io/artifactory/openhab-linuxpkg/dists/stable/InRelease The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Don’t bother with 3.4.5. There were only very minimal changes between 3.4.4 and 3.4.5, mainly bug fixes, and none of them will cause any problems for an upgrade. Upgrading to 3.4.5 is pretty much a waist of time.
You can go straight to 4.1.x. Or if you wait a week or so you could jump to 4.2. Either way, you won’t save any effort by upgrading to 3.4.5 first.
openHABian isn’t the operating system. It’s the scripts that configure the operating system. When you run openhabian-config, unless it’s an older version, it should ask if you want to upgrade it. Make sure to upgrade it.
Frankly, you don’t. You start over and reinstall from scratch. It’s theoretically possible do an in place upgrade but it takes a really long time on RPis to do so, and it’s not guaranteed to work. And you’ll have to do it twice to go from buster to bullseye and then again to go from bullseye to bookworm. It will be faster in the long run to take a backup, install the latest openHABian image from scratch and then restore the backup, than it will be to try to do two levels of an in place OS upgrade.
Also note that going from bullseye to bookworm is known to be problematic because the underlying networking has changed and the machine often falls off the network as a result during the upgrade.
So what you should do isL:
take a backup, which is what you should do anyway
get a new SD card and burn the latest openHABian to it
configure openHABian to install OH 3.4 (there’s a config file you can edit or after the first boot you can run openhabian-config)
restore your backup
now choose OH 4 from openhabian-config to install the latest release which will perform upgrades on your configs as well to minimize the number of breaking changes you have to deal with manually.
Ok, now I took a backup and installed a new Debian bookworm 12.5 in a Proxmox-VM (for testing easier).
I did download the latest openHABian scripts (by git) and did a snapshot before starting “openhabian-config”.
The problem is, I don’t know how to get the V3.4.4 installed.
With the openhabian-config tool I can:
switch the branch (release, latest, legacy)
install the latest openHAB (4.x)
install manually the Java version (11 or 17 for example)
I did check the openhabian-conf file, there I can change the java-version and the branch also.
But how can I install the openHAB version 3.4.4 (with Java 11) to restore my backup?
Thank you very much for your commitment and your time!
edit:
I found this on openHAB documentation:
openHABian will install openHAB 4 and Java 17 by default. The openHABian image will install openHAB 4 by default, to have it install openHAB 3 right from the beginning, set clonebranch=openHAB3 in openhabian.conf before first boot. Use clonebranch=legacy to get openHAB 2.
I tried this, but it results in an 4.x installation also.
The best I can offer there then is to file an issue on openHABian. The docs say that’s how to do it so if that’s not working something is wrong.
In the mean time, stop openHAB, restore your backup and run java -jar /usr/share/openhab/runtime/bin/upgradetool.jar which will do most of the upgrade steps. That should get you moving while the problem with openhabian.conf gets sorted out.