package nginx-full (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1702402 reported by Brandon Booth on 2017-07-05

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

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

Bug Description

I says it cannot install dependencies, I try to install dependencies (nginx-core, nginx) but I can't install them because of the same error.
ProblemType: Package
DistroRelease: Ubuntu 16.04.2 LTS
Package: nginx-core, nginx (not installed)
Architecture: intel i5
Date: Tues July 4 2:15:32 2017
When I input apt-cache policy pkgname:
   N: Unable to locate package pkgname

Error:

Setting up nginx-core (1.10.3-0ubuntu0.16.04.1) ...
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2017-07-05 00:52:25 EDT; 8ms ago
  Process: 26345 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Jul 05 00:52:24 brandon-Inspiron-5521 systemd[1]: Starting A high performance...
Jul 05 00:52:25 brandon-Inspiron-5521 nginx[26345]: nginx: [emerg] unknown di...
Jul 05 00:52:25 brandon-Inspiron-5521 nginx[26345]: nginx: configuration file...
Jul 05 00:52:25 brandon-Inspiron-5521 systemd[1]: nginx.service: Control proc...
Jul 05 00:52:25 brandon-Inspiron-5521 systemd[1]: Failed to start A high perf...
Jul 05 00:52:25 brandon-Inspiron-5521 systemd[1]: nginx.service: Unit entered...
Jul 05 00:52:25 brandon-Inspiron-5521 systemd[1]: nginx.service: Failed with ...
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package nginx-core (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-core (>= 1.10.3-0ubuntu0.16.04.1) | nginx-full (>= 1.10.3-0ubuntu0.16.04.1) | nginx-light (>= 1.10.3-0ubuntu0.16.04.1) | nginx-extras (>= 1.10.3-0ubuntu0.16.04.1); however:
  Package nginx-core is not configured yet.
  Package nginx-full is not installed.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.
 nginx depends on nginx-core (<< 1.10.3-0ubuntu0.16.04.1.1~) | nginx-full (<< 1.10.3-0ubuntu0.16.04.1.1~) | nginx-light (<< 1.10.3-0ubuntu0.16.04.1.1~) | nginx-extras (<< 1.10.3-0ubuntu0.16.04.1.1~); however:
  Package nginx-core is not configured yet.
  Package nginx-full is not installed.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 nginx-core
 nginx

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: nginx-full (not installed)
ProcVersionSignature: Ubuntu 4.4.0-83.106-generic 4.4.70
Uname: Linux 4.4.0-83-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
AptOrdering:
 nginx-common: Install
 nginx-full: Install
 nginx-common: Configure
 nginx-full: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Mon Jul 3 12:01:52 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-11-02 (244 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: nginx
Title: package nginx-full (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Brandon Booth (bbooth4) wrote :
Thomas Ward (teward) wrote :

It looks like this is due to a modification made at some point to your site config which added a bad directive. This ultimately isn't a bug in the packaging but more likely an issue with your config.

Joshua Powers (powersj) on 2017-07-07
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