Install nginx on my laptop with kubuntu got unmet dependencies errors

Hello,
I want to install nginx on my laptop with kubuntu 18

# lsb_release -d; uname -r; uname -i
Description:    Ubuntu 18.04.3 LTS
4.15.0-20-generic
x86_64

But I have unmet dependencies errors:

sudo apt-get install nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 nginx : Depends: nginx-core (< 1.14.0-0ubuntu1.4.1~) but it is not going to be installed or
                  nginx-full (< 1.14.0-0ubuntu1.4.1~) but it is not going to be installed or
                  nginx-light (< 1.14.0-0ubuntu1.4.1~) but it is not going to be installed or
                  nginx-extras (< 1.14.0-0ubuntu1.4.1~) but it is not going to be installed
         Depends: nginx-core (>= 1.14.0-0ubuntu1.4) but it is not going to be installed or
                  nginx-full (>= 1.14.0-0ubuntu1.4) but it is not going to be installed or
                  nginx-light (>= 1.14.0-0ubuntu1.4) but it is not going to be installed or
                  nginx-extras (>= 1.14.0-0ubuntu1.4) but it is not going to be installed
 opera-stable:i386 : PreDepends: apt-transport-https:i386
                     Recommends: pepperflashplugin-nonfree:i386 but it is not installable
                     Recommends: chromium-codecs-ffmpeg-extra:i386 but it is not going to be installed
 slimjet : Depends: libcurl3 but it is not going to be installed or
                    libcurl4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I see message :
apt --fix-broken install
But I am not sure which steps have I to take?
I reinstalled my Kubuntu more 1 week ago and do not want to break it…
What would you advice?

Thanks!

Did you try running that in a terminal?

I recently had problems with Nginx while following the “just do this” steps in my attempt to install Golang.

In order to get Ubuntu 17.04 back up and running Mysql and Php again I had to remove and reinstall the Firewall then purge Nginx. This occurred on my remote site running about a dozen web sites!

From the error messages displayed it looks as though similar conflicts are occurring.

Try noting the Firewall settings, remove and if Apache2 is running then stop the service and try installing Nginx again.

Nginx may have advantages but I think they are only small and not with the hassle.

Why do you want to install Nginx?

Edit:
I just noticed there is a conflict with Opera 386 and the system is x86_64. Try removing Opera and reinstall the x86_64 version.

Yes, I have Apache2 installed and running on my OS.
I wanted to install Nginx just to have expierence of working with it.
I have read that both Apache2 and Nginx can work on 1 system…
But now I am not sure if I have to try it again…

Check the firewall settings and I think they will have a reference to Nginx because I think the firewall just redirects or prevents numerous services and ports.

I also think the problem I had that it was not necessary to completely remove the firewall. Using `systemctl stop nginx‘ may have been adequate. (It was nearing midnight and I just wanted it fixing so I could go to bed without worrying about being offline).

I should imagine it is possible to run both services separately but not together because they both install to the common ports recommended by Internet Assigned Numbers Authority of 80, 223, etc

I would recommend a little research before attempting another Nginx install and would be grateful to hear of the results. I would like to get the Golang server and language working on an online test site because I have heard the performance far exceeds Apache and Nginx.

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