package nginx-core 1.14.0-0ubuntu1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
After reboot getting error repeated time.
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: nginx-core 1.14.0-0ubuntu1
ProcVersionSign
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
RelatedPackageV
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)
tags: | removed: need-duplicate-check |
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