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)