# Unable to install on Ubuntu 18.04

**URL:** <https://discuss.elastic.co/t/unable-to-install-on-ubuntu-18-04/142770>\
**Category:** Elasticsearch\
**Created:** [August 2, 2018, 1:17pm UTC](https://discuss.elastic.co/t/unable-to-install-on-ubuntu-18-04/142770 "2018-08-02T13:17:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eutychus](https://avatars.discourse-cdn.com/v4/letter/e/a3d4f5/32.png) [@eutychus](https://discuss.elastic.co/u/eutychus)\
**Post date:** [August 2, 2018, 1:17pm UTC](https://discuss.elastic.co/t/unable-to-install-on-ubuntu-18-04/142770/1 "2018-08-02T13:17:19Z")

</div>

It seems the deb Package can not be unpacked:

Vorbereitung zum Entpacken von .../elasticsearch\_6.3.2\_all.deb ...  
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/elasticsearch\_6.3.2\_all.deb (--unpack):  
new elasticsearch package pre-installation script subprocess returned error exit status 1  
Fehler traten auf beim Bearbeiten von:  
/var/cache/apt/archives/elasticsearch\_6.3.2\_all.deb  
E: Sub-process /usr/bin/dpkg returned an error code (1

Unpacking via  
dpkg -x /var/cache/apt/archives/elasticsearch\_6.3.2\_all.deb /tmp/elastic

Seems to work...

**Now it seems to work ... openjdk was missing ... ☹**

Eutychus

---

<div class="post-metadata">

**Author:** ![bazz](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bazz](https://discuss.elastic.co/u/bazz)\
**Post date:** [August 10, 2018, 4:05pm UTC](https://discuss.elastic.co/t/unable-to-install-on-ubuntu-18-04/142770/2 "2018-08-10T16:05:33Z")

</div>

You have to install java.

---

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [August 10, 2018, 5:44pm UTC](https://discuss.elastic.co/t/unable-to-install-on-ubuntu-18-04/142770/3 "2018-08-10T17:44:14Z")

</div>

I tried testing an install on Ubuntu 18.\* I was disappointing to find that after I installed the Java 10. Logstash is not compatible with Java 10. Even tho logstash was not on this node of the cluster it still caused errors. I had to revert to Ubuntu 16 and Oracle Java 8. Hope this is helpful. Have a good day.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 7, 2018, 5:54pm UTC](https://discuss.elastic.co/t/unable-to-install-on-ubuntu-18-04/142770/4 "2018-09-07T17:54:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
