Logstash install error

Hi,

when i try to install logstash on ubuntu, i am getting the error :

what is the problem?

can you help me.

thanks.
Zekeriya.

sudo apt-get update && sudo apt-get install logstash
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Hit:2 http://tr.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://tr.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Get:4 http://tr.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Ign:5 https://artifacts.elastic.co/packages/6.x/apt stable InRelease
Hit:6 https://artifacts.elastic.co/packages/6.x/apt stable Release
Fetched 247 kB in 1s (201 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
logstash is already the newest version (1:6.3.0-1).
0 upgraded, 0 newly installed, 0 to remove and 188 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up logstash (1:6.3.0-1) ...
Using provided startup.options file: /etc/logstash/startup.options
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
chmod: cannot access '/etc/default/logstash': No such file or directory
dpkg: error processing package logstash (--configure):
installed logstash package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
logstash
E: Sub-process /usr/bin/dpkg returned an error code (1)

I had the same problem yesterday. On my RHEL-7 installs it came down to an older version of IBM java being installed (Not sure why, it's a test system so has all sorts of stuff on it). I grabbed the latest 1.8_171 and installed that separately then set JAVA_HOME to run it rather than the system default one.

Same here. But the issue was resolved when I explicitly downloaded java 8 instead of using

sudo apt-get install java-default

Thank you. i could install with java version 8.

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