Ubuntu 16.04 install ElasticSearch 5.x, failed to start
<p>On fresh install Ubuntu 16.04 I use next steps to install ElasticSearch 5.0.1 or 5.0.2 and ES failed to start. Does anyone know how can I run ES 5.x on Ubuntu 16.04 or 14.04?</p>

<ol>
<li>su</li>
<li>add-apt-repository ppa:webupd8team/java</li>
<li>apt-get update</li>
<li>apt-get upgrade</li>
<li>apt-get install oracle-java8-installer</li>
<li>java -version</li>
<li>wget -qO - <a href="https://artifacts.elastic.co/GPG-KEY-elasticsearch" rel="nofollow noreferrer">https://artifacts.elastic.co/GPG-KEY-elasticsearch</a> | apt-key add -</li>
<li>apt-get install apt-transport-https</li>
<li><p>echo "deb <a href="https://artifacts.elastic.co/packages/5.x/apt" rel="nofollow noreferrer">https://artifacts.elastic.co/packages/5.x/apt</a> stable main" | tee -a /etc/apt/sources.list.d/elastic-5.x.list</p></li>
<li><p>apt-get update &amp;&amp; sudo apt-get install elasticsearch</p></li>
<li><p>service elasticsearch status</p></li>
</ol>

<p>Elasticsearch 5.x failed to start on Ubuntu 16.04.
Does anyone know how can I run ES 5.x on Ubuntu 16.04 or 14.04?</p>

<p>I also try with the new version of Elasticsearch 5.1.1 with this few steps</p>

<ol>
<li>su</li>
<li>apt-get purge elasticsearch</li>
<li>apt-get update</li>
<li>apt-get upgrade</li>
<li>apt-get install elasticsearch</li>
</ol>

<p>-- new version elasticsearch 5.1.1 is installed</p>

<ol start="6">
<li>now if I check status I get this</li>
</ol>

<blockquote>
  <blockquote>
    <p>service elasticsearch status</p>
  </blockquote>
</blockquote>

<p>● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)</p>

<p>Active: inactive (dead)</p>

<pre><code> Docs: http : / / www.elastic.co
</code></pre>

<p>Dec 09 22:49:49 elastic systemd[1]: Stopped Elasticsearch.</p>