nginx dependency problem trying to upgrade

The problem is that nginx-full depends on nginx-common, this means that you can't install the package nginx-full without have a specific version of nginx-common.

Here is an question dedicated to this problem, but the resolution is very extensive, reaching to, not only one, but different cases. So I will show you a short but effective method.

Actually, I don't know how to install that version of nginx-common, but I know that you will solve your problem by reinstalling all the package. To do that you must enter the following command in a terminal.

sudo apt-get remove nginx* && sudo apt-get install nginx-full

I had the same problem. I DO NOT have Apache, and nothing else was blocking my port 80. I could NOT install nginx with

sudo apt-get install nginx

nor with

sudo apt-get install nginx-common nginx-full

After one week I stumbled over this little blog: https://etc.banana.fish/?p=75

In this blog, the solution is:

  1. Install nginx-common: sudo apt-get install nginx-common
  2. Remove listen [::]:80 default_server; from /etc/nginx/sites-enabled/default (I made this using the root-user)
  3. Just to be sure, I did reboot my server.
  4. Just to be sure twice, I did sudo apt-get update and then sudo apt-get upgrade.
  5. Now I finally called sudo apt-get install nginx-full and it worked!

Afterwords I could see the Titlescreen of nginx, when I typed in the IP of my remote server!