Ubuntu 15.10 armhf Installation auf ODROID-XU4

Hallo,
ich habe einen ODROID-XU4 mit Ubuntu 15.10. Da die Current Homegear version: 0.5.25-1 nicht für wily geeignet ist, habe ich mir den Nightly Build Ubuntu 15.10 (Wily Werewolf) armhf 0.6.0-1305 runtergeladen. Die libhomegear-base installierte ich erfolgreich. Die Prequisites unter “Installing and Configuring Homegear”, Heading “Installing from Debian/Raspbian Package” habe ich auch erfüllt. Wenn ich aber nun das libhomegear-base_current_ubuntu_wily_armhf.deb package installieren möchte, bekomme ich folgende Fehlermeldung:

[code]odroid@odroid:/var/cache/apt/archives$ sudo dpkg -i libhomegear-base_current_ubuntu_wily_armhf.deb
(Reading database … 167274 files and directories currently installed.)
Preparing to unpack libhomegear-base_current_ubuntu_wily_armhf.deb …
homegear: unrecognized service
Unpacking libhomegear-base (0.6.0-1305) over (0.6.0-1305) …
Setting up libhomegear-base (0.6.0-1305) …
Processing triggers for libc-bin (2.21-0ubuntu4.1) …
odroid@odroid:/var/cache/apt/archives$ sudo dpkg -i homegear_current_ubuntu_wily_armhf.deb
Selecting previously unselected package homegear.
(Reading database … 167274 files and directories currently installed.)
Preparing to unpack homegear_current_ubuntu_wily_armhf.deb …
Unpacking homegear (0.6.0-1305) …
Setting up homegear (0.6.0-1305) …
chmod: cannot access ‘/etc/homegear/rpcclients.conf’: No such file or directory
chown: cannot access ‘/etc/homegear/rpcclients.conf’: No such file or directory
–2016-04-25 15:55:23-- https://homegear.eu/downloads/Homegear_PHP_XMLRPC_Client.zip
Resolving homegear.eu (homegear.eu)… 62.75.235.71
Connecting to homegear.eu (homegear.eu)|62.75.235.71|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4599 (4.5K) [application/zip]
Saving to: ‘/tmp/HomegearScriptsDir/Homegear_PHP_XMLRPC_Client.zip’

Homegear_PHP_XMLRPC_Clien 100%[=====================================>] 4.49K --.-KB/s in 0s

2016-04-25 15:55:29 (8.87 MB/s) - ‘/tmp/HomegearScriptsDir/Homegear_PHP_XMLRPC_Client.zip’ saved [4599/4599]

Archive: /tmp/HomegearScriptsDir/Homegear_PHP_XMLRPC_Client.zip
inflating: /tmp/HomegearScriptsDir/Connect.php
inflating: /tmp/HomegearScriptsDir/GetID.php
creating: /tmp/HomegearScriptsDir/HM-XMLRPC-Client/
inflating: /tmp/HomegearScriptsDir/HM-XMLRPC-Client/Client.php
inflating: /tmp/HomegearScriptsDir/ReadMe.txt
inflating: /tmp/HomegearScriptsDir/Test.php
Generating RSA private key, 2048 bit long modulus
…+++
…+++
e is 65537 (0x10001)
Signature ok
subject=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
Getting Private key
Generating DH parameters, 1024 bit long safe prime, generator 5
This is going to take a long time
…+…+…+…+…+…+…+…+…+…+…++++++*
DH parameters appear to be ok.
/var/lib/dpkg/info/homegear.postinst: 69: /var/lib/dpkg/info/homegear.postinst: insserv: not found
dpkg: error processing package homegear (–install):
subprocess installed post-installation script returned error exit status 127
Processing triggers for systemd (225-1ubuntu9.1) …
Processing triggers for ureadahead (0.100.0-19) …
Errors were encountered while processing:
homegear[/code]

Versuche ich nun Homegear zu starten, erhalte ich folgenden Fehler:

root@odroid:/var/cache/apt/archives# homegear -r 04/25/16 15:59:32.590 Unable to open config file: /etc/homegear/main.conf. No such file or directory 04/25/16 15:59:32.591 Unable to open config file: /etc/homegear/main.conf. No such file or directory 04/25/16 15:59:34.591 Could not connect to socket. Error: No such file or directory 04/25/16 15:59:34.591 Could not connect to socket. Error: No such file or directory

Es werden auch keine Logfiles kreiert. Der Ordner /var/log/homegear bleibt leer.

Woran kann das liegen?

Vielen Dank im Voraus,

Sunacni

Ich bin nun ein wenig weiter gekommen. Ich hatte die libgnutlsxx27 noch nicht hinzugefügt. Nun sieht meine Fehlermeldung wie folgt aus:

