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 - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | 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 http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian buster/main armhf apt-transport-https all 1.8.2.2 [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 (1.8.2.2) ...
> Setting up apt-transport-https (1.8.2.2) ...
> root@smartkb:/opt/jdk# sudo apt-get update
> Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
> Hit:2 http://archive.raspberrypi.org/debian buster InRelease
> Hit:3 https://www.pivccu.de/piVCCU 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 https://www.openhab.org/docs/installation/rasppi.html#installation-of-openhab miss the step

echo ‘deb https://dl.bintray.com/openhab/apt-repo2 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