# Installing 7.3.1 on Ubuntu 18.04 configure issue using apt

**URL:** <https://discuss.elastic.co/t/installing-7-3-1-on-ubuntu-18-04-configure-issue-using-apt/198928>\
**Category:** Elasticsearch\
**Created:** [September 10, 2019, 3:42pm UTC](https://discuss.elastic.co/t/installing-7-3-1-on-ubuntu-18-04-configure-issue-using-apt/198928 "2019-09-10T15:42:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregoryBrown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregorybrown/32/53934_2.png) [@GregoryBrown](https://discuss.elastic.co/u/GregoryBrown)\
**Post date:** [September 10, 2019, 3:42pm UTC](https://discuss.elastic.co/t/installing-7-3-1-on-ubuntu-18-04-configure-issue-using-apt/198928/1 "2019-09-10T15:42:57Z")

</div>

I am trying to install Elasticsearch 7.3.1 using Ubuntu's APT, but seeing the following issues:

> Reading package lists... Done  
> Building dependency tree  
> Reading state information... Done  
> elasticsearch is already the newest version (7.3.1).  
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
> 1 not fully installed or removed.  
> After this operation, 0 B of additional disk space will be used.  
> Do you want to continue? [Y/n]  
> Setting up elasticsearch (7.3.1) ...  
> /usr/share/elasticsearch/bin/elasticsearch-env: line 73: /etc/default/elasticsearch: No such file or directory  
> **dpkg:** error processing package elasticsearch (--configure):  
> installed elasticsearch package post-installation script subprocess returned error exit status 1  
> Errors were encountered while processing:  
> elasticsearch  
> E: Sub-process /usr/bin/dpkg returned an error code (1)

I already have Java installed, but JAVA\_HOME is not set.  
There is no var/log/elasticsearch logs so can't really narrow it down. Shouldn't the script already create the /etc/default/elasticsearch file?

Thanks

---

<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:** [October 8, 2019, 3:53pm UTC](https://discuss.elastic.co/t/installing-7-3-1-on-ubuntu-18-04-configure-issue-using-apt/198928/2 "2019-10-08T15:53:26Z")

</div>

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