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!