Can't manage to update to openhab 2.1 snapshot from openhabian

hi guys,
After several attempts i can’t upgrade to openhab 2.1 snapshot from openhabian OH2.0

I first installed openhabian. Than I took the following steps:

  1. wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -
    sudo apt-get install apt-transport-https
  2. echo ‘deb https://openhab.jfrog.io/openhab/openhab-linuxpkg unstable main’ | sudo tee /etc/apt/sources.list.d/openhab2.list
  3. sudo apt-get update
  4. sudo apt-get install openhab2

Did this two times but no succes.

What goes wrong?

This is a little part of the output on the terminal:

[09:31:20] openhabian@openHABianPi:~$ sudo apt-get install openhab2
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
openhab2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/52.7 MB of archives.
After this operation, 1,618 kB of additional disk space will be used.
Reading changelogs… Done
(Reading database … 39643 files and directories currently installed.)
Preparing to unpack …/openhab2_2.1.0~20170601041314-1_all.deb …
Unpacking openhab2 (2.1.0~20170601041314-1) over (2.0.0-1) …
dpkg: error processing archive /var/cache/apt/archives/openhab2_2.1.0~20170601041314-1_all.deb (–unpack):
unable to clean up mess surrounding ./usr/share/openhab2/runtime/system/org/apache/felix/org.apache.felix.fram ework/5.6.1' before installing another version: Read-only file system dpkg: error while cleaning up: unable to restore backup version of/usr/share/openhab2/runtime/system/org/apache/felix/org.apache.felix.scr.c ompat/1.0.4/org.apache.felix.scr.compat-1.0.4.jar’: Read-only file system
dpkg: error while cleaning up:
unable to restore backup version of /usr/share/openhab2/runtime/system/org/glassfish/jersey/containers/jersey- container-servlet/2.22.2/jersey-container-servlet-2.22.2.jar': Read-only file system dpkg: error while cleaning up: unable to restore backup version of/usr/share/openhab2/runtime/system/org/glassfish/jersey/containers/jersey- container-servlet-core/2.22.2/jersey-container-servlet-core-2.22.2.jar’: Read-only file system
dpkg: error while cleaning up:
unable to restore backup version of `/usr/share/openhab2/runtime/system/org/glassfish/jersey/bundles/repackaged /jersey-guava/2.22.2/jersey-guava-2.22.2.jar’: Read-only file system

If using openhabian, you should have used openhabian-config to download and configure the whole system. See http://docs.openhab.org/installation/openhabian.html for details.

I tried but that doesn’t work with the unstable version. Keeps restarting at version OH2.0.
So i tried it manually.

Sure it works with the unstable version :slight_smile: take a look at openHABian hassle-free openHAB Setup
Keep in mind to use the latest version of openhabian image :slight_smile: there is an extra option to install either stable or unstable version.

1 Like

Thanks, i did a fresh install and now it worked :slight_smile: