Public bug reported:
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@mamarley-desktop:~/Downloads$ sudo dpkg -i
nginx-common_1.10.1-0ubuntu3_all.deb
[sudo] password for michael:
Selecting previously unselected package nginx-common.
(Reading database ... 414684 files and directories currently installed.)
Preparing to unpack nginx-common_1.10.1-0ubuntu3_all.deb ...
Unpacking nginx-common (1.10.1-0ubuntu3) ...
Setting up nginx-common (1.10.1-0ubuntu3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service →
/lib/systemd/system/nginx.service.
Processing triggers for systemd (231-9git1) ...
michael@mamarley-desktop:~/Downloads$ sudo dpkg -i
nginx-common_1.10.1-0ubuntu3_all.deb
(Reading database ... 414728 files and directories currently installed.)
Preparing to unpack nginx-common_1.10.1-0ubuntu3_all.deb ...
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@mamarley-desktop:~/Downloads$
** Affects: nginx (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1637058
Title:
nginx-common postinst execution fails when upgrading to or
reinstalling 1.10.1-0ubuntu3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1637058/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs