Preparing to unpack .../00-python-django-common_1%3a1.11.11-1ubuntu1_all.deb ... Unpacking python-django-common (1:1.11.11-1ubuntu1) ... Selecting previously unselected package python-tz. Preparing to unpack .../01-python-tz_2018.3-2_all.deb ... Unpacking python-tz (2018.3-2) ... Selecting previously unselected package python-django. Preparing to unpack .../02-python-django_1%3a1.11.11-1ubuntu1_all.deb ... Unpacking python-django (1:1.11.11-1ubuntu1) ... Preparing to unpack .../03-libnginx-mod-http-geoip_1.14.0-0ubuntu1_amd64.deb ... Unpacking libnginx-mod-http-geoip (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Preparing to unpack .../04-libnginx-mod-http-image-filter_1.14.0-0ubuntu1_amd64.deb ... Unpacking libnginx-mod-http-image-filter (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Preparing to unpack .../05-libnginx-mod-http-xslt-filter_1.14.0-0ubuntu1_amd64.deb ... Unpacking libnginx-mod-http-xslt-filter (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Preparing to unpack .../06-libnginx-mod-mail_1.14.0-0ubuntu1_amd64.deb ... Unpacking libnginx-mod-mail (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Preparing to unpack .../07-libnginx-mod-stream_1.14.0-0ubuntu1_amd64.deb ... Unpacking libnginx-mod-stream (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Preparing to unpack .../08-nginx-core_1.14.0-0ubuntu1_amd64.deb ... Unpacking nginx-core (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Preparing to unpack .../09-nginx_1.14.0-0ubuntu1_all.deb ... Unpacking nginx (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Preparing to unpack .../10-nginx-common_1.14.0-0ubuntu1_all.deb ... Unpacking nginx-common (1.14.0-0ubuntu1) over (1.14.0-0ubuntu1) ... Selecting previously unselected package nginx-doc. Preparing to unpack .../11-nginx-doc_1.14.0-0ubuntu1_all.deb ... Unpacking nginx-doc (1.14.0-0ubuntu1) ... Selecting previously unselected package python-certifi. Preparing to unpack .../12-python-certifi_2018.1.18-2_all.deb ... Unpacking python-certifi (2018.1.18-2) ... Selecting previously unselected package python-pkg-resources. Preparing to unpack .../13-python-pkg-resources_39.0.1-2_all.deb ... Unpacking python-pkg-resources (39.0.1-2) ... Selecting previously unselected package python-chardet. Preparing to unpack .../14-python-chardet_3.0.4-1_all.deb ... Unpacking python-chardet (3.0.4-1) ... Selecting previously unselected package python-urllib3. Preparing to unpack .../15-python-urllib3_1.22-1_all.deb ... Unpacking python-urllib3 (1.22-1) ... Selecting previously unselected package python-requests. Preparing to unpack .../16-python-requests_2.18.4-2_all.deb ... Unpacking python-requests (2.18.4-2) ... Selecting previously unselected package python-django-downloadview. Preparing to unpack .../17-python-django-downloadview_1.9-1_all.deb ... Unpacking python-django-downloadview (1.9-1) ... Selecting previously unselected package python-openssl. Preparing to unpack .../18-python-openssl_17.5.0-1ubuntu1_all.deb ... Unpacking python-openssl (17.5.0-1ubuntu1) ... Selecting previously unselected package python-sqlparse. Preparing to unpack .../19-python-sqlparse_0.2.4-0.1_all.deb ... Unpacking python-sqlparse (0.2.4-0.1) ... Processing triggers for ufw (0.35-5) ... Rules updated for profile 'Nginx Full' Setting up python-urllib3 (1.22-1) ... Setting up python-sqlparse (0.2.4-0.1) ... Processing triggers for ureadahead (0.100.0-20) ... ureadahead will be reprofiled on next reboot Setting up python-openssl (17.5.0-1ubuntu1) ... Setting up nginx-common (1.14.0-0ubuntu1) ... Setting up libnginx-mod-http-image-filter (1.14.0-0ubuntu1) ... Setting up python-certifi (2018.1.18-2) ... Setting up python-tz (2018.3-2) ... Setting up python-pkg-resources (39.0.1-2) ... Setting up nginx-doc (1.14.0-0ubuntu1) ... Processing triggers for systemd (237-3ubuntu10) ... Setting up libnginx-mod-mail (1.14.0-0ubuntu1) ... Processing triggers for man-db (2.8.3-2) ... Setting up libnginx-mod-http-xslt-filter (1.14.0-0ubuntu1) ... Setting up python-django-common (1:1.11.11-1ubuntu1) ... Setting up libnginx-mod-http-geoip (1.14.0-0ubuntu1) ... Setting up python-chardet (3.0.4-1) ... Setting up libnginx-mod-stream (1.14.0-0ubuntu1) ... Setting up nginx-core (1.14.0-0ubuntu1) ... 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 Sun 2018-05-06 15:31:09 +08; 16ms ago Docs: man:nginx(8) Process: 12974 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) Main PID: 1092 (code=exited, status=0/SUCCESS) May 06 15:31:09 gerald-HP-Notebook systemd[1]: Starting A high performance web server and a reverse proxy server... May 06 15:31:09 gerald-HP-Notebook nginx[12974]: nginx: [emerg] open() "/usr/share/nginx/logs/nginx.pid" failed (2: No such file or directory) May 06 15:31:09 gerald-HP-Notebook nginx[12974]: nginx: configuration file /etc/nginx/nginx.conf test failed May 06 15:31:09 gerald-HP-Notebook systemd[1]: nginx.service: Control process exited, code=exited status=1 May 06 15:31:09 gerald-HP-Notebook systemd[1]: nginx.service: Failed with result 'exit-code'. May 06 15:31:09 gerald-HP-Notebook systemd[1]: Failed to start A high performance web server and a reverse proxy server. dpkg: error processing package nginx-core (--configure): installed nginx-core package post-installation script subprocess returned error exit status 1