This thread is since outdated. The openHAB snapshots/unstable builds have once again moved to a less restricted repository. The announcement below is superseded.
To always find the latest installation instructions, please consult the official documentation. The following article will always be up to date:
We are really happy about this change because we thus can provide “unstable”, “testing” and “stable” (not yet, but soon) releases with one repository.
Now the breaking change: The snapshot apt repository at cloudbees will be shutdown in the next days. As soon as is PR is merged: https://github.com/openhab/openhab-distro/pull/369.
Hence snapshot users should quickly make the transition to the new repository.
The good news: Users of the beta release don’t have to change anything!
Thanks for your patience.
We appreciate your feedback.
Regards,
Theo
PS: Me and @Benjy developed the new debian packaging and moved it to it’s own project https://github.com/openhab/openhab-linuxpkg. Please open issues regarding the debian packages or the apt repository at this projects issue tracker.
Thanks @theo and @Benjy for working on this!
I would like to add another good news about it, that you have missed to mention: Bintray is much faster than Cloudbees regarding the download speed, so the installation should be swifter now. Also, it is much more reliable, since it is really meant to be an apt repository, while the “old” one was merely a public folder of a workspace on Jenkins…
I want to make sure I’m doing this switch over right. My initial install of OpenHAB was by apt-get using the snapshot Online version(Bindings are not stored on my computer). So I should issue the following commands to change over to the new repository and update openhab:
Yup that should work for you too.
Here a little more info to the syntax that @Udo_Hartmann used: https://wiki.debian.org/AptPreferences
just in case you were wondering…Udo’s solution addressed a more specific use case (those that are on stable or beta releases and want to install the unstable branch anyway).
Just for reference: If you see the following error, it’s about time to follow the instructions posted above.
Err https://openhab.ci.cloudbees.com Packages
HttpError404
Get:53 https://openhab.ci.cloudbees.com Packages [369 B]
Err https://openhab.ci.cloudbees.com Packages
HttpError404
Fetched 9,105 kB in 21s (429 kB/s)
W: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/Packages HttpError404
W: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/Packages HttpError404
E: Some index files failed to download. They have been ignored, or old ones used instead.
Hi, I always just downloaded and extracted the latest offline snapshot artifact from cloudbees. Where are the artifacts built now? I can only see the betas on Bintray…
The snapshot artifacts can be found in the same place in cloudbees but openhab-offline is missing as openHAB process of making one single package.
This means that openhab2-online and openhab2-offline will become simply openhab2. For those looking for the offline installation, an additional addons pack can be used. This is still being tested but you can be sure that there will be more details in an announcement soon.
just performed the following steps and everything works fine with the “new” repos.
Great job, guys!
sudo service openhab2 stop
sudo tar cvfz OH2_config_save_11_01_2017.tgz /etc/openhab2/ /var/lib/openhab2/ /usr/share/openhab2/addons/
sudo apt-get --force-yes remove openhab2-offline
sudo apt-get install openhab2
cd / && tar xvfz OH2_config_save_11_01_2017.tgz
Edited again /usr/share/openhab2/runtime/bin/setenv to add
-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0
and then came the moment: sudo service openhab2 start
awaiting another night of having to correct or restore configurations or returning to a saved image of the SD-card.
BUT: everything works perfect, all devices (things) and rules are up and running, the Android Pad in the corridor shows up the latest HabPanel modifications…
Just out of curiosity: Is it anywhere documented to do it that way?
I ask, because this file should not been touched by users - instead the environment variable ${JAVA_OPTS} should be set.
the following setting has to be added/adapted on your system in file /etc/default/openhab2:
EXTRA_JAVA_OPTS=“-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyAMA0”