I've followed all the steps on the installation guide for Logstash but I keep getting this error:
Setting up nginx-core (1.10.0-0ubuntu0.16.04.4) ...
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-core (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-core (>= 1.10.0-0ubuntu0.16.04.4) | nginx-full (>= 1.10.0-0ubuntu0.16.04.4) | nginx-light (>= 1.10.0-0ubuntu0.16.04.4) | nginx-extras (>= 1.10.0-0ubuntu0.16.04.4); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx-full (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx-extras (<< 1.10.0-0ubuntu0.16.04.4.1~); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving No apport report written because the error message indicates it's a follow-up error from a previous failure.
unconfigured
Errors were encountered while processing:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've tried removing apache2 as I saw some posts mentioning that it helped, but it didn't work in my case. I've tried purging, completely removing and reinstalling but that doesn't work. I've also tried installing each nginx component seperately e.g core, full etc. but that doesn't work.
When I run: sudo yum install logstash
I get:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package logstash.noarch 1:5.1.2-1 will be installed
--> Processing Dependency: /bin/sh for package: 1:logstash-5.1.2-1.noarch
--> Processing Dependency: /bin/sh for package: 1:logstash-5.1.2-1.noarch
--> Processing Dependency: /bin/sh for package: 1:logstash-5.1.2-1.noarch
--> Processing Dependency: /bin/sh for package: 1:logstash-5.1.2-1.noarch
--> Finished Dependency Resolution
Error: Package: 1:logstash-5.1.2-1.noarch (logstash-5.1)
Requires: /bin/sh
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I run : sudo service logstash configtest
I get: logstash: unrecognized service
My system:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Please help, thanks.