Problem installing openhabian on Debian in a VM

  • Platform information:
    • Hardware: i386 CPU, Parallels Desktop on a Macbook Pro
    • OS: Debian stretch
    • Java Runtime Environment: to be installed
    • openHAB version: openhabian 1.4

Hello everyone

I am having some problems installing openhabian on a fresh Debian stretch VM in my parallels desktop environment on my Macbook. The problem arises in the step where I want to install the Zulu Java:

root@debianueli:/home/ueli# openhabian-config
2018-03-16_06:42:57_CET [openHABian] Checking for root privileges... OK
2018-03-16_06:42:57_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
grep: /etc/cron.d/firemotd: Datei oder Verzeichnis nicht gefunden
/opt/openhabian/functions/openhabian.sh: Zeile 114: firemotd: Kommando nicht gefunden.
2018-03-16_06:42:58_CET [openHABian] openHABian configuration tool version: [master]v1.4-377(f5061f6)
2018-03-16_06:42:58_CET [openHABian] Checking for changes in origin... OK
2018-03-16_06:43:27_CET [openHABian] Installing Zulu Embedded OpenJDK... 
$ apt -y install dirmngr 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
dirmngr ist schon die neueste Version (2.1.18-8~deb9u1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

$ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 219BD9C9 
Executing: /tmp/apt-key-gpghome.XVpWZy3ozH/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 219BD9C9
gpg: key B1998361219BD9C9: "Azul Systems, Inc. (Package signing key.) <pki-signing@azulsystems.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

$ apt update 
OK:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://repos.azulsystems.com/debian stable InRelease                   
Ign:3 http://ftp.ch.debian.org/debian stretch InRelease                      
OK:4 http://repos.azulsystems.com/debian stable Release
OK:5 http://ftp.ch.debian.org/debian stretch-updates InRelease
OK:6 http://ftp.ch.debian.org/debian stretch Release 
Ign:8 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
OK:9 https://dl.bintray.com/openhab/apt-repo2 stable Release
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Alle Pakete sind aktuell.

$ apt -y install zulu-8 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Paket zulu-8 ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.

E: Für Paket »zulu-8« existiert kein Installationskandidat.
FAILED
root@debianueli:/home/ueli# 

Sorry for the german error messages, I hope it’s not a problem. I also tried manually installing zulu with the “official” instructions here in the community, however the same thing happened. When I execute “apt-cache search zulu” I can’t find zulu-8. Any ideas?

Hi,

same issue here, I’ve installed Oracle Java and it works fine :wink:

Andrea

I could of course, but since I am starting from scratch to migrate from 1.8.3 to the newest openhab2 I was planning to do everything as recommended…

Looking at the packages available, it seems that zulu’s apt repo doesn’t serve i386 architectures.

If you want to use Zulu (there should be no functional difference between Zulu and Oracle), then you’ll need to install it manually, download the x86 tar of 8u153 here and then follow the instructions here

Thanks, that explains it of course. I didn’t think about that possibility. I will either install Zulu manually or use another Java.

I reported this issue on the openhabian github project, maybe it can be improved in future.