Select Version "Official (Stable)" etc

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage Raspberry Pi B 3 ARM
    • OS: what OS is used and which version Raspbian
    • Java Runtime Environment: which java platform is used and what version ZULU 13
    • openHAB version: latest
  • Issue of the topic: please be detailed explaining your issue

As a total beginner I try to set up OpenHAB. I made up to here: Raspberry Pi | openHAB

After Step 1 ( ```
wget -qO - ‘’ | sudo apt-key add -
sudo apt-get install apt-transport-https

The documentation says I get to choose between versions (Official (Stable), and so on), but I do not seem to get there.

The latest output is:
> root@smartkb:/opt/jdk# sudo apt-get install apt-transport-https
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following NEW packages will be installed:
>   apt-transport-https
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 149 kB of archives.
> After this operation, 156 kB of additional disk space will be used.
> Get:1 buster/main armhf apt-transport-https all [149 kB]
> Fetched 149 kB in 0s (339 kB/s)
> Selecting previously unselected package apt-transport-https.
> (Reading database ... 242103 files and directories currently installed.)
> Preparing to unpack .../apt-transport-https_1.8.2.2_all.deb ...
> Unpacking apt-transport-https ( ...
> Setting up apt-transport-https ( ...
> root@smartkb:/opt/jdk# sudo apt-get update
> Get:1 buster InRelease [15.0 kB]
> Hit:2 buster InRelease
> Hit:3 stable InRelease
> Fetched 15.0 kB in 1s (10.4 kB/s)
> Reading package lists... Done
> root@smartkb:/opt/jdk# sudo apt-get install openhab
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package openhab

Please downgrade your Java to Zulu 11 !!!
As you can read in the prerequisits, no higher Version supported, as Java 11 is the latest LTS version.

Thanks, but it still does not give me the choice between builds and doesn’t find openhab for install.

It is possible the packages have moved but OpenHABian was designed for the easiest way to install ooenHAB in a Pi.

You missed the step where you add the apt repo to apt sources. Please read the installation guide carefully, or even better, use the openHABian image as @Bruce_Osborne mentioned…

1 Like

Thanks. It looks like the instructions in Raspberry Pi | openHAB miss the step

echo ‘deb stable main’ | sudo tee /etc/apt/sources.list.d/openhab.list

which can be found in the " general Linux installation steps described in [Package Repository based Installation on Linux]" linked there