(1) Remova as versões anteriores do ElasticSearch:
sudo apt-get --purge autoremove elasticsearch
(2) Remova os diretórios do ElasticSearch:
sudo rm -rf /var/lib/elasticsearch/
sudo rm -rf /etc/elasticsearch
(3) Instale o ElasticSearch 1.6:
sudo dpkg -i elasticsearch-1.6.0.deb
(4) Inicie o serviço:
sudo service elasticsearch start
(5) Teste se funciona:
sudo service elasticsearch status
curl -XGET "http://localhost:9200/_cluster/health?pretty=true"
curl "localhost:9200/_nodes/settings?pretty=true"