When trying to fix this yourself...

(1) Check the output of one of these two commands:

'sudo netstat -tulpn | grep :80'       OR        'sudo ss -tulpn | grep
:80'

This will indicate what processes are listening on IP/Port combination
*:80


(2) Once you know the process/pid that is listening on Port 80, kill it.  
Either stop the service (for example, if Apache is the one causing the 
conflict, use `sudo service apache2 stop`), or kill the process itself.


If you intend to use things side by side, such as Apache *and* nginx, 
temporarily stop one service while installing the other.  Then modify your 
configurations so neither service is listening on the same ports as each other, 
and start up the services.  This will resolve the issues.

** Summary changed:

- [Master Bug] Package nginx-* failed to install/upgrade due to Port 80 not 
being able to be bound to.
+ [Master Bug] Package nginx-* failed to install/upgrade due to Port 80 not 
being able to be bound to, due to "Address In Use" errors.

** Description changed:

  This is a master bug for all package-type nginx bugs with
  install/upgrade failures as a result of port 80 being already used by
  another process.
  
  This is not a bug - this is an issue in which the system you are
  installing NGINX on already has something else listening on port 80.
  
  To fix this issue, you need to first find what is listening on Port 80,
  and turn it off.  At that time, either install NGINX or use 'apt-get
  install -f' to try and finish configuration.
+ 
+ 
+ An example of the error logs of this can be seen in Vivid and later with 
`systemctl -l status nginx.service` which will return something like the 
attached "systemctl_output.txt" file that is attached to this bug.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1512344

Title:
  [Master Bug] Package nginx-* failed to install/upgrade due to Port 80
  not being able to be bound to, due to "Address In Use" errors.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1512344/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to