package nginx-core 1.14.0-0ubuntu1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1

Bug #1773557 reported by Khorshed Alam on 2018-05-26

This bug report will be marked for expiration in 11 days if no further activity occurs. (find out why)

10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
Undecided
Unassigned

Bug Description

After reboot getting error repeated time.

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: nginx-core 1.14.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
Date: Fri May 25 00:13:57 2018
ErrorMessage: installed nginx-core package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-05-21 (4 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.1
SourcePackage: nginx
Title: package nginx-core 1.14.0-0ubuntu1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Khorshed Alam (andgatetech) wrote :
tags: removed: need-duplicate-check
Andreas Hasenack (ahasenack) wrote :

Thanks for filing this bug in Ubuntu.

This was the failure:
May 25 00:13:53 alam-P2540UV nginx[21718]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

That indicates another service was already listening on port 80. I see you have docker containers on this machine too, could it be that one or more of those were also listening on the same port?

You also have an attachment that shows that nginx is running just fine, is it ok now?

Can you try:

sudo systemctl nginx.service
sudo apt update
sudo apt -f install

Changed in nginx (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers