nginx-common postinst execution fails when upgrading to or reinstalling 1.10.1-0ubuntu3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Debian) |
Fix Released
|
Unknown
|
|||
nginx (Ubuntu) |
Fix Released
|
High
|
Thomas Ward | ||
Trusty |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Yakkety |
Fix Released
|
High
|
Unassigned | ||
Zesty |
Fix Released
|
High
|
Thomas Ward |
Bug Description
The first installation of the nginx-common on a system without nginx installed works fine, but attempting to reinstall it (or upgrade from a previous version of nginx-common) results in the post-install script exiting with status 1. I attempted to debug this issue myself, but rapidly became lost in a maze of scripts calling each other.
Luckily, the issue is easy to reproduce. From a system without nginx installed:
michael@
[sudo] password for michael:
Selecting previously unselected package nginx-common.
(Reading database ... 414684 files and directories currently installed.)
Preparing to unpack nginx-common_
Unpacking nginx-common (1.10.1-0ubuntu3) ...
Setting up nginx-common (1.10.1-0ubuntu3) ...
Created symlink /etc/systemd/
Processing triggers for systemd (231-9git1) ...
michael@
(Reading database ... 414728 files and directories currently installed.)
Preparing to unpack nginx-common_
Unpacking nginx-common (1.10.1-0ubuntu3) over (1.10.1-0ubuntu3) ...
Setting up nginx-common (1.10.1-0ubuntu3) ...
dpkg: error processing package nginx-common (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (231-9git1) ...
Errors were encountered while processing:
nginx-common
michael@
CVE References
Changed in nginx (Ubuntu Yakkety): | |
status: | New → Confirmed |
Changed in nginx (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in nginx (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in nginx (Ubuntu Zesty): | |
status: | In Progress → Fix Committed |
Changed in nginx (Ubuntu Yakkety): | |
importance: | Undecided → High |
Changed in nginx (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in nginx (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in nginx (Debian): | |
status: | Unknown → Fix Released |
For anyone needing a quick work-around, see: http:// askubuntu. com/a/842313/ 582734