Alrighty, I think we’ll need to straighten a few things out first. Hopefully I can help here!
From the information you provided I can say:
- You’re currently reading from an old repository.
- It looks as though you’re using the snapshot version of 2.0.0, which is older than the official release of 2.0.0
- You are indeed on an automatic install, but are reading the update instructions for the manual process.
Let’s sort these out in order, as always I’d recommend taking a backup first and check the change log for 2.1.0 and any change that affects you
1. Switching to the latest repository.
The snapshot builds are available on a service called “Artifactory”, previously, they were on a service called Bintray. openHAB was told to move the snapshots, so anyone using Bintray needs to redirect to the new location. As mentioned in the installation docs, the commands to do this are:
wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -
sudo apt-get install apt-transport-https
echo 'deb https://openhab.jfrog.io/openhab/openhab-linuxpkg unstable main' | sudo tee /etc/apt/sources.list.d/openhab2.list
2. Upgrading to 2.2.0 Snapshots
The snapshots always follow the version number of the next unreleased version of openHAB, since 2.1.0 is released then the snapshots will be called “2.2.0~[TIMESTAMP]-1”.
On the version that you’re on, openHAB came in two packages called “openhab2-online” and “openhab2-offline”, the reason why it’s not updating at the moment is because the package is now just one thing called openhab2
where it’s trying to find the latest package called openhab2-online
. To switch to this, just install openhab2
and the older package will be dealt with automatically:
sudo apt-get update
sudo apt-get install openhab2
3. Upgrading to the next nightly and so on
You’re all set! From now on, update openHAB just as you would any other Linux program:
sudo apt-get update
sudo apt-get upgrade
The update script only works for manual installations, hence why it’s not working for you.
Let me know how you get on! Good luck!