UPDATE
After I removed and purged nginx
and nginx-common
, and install it again, it works fine.
I install nginx 1.10.1-3+trusty1 got this errors: http://paste.ubuntu.com/23386350/
I found first error is configure nginx-common, so I modified /var/lib/dpkg/info/nginx-common.postinst
with set -x
,
then I run this:sudo dpkg --configure nginx-common
I got these lines: http://paste.ubuntu.com/23386416/
Setting up nginx-common (1.10.1-3+trusty1) ...
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/nginx-common.postinst configure 1.10.1-3+trusty0
dpkg: error processing package nginx-common (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nginx-common
exit 0;
at the beginning ofnginx-common.postinst
file to solve this issue, it's an ugly workaround. – dawncold Oct 27 '16 at 05:26