Upgrade from testing to snapshot

Hi,
I’m trying to upgrade one of my instances to snapshot, but apt is not seem to pick up the new versions:

apt-cache show openhab2-online
Package: openhab2-online
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 53206
Maintainer: openHAB <admin@openhab.org>
Architecture: all
Version: 2.0.0~b4
Depends: adduser
Conflicts: openhab2-offline
Conffiles:
 /etc/default/openhab2 0aebc16c3a7bcd26f05d65f2d01fb166
 /etc/openhab2/html/index.html c3b42389d5b99437a664f5a5c45cc9cf
 /etc/openhab2/html/readme.txt eeee2cc8e81f963d2a2ecafab6ddc12d
 /etc/openhab2/icons/classic/readme.txt a9efc0986ba609570d25b97919250049
 /etc/openhab2/items/readme.txt de279f1d22576e436770d8796c40f2ac
 /etc/openhab2/persistence/readme.txt bbee80ebddb4886af24f6aac6c45603f
 /etc/openhab2/rules/readme.txt 0cc17498921bc7bf8622e652174e0dfb
 /etc/openhab2/scripts/readme.txt 1441965a58f2ac0e37674ae479959fe9
 /etc/openhab2/services/readme.txt 859f6209605cb9330d794844e9749bfc
 /etc/openhab2/services/runtime.cfg b474b6cb9315184ed0d64635142084b0
 /etc/openhab2/sitemaps/readme.txt 09bacff17a5c4b32466e82478cf68e3a
 /etc/openhab2/things/readme.txt 199abee9884269b831a017ce96a537a5
 /etc/openhab2/transform/de.map cda3ddd36f115257078eba6591a11946
 /etc/openhab2/transform/en.map f61a41a4e7ad91652408a0f97037f9d2
 /etc/openhab2/transform/readme.txt d75d4b01113cd4d0c1314a6d2caf4685
 /var/lib/openhab2/etc/java.util.logging.properties adb9f5b39047b64b12a6dc4834afc76e
 /var/lib/openhab2/etc/jetty.xml e0780534e9e3e7c7b59aaadd45137209
 /var/lib/openhab2/etc/keystore 936040b89edd5ef52bbe60b4250ad05e
 /var/lib/openhab2/deploy/README 28c04618e86aa55a2208320dc5c9960c
 /var/lib/openhab2/tmp/README 4978d8f2a2800148bba63fd4ed226b83
 /etc/openhab2/services/addons.cfg cc25e8b95f71af2c68a0e8793bc5fa27
Description: openHAB Online Distribution
Description-md5: 566615b009cec1b99fecc7b770cdabf5
Homepage: http://www.openhab.org

Package: openhab2-online
Version: 2.0.0~20161108033139
Architecture: all
Maintainer: openHAB <admin@openhab.org>
Installed-Size: 53520
Depends: adduser
Filename: openhab2-online-2.0.0-SNAPSHOT.deb
Size: 48736164
MD5sum: 77d1181f9e651a4081486529f9399b83
SHA1: c79ee9041c0fb4c9619d5f302f79bc992f216b71
SHA256: 8c0fb00c991e7607eea8942f62c427ae2fc1c2df69bcce70309c5f50a02d2ab2
SHA512: f85075816837fe0f3a12f3911bdf1d7fa1cb7fdf5814a37ecc663674fe3ff4169cd5e5bdee6566d0756ad7fedb51ded0cfbf628ffeae6f9bebcb07bd1b3a1c68
Section: misc
Priority: optional
Description: openHAB Online Distribution
Description-md5: 566615b009cec1b99fecc7b770cdabf5

But

dpkg -l |grep openhab2
ii  openhab2-online                       2.0.0~b4                              all          openHAB Online Distribution
root@htpc:/etc/apt/sources.list.d# apt-get install openhab2-online
Reading package lists... Done
Building dependency tree
Reading state information... Done
openhab2-online is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Is this path even supported? Do you guys have any hints how to force apt to pick up new version

I would suggest to back up config / userdata, then apt-get purge openhab2-online

The repository is different for the snapshots than the beta. You need to include the cloudbees repo and remove the bintray repos from apt. See

http://docs.openhab.org/installation/linux.html#package-repository-installation

cloudbees repo is added already, just take a look at the apt-cache output. I think the problem is in versioning, apt does not consider snapshot versions newer than testing. It’s against Debian policies: https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version. I would consider this a bug