Update OpenHab2 from repository

Hi,
I’m using openhab2 since 10 month and I did perform in the past regular update with apt-get repository.
Todai I tried to perform an update, but last version available is 2.0.0~20161222013909
Persorming an apt-get update, i got this:

Get:5 https://openhab.ci.cloudbees.com  InRelease
Ign https://openhab.ci.cloudbees.com  InRelease
Get:6 https://openhab.ci.cloudbees.com  InRelease
Hit http://ftp.it.debian.org jessie/main Sources
Hit http://ftp.it.debian.org jessie/main amd64 Packages
Hit http://ftp.it.debian.org jessie/main Translation-en
Ign https://openhab.ci.cloudbees.com  InRelease
Get:7 https://openhab.ci.cloudbees.com  Release.gpg
Ign https://openhab.ci.cloudbees.com  Release.gpg
Get:8 https://openhab.ci.cloudbees.com  Release.gpg
Ign https://openhab.ci.cloudbees.com  Release.gpg
Get:9 https://openhab.ci.cloudbees.com  Release
Ign https://openhab.ci.cloudbees.com  Release
Get:10 https://openhab.ci.cloudbees.com  Release
Ign https://openhab.ci.cloudbees.com  Release
Get:11 https://openhab.ci.cloudbees.com  Packages/DiffIndex
Ign https://openhab.ci.cloudbees.com  Packages/DiffIndex
Get:12 https://openhab.ci.cloudbees.com  Translation-en_US
Get:13 https://openhab.ci.cloudbees.com  Translation-en
Get:14 https://openhab.ci.cloudbees.com  Packages/DiffIndex
Ign https://openhab.ci.cloudbees.com  Packages/DiffIndex
Get:15 https://openhab.ci.cloudbees.com  Translation-en_US
Get:16 https://openhab.ci.cloudbees.com  Translation-en
Get:17 https://openhab.ci.cloudbees.com  Packages
Get:18 https://openhab.ci.cloudbees.com  Translation-en_US
Get:19 https://openhab.ci.cloudbees.com  Translation-en
Get:20 https://openhab.ci.cloudbees.com  Packages
Get:21 https://openhab.ci.cloudbees.com  Translation-en_US
Get:22 https://openhab.ci.cloudbees.com  Translation-en
Get:23 https://openhab.ci.cloudbees.com  Packages
Get:24 https://openhab.ci.cloudbees.com  Translation-en_US
Get:25 https://openhab.ci.cloudbees.com  Translation-en
Get:26 https://openhab.ci.cloudbees.com  Packages
Get:27 https://openhab.ci.cloudbees.com  Translation-en_US
Get:28 https://openhab.ci.cloudbees.com  Translation-en
Get:29 https://openhab.ci.cloudbees.com  Packages
Get:30 https://openhab.ci.cloudbees.com  Translation-en_US
Get:31 https://openhab.ci.cloudbees.com  Translation-en
Get:32 https://openhab.ci.cloudbees.com  Packages
Get:33 https://openhab.ci.cloudbees.com  Translation-en_US
Get:34 https://openhab.ci.cloudbees.com  Translation-en
Get:35 https://openhab.ci.cloudbees.com  Packages
Get:36 https://openhab.ci.cloudbees.com  Translation-en_US
Ign https://openhab.ci.cloudbees.com  Translation-en_US
Get:37 https://openhab.ci.cloudbees.com  Translation-en
Ign https://openhab.ci.cloudbees.com  Translation-en
Get:38 https://openhab.ci.cloudbees.com  Packages
Get:39 https://openhab.ci.cloudbees.com  Translation-en_US
Ign https://openhab.ci.cloudbees.com  Translation-en_US
Get:40 https://openhab.ci.cloudbees.com  Translation-en
Ign https://openhab.ci.cloudbees.com  Translation-en
Get:41 https://openhab.ci.cloudbees.com  Packages
Err https://openhab.ci.cloudbees.com  Packages
  HttpError404
Get:42 https://openhab.ci.cloudbees.com  Packages
Err https://openhab.ci.cloudbees.com  Packages
  HttpError404
Fetched 171 kB in 12s (13.8 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.

How can I continue to update my openhab2 installation with apt?

Many Thanks

You need to update your sources.list to the correct bintray url location. This changes a few months back.

Check out the docs.

http://docs.openhab.org/installation/linux.html

Hi,
I added new repository and performed apt-get update without any isse.
But performing an apt-get upgrade, openhab-offline package will not be present in package to be upgraded:

root@OpenHab2:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils apt apt-transport-https apt-utils base-files bash bind9-host ca-certificates dbus dnsutils e2fslibs e2fsprogs eject exim4 exim4-base exim4-config exim4-daemon-light file host
  libapt-inst1.5 libapt-pkg4.12 libbind9-90 libc-bin libc-dev-bin libc6 libc6-dev libcairo2 libcomerr2 libdbus-1-3 libdns-export100 libdns100 libevent-2.0-5 libfcgi-perl libgnutls-deb0-28 libgnutls-openssl27 libhogweed2
  libio-socket-ssl-perl libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90 libisccfg90 libjasper1 liblcms2-2 liblwres90 libmagic1 libnettle4 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpng12-0
  libss2 libssl1.0.0 libsystemd0 libtiff5 libudev1 libxml2 libxpm4 linux-image-3.16.0-4-amd64 linux-libc-dev locales login multiarch-support openssl passwd sed systemd systemd-sysv tzdata udev vim-common vim-tiny w3m zabbix-agent
79 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 72.8 MB of archives.
After this operation, 521 kB disk space will be freed.
Do you want to continue? [Y/n]

The package names changed, for offline installation, you need to :

sudo apt-get install openhab2 openhab2-addons

Regards

Hi @luma
I just have openhab installed, can i run

sudo apt-get install openhab2 openhab2-addons

and it will overwrite my installation?

Regards

marco

Choose either :

  • old openhab-online become : openhab2
  • old openhab-offline become : openhab2 + openhab2-addons

The update is trivial, except if you are coming from an old snapshot with mapdb storage, there was a switch to jsondb a few weeks (months ?) ago, so you will need to add all your items again.

Hi,
I just have a jsondb version.

Marco

There were no new snapshots since 20170331, is this correct or did I miss another change?