APT snapshot installation notice

Hello,
When executing “sudo apt-get update” I get the following error message. I have executed the above mentioned line.

W: Fehlschlag beim Holen von https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/Packages  Hash-Summe stimmt nicht überein
W: Fehlschlag beim Holen von https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/Packages  Hash-Summe stimmt nicht überein

It’s german but means “error when getting … hash sum mismatch”

my /etc/apt/sources.list.d/openhab.list
looks like this:

deb https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/ /
deb https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/ /

which should be fine right?

I feared this would happen. Your system is still clinging to the old ways :slight_smile:

Please first do the following:

sudo apt-get clean
sudo apt-get update

if you get the same error again, go one step further:

sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

Let us know which worked for you. I’ll update above

1 Like

The second one worked! Thanks for the help!

edit:
Interestingly, no new update was found (I am on the openhab2-online snapshot). I haven’t updated in a few weeks, is this normal?

+1: Same for me

There are updates nearly every day: https://oss.jfrog.org/webapp/#/builds/openHAB-Distribution
You should be able to upgrade. What do dpkg -s openhab2-online | grep Version and apt-get show openhab2-online | grep Version say?

apt-cache show openhab2-offline says: Version: 2.0.0~20160923010346
dpkg -s openhab2-offline says: Version: 2.0.0~b4

These are the different commands I tried

pi@openhabpi2:~ $ dpkg -s openhab2-online | grep Version
Version: 2.0.0~SNAPSHOT
pi@openhabpi2:~ $ apt-cache policy openhab2-online
openhab2-online:
  Installiert:           2.0.0~SNAPSHOT
  Installationskandidat: 2.0.0~SNAPSHOT
  Versionstabelle:
 *** 2.0.0~SNAPSHOT 0
        100 /var/lib/dpkg/status
     2.0.0~20160923010346 0
        500 https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/  Packages

pi@openhabpi2:~ $ apt-cache show openhab2-online
Package: openhab2-online
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 53775
Maintainer: openHAB <admin@openhab.org>
Architecture: all
Version: 2.0.0~SNAPSHOT
Depends: adduser
Conflicts: openhab2-offline
Conffiles:
 /etc/default/openhab2 0aebc16c3a7bcd26f05d65f2d01fb166
 /etc/openhab2/sitemaps/readme.txt 09bacff17a5c4b32466e82478cf68e3a
 /etc/openhab2/icons/classic/readme.txt a9efc0986ba609570d25b97919250049
 /etc/openhab2/services/readme.txt 859f6209605cb9330d794844e9749bfc
 /etc/openhab2/services/runtime.cfg b474b6cb9315184ed0d64635142084b0
 /etc/openhab2/html/index.html c3b42389d5b99437a664f5a5c45cc9cf
 /etc/openhab2/html/readme.txt eeee2cc8e81f963d2a2ecafab6ddc12d
 /etc/openhab2/scripts/readme.txt 1441965a58f2ac0e37674ae479959fe9
 /etc/openhab2/rules/readme.txt 0cc17498921bc7bf8622e652174e0dfb
 /etc/openhab2/transform/en.map f61a41a4e7ad91652408a0f97037f9d2
 /etc/openhab2/transform/readme.txt d75d4b01113cd4d0c1314a6d2caf4685
 /etc/openhab2/transform/de.map cda3ddd36f115257078eba6591a11946
 /etc/openhab2/things/readme.txt 199abee9884269b831a017ce96a537a5
 /etc/openhab2/items/readme.txt de279f1d22576e436770d8796c40f2ac
 /etc/openhab2/persistence/readme.txt bbee80ebddb4886af24f6aac6c45603f
 /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~20160923010346
Architecture: all
Maintainer: openHAB <admin@openhab.org>
Installed-Size: 53823
Depends: adduser
Filename: openhab2-online-2.0.0-SNAPSHOT.deb
Size: 49009508
MD5sum: 5704b8bb5d4f2d071f7757184e930c3b
SHA1: 1894a102e3fde525084c1449d515c9b40795fd5b
SHA256: 394115be45ba442e1cc0706fea90f1ee60b3ab573c35fce6f61fe2a3eda90521
SHA512: 6f93f58694d261b04344ab45d62c4e68557359be1e9b36baf5a905c9e4be17a12b12163596963527831fd776d78331863438a660042375ac6ce5855b1eb115eb
Section: misc
Priority: optional
Description: openHAB Online Distribution
Description-md5: 566615b009cec1b99fecc7b770cdabf5

pi@openhabpi2:~ $ dpkg -s openhab2-online
Package: openhab2-online
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 53775
Maintainer: openHAB <admin@openhab.org>
Architecture: all
Version: 2.0.0~SNAPSHOT
Depends: adduser
Conflicts: openhab2-offline
Conffiles:
 /etc/default/openhab2 0aebc16c3a7bcd26f05d65f2d01fb166
 /etc/openhab2/sitemaps/readme.txt 09bacff17a5c4b32466e82478cf68e3a
 /etc/openhab2/icons/classic/readme.txt a9efc0986ba609570d25b97919250049
 /etc/openhab2/services/readme.txt 859f6209605cb9330d794844e9749bfc
 /etc/openhab2/services/runtime.cfg b474b6cb9315184ed0d64635142084b0
 /etc/openhab2/html/index.html c3b42389d5b99437a664f5a5c45cc9cf
 /etc/openhab2/html/readme.txt eeee2cc8e81f963d2a2ecafab6ddc12d
 /etc/openhab2/scripts/readme.txt 1441965a58f2ac0e37674ae479959fe9
 /etc/openhab2/rules/readme.txt 0cc17498921bc7bf8622e652174e0dfb
 /etc/openhab2/transform/en.map f61a41a4e7ad91652408a0f97037f9d2
 /etc/openhab2/transform/readme.txt d75d4b01113cd4d0c1314a6d2caf4685
 /etc/openhab2/transform/de.map cda3ddd36f115257078eba6591a11946
 /etc/openhab2/things/readme.txt 199abee9884269b831a017ce96a537a5
 /etc/openhab2/items/readme.txt de279f1d22576e436770d8796c40f2ac
 /etc/openhab2/persistence/readme.txt bbee80ebddb4886af24f6aac6c45603f
 /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
Homepage: http://www.openhab.org
pi@openhabpi2:~ $

@SpaceGlider You are still on “SNAPSHOT”. That’s roughly one month old I would guess. You should be able to make the jump by apt install --reinstall openhab2-online.

Oh I see. I wanted to stay on the latest build as mentioned for SNAPSHOT here: http://docs.openhab.org/installation/linux.html#package-repository-installation

So isn’t SNAPSHOT the latest one? Or did I miss something?

and another edit:

pi@openhabpi2:~ $ sudo apt install --reinstall openhab2-online
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Erneute Installation von openhab2-online ist nicht möglich,
es kann nicht heruntergeladen werden.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


For me it’s:


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

@Boby: yours is up to date. Did you do a remove and install as suggested in the other thread?

@SpaceGlider While I know how you could solve this, I’m still looking for the most elegant and least destructive solution… Give me a sec.

1 Like

@ThomDietrich no hurry. you’re already my hero. :slight_smile:

@ThomDietrich: Yes, I did a remove (without purge) and a complete new install. Seems like all config files have survived this procedure :smiley:

1 Like

Thanks @Boby and @SpaceGlider, the first post is updated and should hopefully work for everyone.

2 Likes

@ThomDietrich thank you for the help, the update worked. Additionally, I had to re-enable the service after reinstalling so that it will boot on startup. Maybe worth to mention on the first post.

On an unrelated note - I would like to ask a question on the Hardware section of the Forum but it seems that I can’t. What is that related to? Thank you.

Done. Thanks. You need to post in one of the subcategories.

Thank you, this helped solve the issue!

I just want to verify that I am doing the upgrade correctly. I just started using OpenHAB2 3 or 4 weeks ago. I installed it by the apt-get method using the snapshot release on to a raspberry pi. To update it I would just do a apt-get update and then apt-get upgrade? I thought I read in another thread that my bindings and addons could all be deleted. Is this true?

Yes, at the moment this is true. There is an open issue for this problem.

To prevent this, you have to add all your bindings/addons to the addons.cfg file. Then they will be preserved or re-installed automatically. Your settings will noch be deleted.

Mike,
bad timing, please check New folder structure

The bad thing: apt upgrade is not working right now
The good thing: this change resolves all problems with occasional setting deletions.