Seite 2 von 4

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 21:29
von udo1toni
Bitte keine Screenshots! Du kannst den Text einfach markieren, falls mit ssh über die Eingabaufforderung unterwegs drückst Du anschließend die Eingabtaste und hast den Text in der Zwischenablage, falls du mit PuTTY unterwegs bist, ist der markierte Text unmittelbar in der Zwischenablage.

Und ehrlich: MindnightCommander um nach einer Datei zu schauen? ls -l /etc/apt/sources.list.d/ ist zu kompliziert?
Manchmal habe ich das Gefühl, viele Probleme rühren daher, dass die Anwender nicht akzeptieren, einfache Werkzeuge zu nutzen und partout auf komplexe Werkzeuge ausweichen... (sorry, bin gerade etwas auf Krawall gebürstet... nicht gegen Dich gerichtet)

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 21:30
von Boris099
Ich habe nun mal versucht die empfohlenen Pakete in Openhabian-Config zu installieren, der bleibt imer an der selben Stelle kleben

Code: Alles auswählen

2022-02-09_21:22:33_CET [openHABian] openHABian configuration tool version: [stable]patchday-20210119-1121(1c01b34)
2022-02-09_21:22:34_CET [openHABian] Checking for changes in origin branch stable... OK
2022-02-09_21:22:36_CET [openHABian] Switching to branch stable... OK
2022-02-09_21:22:45_CET [openHABian] Updating Linux package information... OK

$ sed -i -e s|^java_opt.*$|java_opt=Zulu8-32| /etc/openhabian.conf 

$ java -version 
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
2022-02-09_21:24:39_CET [openHABian] Updating Linux package information... OK

$ sed -i -e s|^java_opt.*$|java_opt=Zulu8-32| /etc/openhabian.conf 

