{"action":"closed","issue":{"url":"https://api.github.com/repos/openhab/openhab/issues/4711","repository_url":"https://api.github.com/repos/openhab/openhab","labels_url":"https://api.github.com/repos/openhab/openhab/issues/4711/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/4711/comments","events_url":"https://api.github.com/repos/openhab/openhab/issues/4711/events","html_url":"https://github.com/openhab/openhab/issues/4711","id":183384342,"number":4711,"title":"Installing openhab2 snapshot from repository on raspberry pi fails","user":{"login":"mihalski","id":3755059,"avatar_url":"https://avatars.githubusercontent.com/u/3755059?v=3","gravatar_id":"","url":"https://api.github.com/users/mihalski","html_url":"https://github.com/mihalski","followers_url":"https://api.github.com/users/mihalski/followers","following_url":"https://api.github.com/users/mihalski/following{/other_user}","gists_url":"https://api.github.com/users/mihalski/gists{/gist_id}","starred_url":"https://api.github.com/users/mihalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihalski/subscriptions","organizations_url":"https://api.github.com/users/mihalski/orgs","repos_url":"https://api.github.com/users/mihalski/repos","events_url":"https://api.github.com/users/mihalski/events{/privacy}","received_events_url":"https://api.github.com/users/mihalski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T10:51:30Z","updated_at":"2016-10-17T10:56:30Z","closed_at":"2016-10-17T10:56:30Z","body":"Hi,\r\n\r\nI am having a look at openhab due to it's zwave support and homebridge bindings (thus allowing motion sensor integration with homekit). Having followed the instructions on installing openhab2 on a raspbeery pi I encountered the following error:\r\n\r\n```\r\npi@homepi:~ $ sudo apt-get install openhab2-online\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nThe following NEW packages will be installed:\r\n  openhab2-online\r\n0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.\r\nNeed to get 0 B/48.7 MB of archives.\r\nAfter this operation, 54.8 MB of additional disk space will be used.\r\n(Reading database ... 37653 files and directories currently installed.)\r\nPreparing to unpack .../openhab2-online_2.0.0~20161017033125_all.deb ...\r\ndpkg: error processing archive /var/cache/apt/archives/openhab2-online_2.0.0~20161017033125_all.deb (--unpack):\r\n subprocess new pre-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n /var/cache/apt/archives/openhab2-online_2.0.0~20161017033125_all.deb\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\n```\r\n\r\nIt appears that there is a problem with the pre-installation script, but I am unable to identify it. Here is what is currently in the script:\r\n\r\n```\r\n#!/bin/sh\r\n\r\nset -e\r\n\r\nUD_CACHE=/var/lib/openhab2/cache\r\nUD_TMP=/var/lib/openhab2/tmp\r\n\r\nremoveCache(){\r\n    [ -d ${UD_CACHE} ] && rm -rf ${UD_CACHE}\r\n    [ -d ${UD_TMP} ] && rm -rf ${UD_TMP}\r\n}\r\n\r\ncase \"$1\" in\r\n        install)\r\n        removeCache\r\n                OH_USER=openhab\r\n                OH_GROUP=openhab\r\n                if [ x\"${USER_AND_GROUP}\" != x ]; then\r\n                        OH_USER=`echo ${USER_AND_GROUP} | cut -d \":\" -f 1`\r\n                        OH_GROUP=`echo ${USER_AND_GROUP} | cut -d \":\" -f 2`\r\n                fi\r\n                if ! getent group \"$OH_GROUP\" > /dev/null 2>&1 ; then\r\n                        addgroup --system \"$OH_GROUP\" --quiet\r\n                fi\r\n                if ! getent passwd \"$OH_USER\" > /dev/null 2>&1 ; then\r\n                        adduser --quiet --system --ingroup \"$OH_GROUP\" --no-create-home \\\r\n                        --disabled-password --shell /bin/false \\\r\n                        --gecos \"openhab2 runtime user\" --home /var/lib/openhab2 \"$OH_USER\"\r\n                fi\r\n                ;;\r\nesac\r\n```\r\n\r\nI am running a current version of raspbian on a raspberry pi 3 with all the latest updates and have followed the instructions as stated above.\r\n\r\nRegards,\r\nMichal"}}
{"actor":{"display_login":"watou"}}