V7 Installation of clean Ubuntu 16.04 install

Got through most of the install but then it crashed out with:

Installation log TASK [Install production pre-requisites] *************************************** failed: [localhost] (item=[u'nginx', u'screen', u'vim', u'htop', u'git', u'postfix', u'supervisor']) => {"cache_update_time": 0, "cache_updated": false, "failed": true, "item": ["nginx", "screen", "vim", "htop", "git", "postfix", "supervisor"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'nginx' 'htop' 'supervisor'' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stderr": "E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n libgd3 libvpx3 libxslt1.1 nginx-common nginx-core python-meld3\nSuggested packages:\n strace libgd-tools fcgiwrap nginx-doc supervisor-doc\nThe following NEW packages will be installed:\n htop libgd3 libvpx3 libxslt1.1 nginx nginx-common nginx-core python-meld3\n supervisor\n0 upgraded, 9 newly installed, 0 to remove and 3 not upgraded.\nNeed to get 1817 kB of archives.\nAfter this operation, 6485 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 htop amd64 2.0.1-1 [76.6 kB]\nGet:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libvpx3 amd64 1.5.0-2ubuntu1 [732 kB]\nGet:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgd3 amd64 2.1.1-4ubuntu0.16.04.2 [125 kB]\nGet:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxslt1.1 amd64 1.1.28-2.1 [145 kB]\nGet:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx-common all 1.10.0-0ubuntu0.16.04.2 [25.6 kB]\nGet:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx-core amd64 1.10.0-0ubuntu0.16.04.2 [428 kB]\nGet:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx all 1.10.0-0ubuntu0.16.04.2 [3498 B]\nGet:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python-meld3 all 1.0.2-2 [30.9 kB]\nGet:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 supervisor all 3.2.0-2 [252 kB]\nFetched 1817 kB in 2s (817 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 43787 files and directories currently installed.)\r\nPreparing to unpack .../htop_2.0.1-1_amd64.deb ...\r\nUnpacking htop (2.0.1-1) ...\r\nSelecting previously unselected package libvpx3:amd64.\r\nPreparing to unpack .../libvpx3_1.5.0-2ubuntu1_amd64.deb ...\r\nUnpacking libvpx3:amd64 (1.5.0-2ubuntu1) ...\r\nSelecting previously unselected package libgd3:amd64.\r\nPreparing to unpack .../libgd3_2.1.1-4ubuntu0.16.04.2_amd64.deb ...\r\nUnpacking libgd3:amd64 (2.1.1-4ubuntu0.16.04.2) ...\r\nSelecting previously unselected package libxslt1.1:amd64.\r\nPreparing to unpack .../libxslt1.1_1.1.28-2.1_amd64.deb ...\r\nUnpacking libxslt1.1:amd64 (1.1.28-2.1) ...\r\nSelecting previously unselected package nginx-common.\r\nPreparing to unpack .../nginx-common_1.10.0-0ubuntu0.16.04.2_all.deb ...\r\nUnpacking nginx-common (1.10.0-0ubuntu0.16.04.2) ...\r\nSelecting previously unselected package nginx-core.\r\nPreparing to unpack .../nginx-core_1.10.0-0ubuntu0.16.04.2_amd64.deb ...\r\nUnpacking nginx-core (1.10.0-0ubuntu0.16.04.2) ...\r\nSelecting previously unselected package nginx.\r\nPreparing to unpack .../nginx_1.10.0-0ubuntu0.16.04.2_all.deb ...\r\nUnpacking nginx (1.10.0-0ubuntu0.16.04.2) ...\r\nSelecting previously unselected package python-meld3.\r\nPreparing to unpack .../python-meld3_1.0.2-2_all.deb ...\r\nUnpacking python-meld3 (1.0.2-2) ...\r\nSelecting previously unselected package supervisor.\r\nPreparing to unpack .../supervisor_3.2.0-2_all.deb ...\r\nUnpacking supervisor (3.2.0-2) ...\r\nProcessing triggers for mime-support (3.59ubuntu1) ...\r\nProcessing triggers for man-db (2.7.5-1) ...\r\nProcessing triggers for libc-bin (2.23-0ubuntu3) ...\r\nProcessing triggers for systemd (229-4ubuntu7) ...\r\nSetting up htop (2.0.1-1) ...\r\nSetting up libvpx3:amd64 (1.5.0-2ubuntu1) ...\r\nSetting up libgd3:amd64 (2.1.1-4ubuntu0.16.04.2) ...\r\nSetting up libxslt1.1:amd64 (1.1.28-2.1) ...\r\nSetting up nginx-common (1.10.0-0ubuntu0.16.04.2) ...\r\nSetting up nginx-core (1.10.0-0ubuntu0.16.04.2) ...\r\nJob for nginx.service failed because the control process exited with error code. See \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\r\ninvoke-rc.d: initscript nginx, action \"start\" failed.\r\ndpkg: error processing package nginx-core (--configure):\r\n subprocess installed post-installation script returned error exit status 1\r\ndpkg: dependency problems prevent configuration of nginx:\r\n nginx depends on nginx-core (>= 1.10.0-0ubuntu0.16.04.2) | nginx-full (>= 1.10.0-0ubuntu0.16.04.2) | nginx-light (>= 1.10.0-0ubuntu0.16.04.2) | nginx-extras (>= 1.10.0-0ubuntu0.16.04.2); however:\r\n Package nginx-core is not configured yet.\r\n Package nginx-full is not installed.\r\n Package nginx-light is not installed.\r\n Package nginx-extras is not installed.\r\n nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-full (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-extras (<= 1.10.0-0ubuntu0.16.04.2) | nginx-full (>= 1.10.0-0ubuntu0.16.04.2) | nginx-light (>= 1.10.0-0ubuntu0.16.04.2) | nginx-extras (>= 1.10.0-0ubuntu0.16.04.2); 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.0-0ubuntu0.16.04.2.1~) | nginx-full (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-extras (<< 1.10.0-0ubuntu0.16.04.2.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", "Setting up python-meld3 (1.0.2-2) ...", "Setting up supervisor (3.2.0-2) ...", "Processing triggers for libc-bin (2.23-0ubuntu3) ...", "Processing triggers for systemd (229-4ubuntu7) ...", "Errors were encountered while processing:", " nginx-core", " nginx"]}
NO MORE HOSTS LEFT *************************************************************
    to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost                  : ok=32   changed=16   unreachable=0    failed=1   

Traceback (most recent call last):
  File "install.py", line 319, in <module>
    install_bench(args)
  File "install.py", line 111, in install_bench
    run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 269, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'production/install.yml', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2
frappe@server:~$

Any clues to solve?

Cheers, Simon

Try to install nginx manually first.
Please don’t forget to use “preformatted text” format for the logs.