Unable to install elasticsearch on ubuntu 16.04


(R) #1

Hi Team,

I am trying to install elasticsearch on Ubuntu 16.04 through ks.cfg but somehow this is not going, can someone please have a look at the error and confirm what could be th issue?

image


(R) #2

I even tried installing manually and that didnt happen. Is anything broke on Ubuntu?


(Mark Walkom) #3

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them.


(R) #4

Oh I thought that pictures can directly be uploaded using the picture upload option.
BTW can someone please confirm if the issue is with official elastic repo?


(Mark Walkom) #5

You can upload pictures, but if it's text (eg logs) then it's better to paste that directly in and then format as code. Otherwise it's very hard to read.

Please post the text of the output, as mentioned.


(R) #6

Hello,

Here is the error I am consistently getting while installing elasticsearch on Ubuntu 16.04

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
elasticsearch
0 upgraded, 1 newly installed, 0 to remove and 93 not upgraded.
1 not fully installed or removed.
Need to get 0 B/91.4 MB of archives.
After this operation, 143 MB of additional disk space will be used.
(Reading database ... 178253 files and directories currently installed.)
Preparing to unpack .../elasticsearch_6.3.1_all.deb ...
dpkg: error processing archive /var/cache/apt/archives/elasticsearch_6.3.1_all.d eb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/elasticsearch_6.3.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


(R) #7

Even manual installation fails as well

root@xxxxxx:/opt# dpkg -i elasticsearch-6.3.1.deb
(Reading database ... 178253 files and directories currently installed.)
Preparing to unpack elasticsearch-6.3.1.deb ...
dpkg: error processing archive elasticsearch-6.3.1.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
elasticsearch-6.3.1.deb


(Tim Vernum) #8

It looks like you're trying to install Elasticsearch without first installing Java.

You need to explicitly install a supported JVM before you attempt to install Elasticsearch.


(R) #9

hmmm..when was that changed? It wasnt that before!! I could install elasticsearch before java.

Any way let me try doing that!


(R) #10

That seems to have resolved my issue. Thanks for the update.


(system) #11

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.