Installation time issue

Environment
OS: Ubuntu 16.04 LTS
ES: 6.7.1
Package: Debian package

I'm facing the issue when applying step 4 from given into document.

ERROR
sudo dpkg --install elasticsearch-oss-6.7.1.deb
(Reading database ... 613045 files and directories currently installed.)
Preparing to unpack elasticsearch-oss-6.7.1.deb ...
/usr/bin/java
Unpacking elasticsearch-oss (6.7.1) over (6.7.1) ...
Setting up elasticsearch-oss (6.7.1) ...
warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME
/usr/share/elasticsearch/bin/elasticsearch-env: line 71: /etc/default/elasticsearch: No such file or directory
dpkg: error processing package elasticsearch-oss (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21.21) ...
Errors were encountered while processing:
elasticsearch-oss

JAVA_HOME
echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle

Please help!

I hit the same issue when upgrading to 6.8.0.

Did you find a solution?

@attzonko My $JAVA_HOME said me /usr/lib/jvm/java-8-oracle so I just put JAVA_HOME with java 11 at configuration that's it. Hope this is also your solution. Best luck.