[code]odroid@odroid:/var/cache/apt/archives$ sudo dpkg -i homegear_current_ubuntu_wily_armhf.deb
Selecting previously unselected package homegear.
(Reading database … 176223 files and directories currently installed.)
Preparing to unpack homegear_current_ubuntu_wily_armhf.deb …
Unpacking homegear (0.6.0-1305) …
Setting up homegear (0.6.0-1305) …
–2016-04-29 08:48:09-- https://homegear.eu/downloads/Homegear_PHP_XMLRPC_Client.zip
Resolving homegear.eu (homegear.eu)… 62.75.235.71
Connecting to homegear.eu (homegear.eu)|62.75.235.71|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4599 (4.5K) [application/zip]
Saving to: ‘/tmp/HomegearScriptsDir/Homegear_PHP_XMLRPC_Client.zip’

Homegear_PHP_XMLRPC 100%[=====================>] 4.49K --.-KB/s in 0s

2016-04-29 08:48:09 (33.8 MB/s) - ‘/tmp/HomegearScriptsDir/Homegear_PHP_XMLRPC_Client.zip’ saved [4599/4599]

Archive: /tmp/HomegearScriptsDir/Homegear_PHP_XMLRPC_Client.zip
inflating: /tmp/HomegearScriptsDir/Connect.php
inflating: /tmp/HomegearScriptsDir/GetID.php
creating: /tmp/HomegearScriptsDir/HM-XMLRPC-Client/
inflating: /tmp/HomegearScriptsDir/HM-XMLRPC-Client/Client.php
inflating: /tmp/HomegearScriptsDir/ReadMe.txt
inflating: /tmp/HomegearScriptsDir/Test.php
Generating RSA private key, 2048 bit long modulus
…+++
…+++
e is 65537 (0x10001)
Signature ok
subject=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
Getting Private key
Generating DH parameters, 1024 bit long safe prime, generator 5
This is going to take a long time
…+…+…+…+.+…+…+…+…+…+…+…+.+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…+…++++++*
DH parameters appear to be ok.
/var/lib/dpkg/info/homegear.postinst: 69: /var/lib/dpkg/info/homegear.postinst: insserv: not found
dpkg: error processing package homegear (–install):
subprocess installed post-installation script returned error exit status 127
Processing triggers for systemd (225-1ubuntu9.1) …
Processing triggers for ureadahead (0.100.0-19) …
Errors were encountered while processing:
homegear[/code]

nachdem ich den Service starte erhalte ich folgende Fehlermeldung:

[code]odroid@odroid:/var/cache/apt/archives$ sudo service homegear start
chmod: cannot access ‘/var/lib/homegear/db.sql’: No such file or directory
chmod: cannot access ‘/usr/share/homegear/firmware’: No such file or directory
chmod: cannot access ‘/usr/share/homegear/firmware/’: No such file or directory
chmod: cannot access ‘/usr/share/homegear/firmware/GetFirmwareUpdates
.sh’: No such file or directory

  • Starting Homegear homegear 04/29/16 09:23:25.120 Loading RPC server settings from /etc/homegear/rpcservers.conf
    04/29/16 09:23:25.122 Loading RPC client settings from /etc/homegear/rpcclients.conf
    cat: /boot/cmdline.txt: No such file or directory
    [ OK ][/code]

Die homegear.err Datei enthält folgende Zeilen:

04/29/16 09:23:25.255 RPC Server (Port 2001): Error in file RPC/RPCServer.cpp line 1668 in function void RPC::RPCServer::getSocketDescriptor(): No IP address could be found: Success 04/29/16 09:23:25.271 RPC Server (Port 2002): Error in file RPC/RPCServer.cpp line 1668 in function void RPC::RPCServer::getSocketDescriptor(): No IP address could be found: Success 04/29/16 09:23:25.284 RPC Server (Port 2003): Error in file RPC/RPCServer.cpp line 1668 in function void RPC::RPCServer::getSocketDescriptor(): No IP address could be found: Success 04/29/16 09:23:25.285 UPnP Server: Error in file UPnP/UPnP.cpp line 183 in function void UPnP::getAddress(): No IP address could be found: No such file or directory 04/29/16 09:23:25.286 UPnP Server: Error: Could not get IP address. 04/29/16 09:23:25.286 Warning: Not starting server, because no suitable RPC server for serving the XML description is available (Necessary settings: No SSL, no auth, webserver enabled).

Die homegear.log Datei enthält folgende letzte Zeilen:

