Guide: Installing and testing OH3 snapshots/milestones using APT and YUM

You installed openhab2 not openhab

1 Like

Tks,

Could it be a typo on the download page? it says:

sudo apt-get update && sudo apt-get install openhab2

1 Like

That page is for both OH 2 & 3. There is an error there though.

1 Like

:+1:

1 Like

Hi is there any problem with the repository ?

have upgraded last week from OH2 > OH3 but now i get the following error if i run apt update

have added

apt-add-repository ‘deb https://openhab.jfrog.io/openhab/openhab-linuxpkg testing main’

then apt update

and get the following error since a few days


Get:29 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing Release.gpg [821 B]
Get:33 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing/main amd64 Packages [7,792 B]
Get:34 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing/main i386 Packages [7,730 B]
Fetched 27.9 kB in 2s (12.8 kB/s)
Traceback (most recent call last):
  File "/usr/sbin/omv-mkaptidx", line 91, in <module>
    cache = apt.cache.Cache()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 170, in __init__
    self.open(progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 230, in open
    self._cache = apt_pkg.Cache(progress)
apt_pkg.Error: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_testing_main_binary-i386_Packages, E:The package lists or status file could not be parsed or opened.
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_testing_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

if i remove the repository apt update works fine !

1 Like

I got an error that the repo was not signed correctly as well as Unknown date format Bad header data when I last installed a few days ago.

To fix I did this then it installed just fine using the repo:

echo "deb [trusted=yes] https://openhab.jfrog.io/openhab/openhab-linuxpkg unstable main" | sudo tee /etc/apt/sources.list.d/openhab2.list
2 Likes

Just wanted to say that after the latest upgrade to Build #2004 the sitemaps started to work again!

I got the same error. No solutions yet, but because unstable works, it seems some issue with the repository itself…

For the unsigned repo, run:

wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -

Been testing OH 3, and things are working pretty well so far. Are there any options for using a binding that seems to be unavailable in OH3, specifically the MiOS binding I’m using to control a few devices connected to a Vera home controller (https://www.openhab.org/addons/bindings/mios1/). Is there any way to work around to get this binding to work? Thanks for the help!!!

@Jeff_Smeker there are some workarounds for a MiOS binding here: Mios binding EOL. Might or might not be useful to you.

[09:52:08] root@t2:/etc/apt/sources.list.d# wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’|sudo apt-key add -
gpg: no valid OpenPGP data found.

no luck :frowning:

There is the remoteopenhab binding that permits connecting an OH2 instance to OH3. OH2 Items show up as channels of the OH2 Bridge Thing.

Hello,
I did the above procedure to switch to openHAB3 but I’m running into a problem here:

System Information:
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 5.4.72-v7+
Platform = Raspberry Pi 3 Model B Rev 1.2

First I reinstalled OPENHAB 2.5.10 and then wanted to upgrade to OPENHAB 3 with the following recommended procedure:

  1. I wrote the current version “openHABian 1.6” as an image on the SD card. > ok
  2. Insert the SD card into Raspberry Pi, connect Ethernet and power on. > ok
  3. Installation of the openHAB 2.5.10 was successful. > ok
  4. According to the note above “disable ZRAM first” with openhabian-config > ok
  5. Zulu’s Open JDK 11 installed, with openhabian-config > ok

So far so good.
Decision for “fresh installation” with the following commands:

  • sudo apt purge openhab2

  • sudo apt update

    Now the Problem!

  • sudo apt install openhab

Summary

[16:01:45] openhabian@openHABianDevice:~$ sudo apt purge openhab2
[sudo] Passwort für openhabian:
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
Die folgenden Pakete werden ENTFERNT:
openhab2* openhab2-addons*
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 294 MB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] J
(Lese Datenbank … 52883 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von openhab2-addons (2.5.10-1) …
Entfernen von openhab2 (2.5.10-1) …
Trigger für systemd (241-7~deb10u4+rpi1) werden verarbeitet …
(Lese Datenbank … 51654 Dateien und Verzeichnisse sind derzeit installiert.)
Löschen der Konfigurationsdateien von openhab2 (2.5.10-1) …
userdel: Gruppe openhab nicht entfernt, da sie noch andere Mitglieder hat.
/usr/sbin/delgroup: »openhabian« hat immer noch »openhab« als primäre Gruppe!
Updating FireMotD available updates count …
[16:07:30] openhabian@openHABianDevice:~$ sudo apt update
OK:1 http://archive.raspberrypi.org/debian buster InRelease
OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Ign:3 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
OK:4 https://deb.nodesource.com/node_12.x buster InRelease
Holen:5 https://dl.bintray.com/openhab/apt-repo2 stable Release [6.051 B]
Es wurden 6.051 B in 3 s geholt (1.741 B/s).
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
Alle Pakete sind aktuell.
[18:22:32] openhabian @ openHABianDevice: ~ $ sudo apt install openhab
[sudo] password for openhabian:
Package lists are being read …
Dependency tree is built …done
Status information is read in …
Done E: Package openhab cannot be found.

Where is the problem?
Possibly, problems accessing the repository?

There is currently no release version of OH3. You need to change the repo to get either the Milestone of Snapshot version, whichever you wish to test,

For snapshots, this repository is

deb JFrog unstable main
For milestones, this repository is

deb JFrog testing main

Hello Bruce,

Thank you for your help.
I already knew that openHAB 3 did not yet exist in a release version.
But I wasn’t sure whether openHAB 3 runs with openHABian 1.6 and which adjustments and installation steps are necessary in detail to get openHAB 3.x to work.
Now I was able to successfully install openHAB 3 (Milestone 3.0.0.M2) with the information from this topic. It was difficult to fish the relevant information from the various comments, but in the end I was successful.
Many thanks to all of you who make the effort here in the forum to somehow bring the topic across.
What I have seen so far is a fantastic work and further development of openHAB by the developers.
Many thanks to all contributing developers and openHAB experts.

Here in detail the installation steps that I have carried out to get a new installation of openHAB 3 up and running, it is important to note points 4 & 5:

  1. I wrote the current version “openHABian 1.6” as an image on the SD card.
  2. Insert the SD card into Raspberry Pi, connect Ethernet and power on.
  3. Installation of the openHAB 2.5.10 was successful.
    Decision for Fresh Installation (delete openHAB 2.5.10) and Milestone version
  4. According to the notes in forum “disable ZRAM first” with openhabian-config
  5. Zulu’s Open JDK 11 installed, with openhabian-config
  6. sudo apt purge openhab2
  7. wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -
  8. sudo apt-get install apt-transport-https
  9. echo ‘deb https://openhab.jfrog.io/openhab/openhab-linuxpkg testing main’ | sudo tee /etc/apt/sources.list.d/openhab.list
  10. sudo apt-get update
  11. sudo apt-get install openhab
  12. sudo apt-get install openhab-addons
  13. sudo systemctl start openhab.service
  14. sudo systemctl status openhab.service
  15. sudo systemctl daemon-reload
  16. sudo systemctl enable openhab.service

Thx :slightly_smiling_face:

7 Likes

Sorry might not be the right place, but i’have been looking for 45min now.
How can i change the “8080” port on my rpi setup?
I’m trying to run a testsetup with OH3 next to my OH2.5 running setup.
tried:
Stop openhab

Edit the file:
/etc/default/openhab2
Uncomment the line:
#OPENHAB_HTTP_PORT=8080

And change the port number

Restart openHAB

But i can’t find this folders!

1 Like

How did you install openhab? The file location varies depensing on how you installed. For OH3 I think it should be /etc/openhab anyway. The version number has been dropped. ( I am running on Docker which is “different”.

1 Like

I installed the latest 2.5 and upgraded to 3.0
What is the filename to be edited?
I have this folder:
/etc/openhab2

1 Like

What does

dpkg -l | grep openhab

show ? It should not show openhab2, openhab2-addons.

The file that you are looking for is /etc/default/openhab.
In case you only find /etc/default/openhab2 it looks like you are still on version 2.
I saw a message in this forum where a user did not used the correct repository andthus installed openhab2 again after deinstalling it because the repo that he used was not containing OH3.

Assumed you use apt to install OH3: check content of /etc/apt/sources.list.d/ that it contains a repo configuration like described in the first post in this thread.

2 Likes