Jvm.options missing while installing elasticsearch-oss

Hi fellows,

  • No docker version involved here
  • Ubuntu 16.04.7 LTS
  • v7.9.1
  • OpenJDK 11.0.5

Yesterday I tried to switch from ELK Basic stack to OSS stack in order to use OpenDistro.
I removed elasticsearch, kibana and logstash from my ubuntu install. Purged dependencies.

Then I installed elasticsearch-oss=7.9.1 as required for OpenDistro by using wget and dpkg, and I’m now unable to start elasticsearch because of a missing file: /etc/elasticsearch/jvm.options

I flushed this install and tried to install again with apt repository. Same issue.

The exact error is:

Starting Elasticsearch...
Exception in thread "main" java.nio.file.NoSuchFileException: /etc/elasticsearch/jvm.options

Could you please guide me on how can I fix this ?