- Platform information:
- Hardware: RPi 4
- R PI OS (recommended) Release date: March 4th 2021 Kernel version: 5.10 Size: 2,868MB
- Java Zulu 11 installed but not the problem
- openHAB version: Stable 3.0.1 (or -2)
- Following the instructions in the undeer the Rasberry Pi, Manual setup down to Install of openHab.
People have not been able understand the above link description so here is a link to the Documenation / Raspbery Pi / Instation of openhab
https://www.openhab.org/docs/installation/rasppi.html#installation-of-openhab
from the terminal log :-
pi@pg-p4-2-407:/opt/jdk $ wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -
OK
pi@pg-p4-2-407:/opt/jdk $ sudo apt-get update
Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Fetched 15.0 kB in 1s (17.4 kB/s)
Reading package lists… Done
As stated the wget reply’s “OK”
But when I next do a “sudo apt-get update” only has the inrelease buster repository and none of the Openhab repositry.
The wget statment does not work says OK, but has not included the bintray.com entries in to the repo list for “apt-get”
Had run wget with out -qO but due to a small accident lost the RPI 4 and 1TB hdd to Coke spillage.
(How luck - RPI4 and 1TB hdd are fine)
That the error is to do with the “username=openhab” .
From terminal (using modified “wget” removed -qO)
wget - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -
–2021-04-05 04:04:51-- http://-/
Resolving - (-)… failed: Name or service not known.
wget: unable to resolve host address \u2018-\u2019
–2021-04-05 04:04:51-- https://bintray.com/user/downloadSubjectPublicKey?username=openhab
Resolving bintray.com (bintray.com)… 75.126.208.206
Connecting to bintray.com (bintray.com)|75.126.208.206|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [application/octet-stream]
downloadSubjectPublicKey?username=openhab: Permission denied
Cannot write to \u2018downloadSubjectPublicKey?username=openhab\u2019 (Permission denied).
gpg: no valid OpenPGP data found.
There is no user on the RPI at this point called “openhab” only user "root / pi /other specific to RPI OS)
from terminal :-
cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-timesync:x:100:102:systemd Time Synchronization,:/run/systemd:/usr/sbin/nologin
systemd-network:x:101:103:systemd Network Management,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:102:104:systemd Resolver,:/run/systemd:/usr/sbin/nologin
_apt:x:103:65534::/nonexistent:/usr/sbin/nologin
pi:x:1000:1000:,:/home/pi:/bin/bash
messagebus:x:104:110::/nonexistent:/usr/sbin/nologin
_rpc:x:105:65534::/run/rpcbind:/usr/sbin/nologin
statd:x:106:65534::/var/lib/nfs:/usr/sbin/nologin
sshd:x:107:65534::/run/sshd:/usr/sbin/nologin
avahi:x:108:113:Avahi mDNS daemon,:/var/run/avahi-daemon:/usr/sbin/nologin
lightdm:x:109:114:Light Display Manager:/var/lib/lightdm:/bin/false
rtkit:x:110:116:RealtimeKit,:/proc:/usr/sbin/nologin
pulse:x:111:119:PulseAudio daemon,:/var/run/pulse:/usr/sbin/nologin
saned:x:112:122::/var/lib/saned:/usr/sbin/nologin
hplip:x:113:7:HPLIP system user,:/var/run/hplip:/bin/false
colord:x:114:123:colord colour management daemon,:/var/lib/colord:/usr/sbin/nologin
systemd-coredump:x:996:996:systemd Core Dumper:/:/usr/sbin/nologin
No openhab user configure at this point in the install from a clean OS starting point.