$ java -version 
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
2022-02-09_21:24:48_CET [openHABian] Updating Linux package information... OK
2022-02-09_21:24:48_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... 
$ apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
acl is already the newest version (2.2.53-4).
arping is already the newest version (2.19-6).
bash-completion is already the newest version (1:2.8-6).
bzip2 is already the newest version (1.0.6-9.2~deb10u1).
curl is already the newest version (7.64.0-4+deb10u2).
dirmngr is already the newest version (2.2.12-1+rpi1+deb10u1).
git is already the newest version (1:2.20.1-2+deb10u3).
htop is already the newest version (2.2.0-1).
man-db is already the newest version (2.8.5-2).
mc is already the newest version (3:4.8.22-1).
multitail is already the newest version (6.4.2-3).
nano is already the newest version (3.2-3).
screen is already the newest version (4.6.2-3+deb10u1).
software-properties-common is already the newest version (0.96.20.2-2).
unzip is already the newest version (6.0-23+deb10u2).
usbutils is already the newest version (1:010-3).
util-linux is already the newest version (2.33.1-0.1).
vfu is already the newest version (4.16+repack-1).
vim is already the newest version (2:8.1.0875-5).
wget is already the newest version (1.20.1-1.1).
whiptail is already the newest version (0.52.20-8).
xz-utils is already the newest version (5.2.4-1).
zip is already the newest version (3.0-11).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
N: Ignoring file 'openhab2.liste' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
OK
2022-02-09_21:24:51_CET [openHABian] Installing additional needed packages... 
$ apt-get install --yes apt-transport-https bc sysstat jq moreutils avahi-daemon python3 python3-pip python3-wheel python3-setuptools avahi-autoipd fontconfig 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.8.2.3).
avahi-autoipd is already the newest version (0.7-4+deb10u1).
avahi-daemon is already the newest version (0.7-4+deb10u1).
bc is already the newest version (1.07.1-2).
fontconfig is already the newest version (2.13.1-2).
jq is already the newest version (1.5+dfsg-2+b1).
moreutils is already the newest version (0.62-1+b1).
python3 is already the newest version (3.7.3-1).
python3-setuptools is already the newest version (40.8.0-1).
python3-wheel is already the newest version (0.32.3-2).
sysstat is already the newest version (12.0.3-2).
python3-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
N: Ignoring file 'openhab2.liste' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
OK
2022-02-09_21:24:54_CET [openHABian] Installing pigpio package... 
$ apt-get install --yes pigpio 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
pigpio is already the newest version (1.79-1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
N: Ignoring file 'openhab2.liste' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
OK
2022-02-09_21:24:56_CET [openHABian] Installing additional bluetooth packages... 
$ apt-get install --yes bluez python3-dev libbluetooth-dev raspberrypi-sys-mods pi-bluetooth python3-bluez 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-bluez is already the newest version (0.22+really0.22-1).
python3-dev is already the newest version (3.7.3-1).
bluez is already the newest version (5.50-1.2~deb10u2+rpt1).
libbluetooth-dev is already the newest version (5.50-1.2~deb10u2+rpt1).
pi-bluetooth is already the newest version (0.1.18).
raspberrypi-sys-mods is already the newest version (20211005).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
N: Ignoring file 'openhab2.liste' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
OK
2022-02-09_21:25:03_CET [openHABian] Checking for default openHABian username:password combination... OK
2022-02-09_21:25:03_CET [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@openhab:~ $ sudo openhabian-config
2022-02-09_21:26:42_CET [openHABian] Checking for root privileges... OK
2022-02-09_21:26:42_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-02-09_21:26:42_CET [openHABian] openHABian configuration tool version: [stable]patchday-20210119-1121(1c01b34)
2022-02-09_21:26:43_CET [openHABian] Checking for changes in origin branch stable... OK
2022-02-09_21:26:45_CET [openHABian] Switching to branch stable... OK
2022-02-09_21:26:54_CET [openHABian] Updating Linux package information... OK

$ sed -i -e s|^java_opt.*$|java_opt=Zulu8-32| /etc/openhabian.conf 

$ java -version 
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
2022-02-09_21:27:32_CET [openHABian] Checking for default openHABian username:password combination... OK
2022-02-09_21:27:32_CET [openHABian] We hope you got what you came for! See you again soon ;)

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 21:31
von Boris099
aber da ist nicht mehr :-(

Code: Alles auswählen

openhabian@openhab:~ $ ls -l /etc/apt/sources.list.d/
total 20
-rw-r--r-- 1 root root 110 Aug  6  2020 nodesource.list
-rw-r--r-- 1 root root  70 Jun  4  2021 openhab2.list
-rw-r--r-- 1 root root  57 Aug  6  2020 openhab2.liste
-rw-r--r-- 1 root root 187 Jul 10  2019 raspi.list
-rw-r--r-- 1 root root  41 Mar 12  2021 vscode.list

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 21:34
von udo1toni
Das Problem ist doch eindeutig, dass die Paketquelle fehlt. Lege bitte die oben beschriebene Datei an:

Code: Alles auswählen

sudo nano /etc/apt/sources.list.d/zulu-openjdk.list
Dann füllst Du die Datei mit dieser Zeile:

Code: Alles auswählen

deb http://repos.azulsystems.com/debian stable main
Danach einmal

Code: Alles auswählen

sudo apt update
und nun versuchen. java zu installieren (ob nun über openhabian-config oder mit

Code: Alles auswählen

sudo apt install zulu8

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 21:38
von Boris099
OK erster Teil :-)

Code: Alles auswählen

openhabian@openhab:~ $ sudo apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease                                                                                     
Ign:3 http://repos.azulsystems.com/debian stable InRelease                                                                                       
Get:4 http://repos.azulsystems.com/debian stable Release [8,606 B]                                                                               
Get:5 http://repos.azulsystems.com/debian stable Release.gpg [833 B]                                                                  
Hit:6 https://deb.nodesource.com/node_12.x buster InRelease                                          
Hit:7 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease                        
Ign:5 http://repos.azulsystems.com/debian stable Release.gpg
Reading package lists... Done
N: Ignoring file 'openhab2.liste' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: GPG error: http://repos.azulsystems.com/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B1998361219BD9C9
E: The repository 'http://repos.azulsystems.com/debian stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Nun versuche ich die Installation mit Openhabian-config

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 21:41
von Boris099
Geht leider nicht mit Openhabian-config und auch nicht mit sudo apt install zulu8.
Ich mache mal noch nen Neustart

Code: Alles auswählen

sudo openhabian-config
2022-02-09_21:39:00_CET [openHABian] Checking for root privileges... OK
2022-02-09_21:39:01_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-02-09_21:39:01_CET [openHABian] openHABian configuration tool version: [stable]patchday-20210119-1121(1c01b34)
2022-02-09_21:39:01_CET [openHABian] Checking for changes in origin branch stable... OK
2022-02-09_21:39:04_CET [openHABian] Switching to branch stable... OK
2022-02-09_21:39:10_CET [openHABian] Updating Linux package information... OK

$ sed -i -e s|^java_opt.*$|java_opt=Zulu8-32| /etc/openhabian.conf 

$ java -version 
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
2022-02-09_21:39:21_CET [openHABian] Checking for default openHABian username:password combination... OK
2022-02-09_21:39:21_CET [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@openhab:~ $ sudo apt install zulu8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
N: Ignoring file 'openhab2.liste' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package zulu8

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 21:46
von Boris099
Also auch nach dem Neustart bekomme bei einem Installationsversuch über OH-Config
(hat übrigens ziemlich lange gedauert bis die Fehlermeldung kam...

Code: Alles auswählen

2022-02-09_21:43:45_CET [openHABian] Checking for root privileges... OK
2022-02-09_21:43:46_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-02-09_21:43:46_CET [openHABian] openHABian configuration tool version: [stable]patchday-20210119-1121(1c01b34)
2022-02-09_21:43:47_CET [openHABian] Checking for changes in origin branch stable... OK
2022-02-09_21:43:49_CET [openHABian] Switching to branch stable... OK
2022-02-09_21:43:56_CET [openHABian] Updating Linux package information... OK

$ sed -i -e s|^java_opt.*$|java_opt=Zulu8-32| /etc/openhabian.conf 

$ java -version 
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 22:23
von udo1toni
Nein, es steht ja schon da, dass der Schlüssel nicht eingerichtet ist...
Führe bitte

Code: Alles auswählen

sudo apt-key adv \
  --keyserver hkp://keyserver.ubuntu.com:80 \
  --recv-keys 0xB1998361219BD9C9
aus, das fügt den Schlüssel zum Schlüsselring hinzu.

Code: Alles auswählen

NO_PUBKEY B1998361219BD9C9
ist die entscheidende Info :)
Danach nochmal mit sudo apt update starten.

By the way, da ist eine Meldung, dass im Verzeichnis /etc/apt/sources.list.d/ eine Datei openhab2.liste liegt. Das ist eine Altlast, die kannst Du entfernen.

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 22:37
von Boris099
Da klemmt noch was

Code: Alles auswählen

openhabian@openhab:~ $ sudo apt-key adv \
>   --keyserver hkp://keyserver.ubuntu.com:80 \
>   --recv-keys 0xB1998361219BD9C9
Executing: /tmp/apt-key-gpghome.tosuyveV9B/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
gpg: keyserver receive failed: Server indicated a failure

Re: Hilfe! Openhab abgeschossen beim Update

Verfasst: 9. Feb 2022 22:45
von udo1toni
Ich kann das hier nicht nachvollziehen, hier funktioniert der Import klaglos (mal abgesehen davon, dass der Weg veraltet ist...)