# Ubuntu 64 16.04 install =\> (code=exited, status=1/FAILURE)

**URL:** <https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679>\
**Category:** Installation\
**Tags:** openhab2, ubuntu\
**Created:** [January 12, 2018, 10:23pm UTC](https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679 "2018-01-12T22:23:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![will\_stewart1a](https://community.openhab.org/user_avatar/community.openhab.org/will_stewart1a/32/17110_2.png) [@will\_stewart1a](https://community.openhab.org/u/will_stewart1a)\
**Post date:** [January 12, 2018, 10:24pm UTC](https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679/1 "2018-01-12T22:24:00Z")

</div>

- Platform information:
  - Hardware: Intel i7-4770T CPU @ 2.50GHz, 16GB RAM, 223GB SSD
  - OS: Ubuntu Studio 16.04 64
  - Java Runtime Environment: Zulu 9
  - openHAB version: 2.2

- Issue of the topic:  
Would not even start;

will@will-ZBOX-ID92-ZBOX-IQ01:~$ sudo systemctl start openhab2.service  
will@will-ZBOX-ID92-ZBOX-IQ01:~$ sudo systemctl status openhab2.service  
● openhab2.service - openHAB 2 - empowering the smart home  
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; disabled; vendor preset: enabled)  
Active: activating (auto-restart) (Result: exit-code) since Fri 2018-01-12 17:17:02 EST; 2s ago  
Docs: [http://docs.openhab.org](http://docs.openhab.org)  
[https://community.openhab.org](https://community.openhab.org)  
Process: 18757 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)  
Process: 18644 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB\_STARTMODE (code=exited, status=1/FAILURE)  
Main PID: 18644 (code=exited, status=1/FAILURE

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 12, 2018, 11:06pm UTC](https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679/2 "2018-01-12T23:06:42Z")

</div>

How did you install?

What version of Java?

What do you see in syslog when you try to start OH?

---

<div class="post-metadata">

**Author:** ![will\_stewart1a](https://community.openhab.org/user_avatar/community.openhab.org/will_stewart1a/32/17110_2.png) [@will\_stewart1a](https://community.openhab.org/u/will_stewart1a)\
**Post date:** [January 12, 2018, 11:21pm UTC](https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679/3 "2018-01-12T23:21:55Z")

</div>

Installed via repository

Zulu 9.0.1 per Openhab link

syslog shows;

Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: Started openHAB 2 - empowering the smart home.  
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 karaf[18644]: Java 1.8 or higher is required. Aborting launch.  
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE  
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 karaf[18757]: Java 1.8 or higher is required. Aborting launch.  
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Control process exited, code=exited status=1  
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Unit entered failed state.  
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Failed with result ‘exit-code’.  
Jan 12 17:17:07 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.  
Jan 12 17:17:07 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: Stopped openHAB 2 - empowering the smart home.

java -version shows;

openjdk version “9.0.1.3”  
OpenJDK Runtime Environment (Zulu build 9.0.1.3+11)  
OpenJDK 64-Bit Server VM (Zulu build 9.0.1.3+11, mixed mode)

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 13, 2018, 12:07am UTC](https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679/4 "2018-01-13T00:07:36Z")

</div>

Actually the docs do state:

> As for now, a pre-release Java 9 installation is not recommended and is not yet supported by openHAB 2.

That sentence needs to be fixed slightly as Java 9 is no longer prerelease, but it is still true. OH will not run on Java 9.

---

<div class="post-metadata">

**Author:** ![will\_stewart1a](https://community.openhab.org/user_avatar/community.openhab.org/will_stewart1a/32/17110_2.png) [@will\_stewart1a](https://community.openhab.org/u/will_stewart1a)\
**Post date:** [January 13, 2018, 5:15pm UTC](https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679/5 "2018-01-13T17:15:11Z")

</div>

Thanks, that did the trick. I simply downloaded the Zulu 8 version, adjusted my java alternatives settings, and so far am now in configuration mode in PaperUI. Thanks!

---

<div class="post-metadata">

**Author:** ![will\_stewart1a](https://community.openhab.org/user_avatar/community.openhab.org/will_stewart1a/32/17110_2.png) [@will\_stewart1a](https://community.openhab.org/u/will_stewart1a)\
**Post date:** [January 14, 2018, 12:11pm UTC](https://community.openhab.org/t/ubuntu-64-16-04-install-code-exited-status-1-failure/38679/6 "2018-01-14T12:11:10Z")

</div>

Am having some unexpected exceptions, so reviewed the Zulu download comments which show “glibc v2.5 and higher”

I checked my glibc version with;

> $ apt-cache policy libc6

Which responded with;

> libc6:  
> Installed: 2.23-0ubuntu9  
> Candidate: 2.23-0ubuntu9  
> \*\*\* 2.23-0ubuntu9 500  
> 500 [Index of /ubuntu](http://us.archive.ubuntu.com/ubuntu) xenial-updates/main amd64 Packages  
> 500 [Index of /ubuntu](http://security.ubuntu.com/ubuntu) xenial-security/main amd64 Packages  
> 100 /var/lib/dpkg/status  
> 2.23-0ubuntu3 500  
> 500 [Index of /ubuntu](http://us.archive.ubuntu.com/ubuntu) xenial/main amd64 Packages

I also tried;

> $ apt-cache policy glibc-source

which responded with;

> glibc-source:  
> Installed: (none)  
> Candidate: 2.23-0ubuntu9  
> Version table:  
> 2.23-0ubuntu9 500  
> 500 [Index of /ubuntu](http://us.archive.ubuntu.com/ubuntu) xenial-updates/universe amd64 Packages  
> 500 [Index of /ubuntu](http://us.archive.ubuntu.com/ubuntu) xenial-updates/universe i386 Packages  
> 500 [Index of /ubuntu](http://security.ubuntu.com/ubuntu) xenial-security/universe amd64 Packages  
> 500 [Index of /ubuntu](http://security.ubuntu.com/ubuntu) xenial-security/universe i386 Packages  
> 2.23-0ubuntu3 500  
> 500 [Index of /ubuntu](http://us.archive.ubuntu.com/ubuntu) xenial/universe amd64 Packages  
> 500 [Index of /ubuntu](http://us.archive.ubuntu.com/ubuntu) xenial/universe i386 Packages

I keep fairly current on updates, and running following update command below only resulting in a couple of small updates. Rerunning the glibc and libc6 resulted in the same output as before.

> $ sudo apt-get update && sudo apt-get upgrade

As I am running Ubuntu Studio 16.04 LTS, it appears either I need to shift to the most recent Ubuntu version and hope that it upgrades to the minimum glibc, or try a different JRE. Hence, I will try the Oracle 8 JRE, and will report back.