04/29/16 09:23:25.250 Start listening for packets... 04/29/16 09:23:25.250 Initializing RPC client... 04/29/16 09:23:25.250 Starting XML RPC server RPCServer1 listening on 0.0.0.0:2001... 04/29/16 09:23:25.253 Starting XML RPC server RPCServer2 listening on 0.0.0.0:2002, SSL enabled... 04/29/16 09:23:25.253 RPC Server (Port 2001): Info: RPC Server started listening on address 0.0.0.0 and port 2001 04/29/16 09:23:25.255 RPC Server (Port 2001): Error in file RPC/RPCServer.cpp line 1668 in function void RPC::RPCServer::getSocketDescriptor(): No IP address could be found: Success 04/29/16 09:23:25.270 Starting XML RPC server RPCServer3 listening on 0.0.0.0:2003, SSL enabled, authentication enabled... 04/29/16 09:23:25.270 RPC Server (Port 2002): Info: RPC Server started listening on address 0.0.0.0 and port 2002 04/29/16 09:23:25.271 RPC Server (Port 2002): Error in file RPC/RPCServer.cpp line 1668 in function void RPC::RPCServer::getSocketDescriptor(): No IP address could be found: Success 04/29/16 09:23:25.283 Starting CLI server... 04/29/16 09:23:25.283 RPC Server (Port 2003): Info: RPC Server started listening on address 0.0.0.0 and port 2003 04/29/16 09:23:25.283 Initializing event handler... 04/29/16 09:23:25.284 Loading events... 04/29/16 09:23:25.284 RPC Server (Port 2003): Error in file RPC/RPCServer.cpp line 1668 in function void RPC::RPCServer::getSocketDescriptor(): No IP address could be found: Success 04/29/16 09:23:25.284 Startup complete. Waiting for physical interfaces to connect. 04/29/16 09:23:25.285 All physical interfaces are connected now. 04/29/16 09:23:25.285 Starting UPnP server... 04/29/16 09:23:25.285 UPnP Server: Error in file UPnP/UPnP.cpp line 183 in function void UPnP::getAddress(): No IP address could be found: No such file or directory 04/29/16 09:23:25.286 UPnP Server: Error: Could not get IP address. 04/29/16 09:23:25.286 Warning: Not starting server, because no suitable RPC server for serving the XML description is available (Necessary settings: No SSL, no auth, webserver enabled). 04/29/16 09:24:30.834 (Shutdown) => Stopping Homegear (Signal: 15) 04/29/16 09:24:30.835 (Shutdown) => Stopping CLI server 04/29/16 09:24:31.360 Stopping UPnP server... 04/29/16 09:24:31.361 (Shutdown) => Stopping RPC servers 04/29/16 09:24:32.328 RPC Server (Port 2001): Info: Waiting for threads to finish. 04/29/16 09:24:32.343 RPC Server (Port 2002): Info: Waiting for threads to finish. 04/29/16 09:24:32.355 RPC Server (Port 2003): Info: Waiting for threads to finish. 04/29/16 09:24:32.359 (Shutdown) => Stopping Event handler 04/29/16 09:24:32.360 (Shutdown) => Stopping RPC client 04/29/16 09:24:32.360 (Shutdown) => Closing physical interfaces 04/29/16 09:24:32.360 (Shutdown) => Stopping script engine server... 04/29/16 09:24:35.315 (Shutdown) => Saving device families 04/29/16 09:24:35.315 (Shutdown) => Saving devices 04/29/16 09:24:35.315 (Shutdown) => Saving Miscellaneous central... 04/29/16 09:24:35.315 (Shutdown) => Disposing device families 04/29/16 09:24:35.316 (Shutdown) => Disposing database 04/29/16 09:24:35.323 Closing database... 04/29/16 09:24:35.336 (Shutdown) => Disposing family modules 04/29/16 09:24:35.336 Info: Disposing family module mod_miscellaneous.so 04/29/16 09:24:35.337 (Shutdown) => Disposing licensing modules 04/29/16 09:24:35.426 (Shutdown) => Shutdown complete. 04/29/16 09:24:35.440 Info: Process with id 11681 ended. 04/29/16 09:24:35.440 Info: Homegear exited with exit code 0. Stopping monitor process.

Ich hoffe der “Informationsdump” hilft. Bei weiteren Fragen, bitte melden. Ich würde mich sehr freuen, Homegear endlich in Benutzung zu nehmen.

Viele Grüße,

Sunacni

Hallo Sunacni,

bei dir fehlt insserv. Löst ein

apt install insserv

das Problem?

Viele Grüße

Sathya

Hallo zusammen,

habe gerade auf einem Raspi 3 auch ein Ubuntu Mate 15.10 installiert und den insserv Fehler ebenfalls bekommen, bei mir hat dieser Symlink geholfen:

ln -s /usr/lib/insserv/insserv /sbin/insserv

Ist mir ein Rätsel wie man ein ausführbares Programm nach /usr/lib packen kann, an so Kleinigkeiten suchen Einäugige wie ich Stunden rum :slight_smile:

Liebe Grüße
Steffen