Error fresh install on Ubuntu 16.06

Dear everyone,

I install new server for hosting ERPNext, running on Ubuntu 16.04 (simple choice).
I follow this instruction here, https://github.com/frappe/bench

apt-get install python-minimal
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

Got following error:

root@vum-u-air:/opt/_tmp# python install.py --develop --user frappe
Traceback (most recent call last):
File “install.py”, line 2, in
import os, sys, subprocess, getpass, json, multiprocessing, shutil, platform
ImportError: No module named getpass
root@vum-u-air:/opt/_tmp

Then, install following package as it shows in the installer script.

root@vum-u-air:/opt/_tmp# apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev

Relaunch the install, and got another error:

skipping: [localhost]

TASK [Add apt key for mariadb for Ubuntu >= 16.04] *****************************
changed: [localhost]

TASK [Add apt repository] ******************************************************
changed: [localhost]

TASK [Unattended package installation] *****************************************
changed: [localhost]

TASK [apt-get install] *********************************************************
failed: [localhost] (item=[u’mariadb-server’, u’mariadb-client’, u’mariadb-common’, u’libmariadbclient-dev’]) => {“cache_update_time”: 1499244812, “cache_updated”: true, “failed”: true, “item”: [“mariadb-server”, “mariadb-client”, “mariadb-common”, “libmariadbclient-dev”], “msg”: “’/usr/bin/apt-get -y -o “Dpkg::Options::=–force-confdef” -o “Dpkg::Options::=–force-confold” install ‘mariadb-server’ ‘mariadb-client’ ‘mariadb-common’ ‘libmariadbclient-dev’’ failed: No apport report written because the error message indicates its a followup error from a previous failure.\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n”, “stderr”: “No apport report written because the error message indicates its a followup error from a previous failure.\nE: 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 galera-3 iproute libaio1 libdbd-mysql-perl libdbi-perl libmariadbclient18\n libmysqlclient18 libmysqlclient20 mariadb-client-10.1\n mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1\n mysql-common socat\nSuggested packages:\n libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl\n libterm-readkey-perl mailx mariadb-test tinyca\nRecommended packages:\n libhtml-template-perl\nThe following NEW packages will be installed:\n galera-3 iproute libaio1 libdbd-mysql-perl libdbi-perl libmariadbclient-dev\n libmariadbclient18 libmysqlclient18 libmysqlclient20 mariadb-client\n mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server\n mariadb-server-10.1 mariadb-server-core-10.1 mysql-common socat\n0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 24.8 MB of archives.\nAfter this operation, 201 MB of additional disk space will be used.\nGet:1 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mysql-common all 10.1.25+maria-1~xenial [8506 B]\nGet:2 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-common all 10.1.25+maria-1~xenial [3190 B]\nGet:3 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 galera-3 amd64 25.3.20-xenial [8003 kB]\nGet:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 iproute all 1:4.3.0-1ubuntu3.16.04.1 [2432 B]\nGet:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 libdbi-perl amd64 1.634-1build1 [743 kB]\nGet:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmysqlclient20 amd64 5.7.18-0ubuntu0.16.04.1 [811 kB]\nGet:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libdbd-mysql-perl amd64 4.033-1ubuntu0.1 [84.3 kB]\nGet:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 libaio1 amd64 0.3.110-2 [6356 B]\nGet:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 socat amd64 1.7.3.1-1 [321 kB]\nGet:10 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 libmysqlclient18 amd64 10.1.25+maria-1~xenial [2888 B]\nGet:11 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 libmariadbclient18 amd64 10.1.25+maria-1~xenial [586 kB]\nGet:12 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-client-core-10.1 amd64 10.1.25+maria-1~xenial [690 kB]\nGet:13 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-client-10.1 amd64 10.1.25+maria-1~xenial [1122 kB]\nGet:14 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-server-core-10.1 amd64 10.1.25+maria-1~xenial [4425 kB]\nGet:15 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-server-10.1 amd64 10.1.25+maria-1~xenial [6491 kB]\nGet:16 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 libmariadbclient-dev amd64 10.1.25+maria-1~xenial [1462 kB]\nGet:17 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-client all 10.1.25+maria-1~xenial [2796 B]\nGet:18 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-server all 10.1.25+maria-1~xenial [2922 B]\nPreconfiguring packages …\nFetched 24.8 MB in 3s (6720 kB/s)\nSelecting previously unselected package mysql-common.\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 … 103420 files and directories currently installed.)\r\nPreparing to unpack …/mysql-common_10.1.25+maria-1~xenial_all.deb …\r\nUnpacking mysql-common (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package mariadb-common.\r\nPreparing to unpack …/mariadb-common_10.1.25+maria-1~xenial_all.deb …\r\nUnpacking mariadb-common (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package galera-3.\r\nPreparing to unpack …/galera-3_25.3.20-xenial_amd64.deb …\r\nUnpacking galera-3 (25.3.20-xenial) …\r\nSelecting previously unselected package iproute.\r\nPreparing to unpack …/iproute_1%3a4.3.0-1ubuntu3.16.04.1_all.deb …\r\nUnpacking iproute (1:4.3.0-1ubuntu3.16.04.1) …\r\nSelecting previously unselected package libdbi-perl.\r\nPreparing to unpack …/libdbi-perl_1.634-1build1_amd64.deb …\r\nUnpacking libdbi-perl (1.634-1build1) …\r\nSelecting previously unselected package libmysqlclient20:amd64.\r\nPreparing to unpack …/libmysqlclient20_5.7.18-0ubuntu0.16.04.1_amd64.deb …\r\nUnpacking libmysqlclient20:amd64 (5.7.18-0ubuntu0.16.04.1) …\r\nSelecting previously unselected package libdbd-mysql-perl.\r\nPreparing to unpack …/libdbd-mysql-perl_4.033-1ubuntu0.1_amd64.deb …\r\nUnpacking libdbd-mysql-perl (4.033-1ubuntu0.1) …\r\nSelecting previously unselected package libmysqlclient18.\r\nPreparing to unpack …/libmysqlclient18_10.1.25+maria-1~xenial_amd64.deb …\r\nUnpacking libmysqlclient18 (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package libmariadbclient18.\r\nPreparing to unpack …/libmariadbclient18_10.1.25+maria-1~xenial_amd64.deb …\r\nUnpacking libmariadbclient18 (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package mariadb-client-core-10.1.\r\nPreparing to unpack …/mariadb-client-core-10.1_10.1.25+maria-1~xenial_amd64.deb …\r\nUnpacking mariadb-client-core-10.1 (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package mariadb-client-10.1.\r\nPreparing to unpack …/mariadb-client-10.1_10.1.25+maria-1~xenial_amd64.deb …\r\nUnpacking mariadb-client-10.1 (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package libaio1:amd64.\r\nPreparing to unpack …/libaio1_0.3.110-2_amd64.deb …\r\nUnpacking libaio1:amd64 (0.3.110-2) …\r\nSelecting previously unselected package mariadb-server-core-10.1.\r\nPreparing to unpack …/mariadb-server-core-10.1_10.1.25+maria-1~xenial_amd64.deb …\r\nUnpacking mariadb-server-core-10.1 (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package socat.\r\nPreparing to unpack …/socat_1.7.3.1-1_amd64.deb …\r\nUnpacking socat (1.7.3.1-1) …\r\nProcessing triggers for man-db (2.7.5-1) …\r\nProcessing triggers for libc-bin (2.23-0ubuntu9) …\r\nSetting up mysql-common (10.1.25+maria-1~xenial) …\r\nSetting up mariadb-common (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package mariadb-server-10.1.\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 … 103820 files and directories currently installed.)\r\nPreparing to unpack …/mariadb-server-10.1_10.1.25+maria-1~xenial_amd64.deb …\r\nUnpacking mariadb-server-10.1 (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package libmariadbclient-dev.\r\nPreparing to unpack …/libmariadbclient-dev_10.1.25+maria-1~xenial_amd64.deb …\r\nUnpacking libmariadbclient-dev (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package mariadb-client.\r\nPreparing to unpack …/mariadb-client_10.1.25+maria-1~xenial_all.deb …\r\nUnpacking mariadb-client (10.1.25+maria-1~xenial) …\r\nSelecting previously unselected package mariadb-server.\r\nPreparing to unpack …/mariadb-server_10.1.25+maria-1~xenial_all.deb …\r\nUnpacking mariadb-server (10.1.25+maria-1~xenial) …\r\nProcessing triggers for man-db (2.7.5-1) …\r\nProcessing triggers for systemd (229-4ubuntu17) …\r\nProcessing triggers for ureadahead (0.100.0-19) …\r\nSetting up galera-3 (25.3.20-xenial) …\r\nSetting up iproute (1:4.3.0-1ubuntu3.16.04.1) …\r\nSetting up libdbi-perl (1.634-1build1) …\r\nSetting up libmysqlclient20:amd64 (5.7.18-0ubuntu0.16.04.1) …\r\nSetting up libdbd-mysql-perl (4.033-1ubuntu0.1) …\r\nSetting up libaio1:amd64 (0.3.110-2) …\r\nSetting up socat (1.7.3.1-1) …\r\nSetting up libmysqlclient18 (10.1.25+maria-1~xenial) …\r\nSetting up libmariadbclient18 (10.1.25+maria-1~xenial) …\r\nSetting up mariadb-client-core-10.1 (10.1.25+maria-1~xenial) …\r\nSetting up mariadb-client-10.1 (10.1.25+maria-1~xenial) …\r\nSetting up mariadb-server-core-10.1 (10.1.25+maria-1~xenial) …\r\nSetting up mariadb-server-10.1 (10.1.25+maria-1~xenial) …\r\ndpkg: error processing package mariadb-server-10.1 (–configure):\r\n subprocess installed post-installation script returned error exit status 1\r\nSetting up libmariadbclient-dev (10.1.25+maria-1~xenial) …\r\nSetting up mariadb-client (10.1.25+maria-1~xenial) …\r\ndpkg: dependency problems prevent configuration of mariadb-server:\r\n mariadb-server depends on mariadb-server-10.1 (= 10.1.25+maria-1~xenial); however:\r\n Package mariadb-server-10.1 is not configured yet.\r\n\r\ndpkg: error processing package mariadb-server (–configure):\r\n dependency problems - leaving unconfigured\r\nProcessing triggers for libc-bin (2.23-0ubuntu9) …\r\nProcessing triggers for systemd (229-4ubuntu17) …\r\nProcessing triggers for ureadahead (0.100.0-19) …\r\nErrors were encountered while processing:\r\n mariadb-server-10.1\r\n mariadb-server\r\n”, “stdout_lines”: [“Reading package lists…”, “Building dependency tree…”, “Reading state information…”, “The following additional packages will be installed:”, " galera-3 iproute libaio1 libdbd-mysql-perl libdbi-perl libmariadbclient18", " libmysqlclient18 libmysqlclient20 mariadb-client-10.1", " mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1", " mysql-common socat", “Suggested packages:”, " libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl", " libterm-readkey-perl mailx mariadb-test tinyca", “Recommended packages:”, " libhtml-template-perl", “The following NEW packages will be installed:”, " galera-3 iproute libaio1 libdbd-mysql-perl libdbi-perl libmariadbclient-dev", " libmariadbclient18 libmysqlclient18 libmysqlclient20 mariadb-client", " mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server", " mariadb-server-10.1 mariadb-server-core-10.1 mysql-common socat", “0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.”, “Need to get 24.8 MB of archives.”, “After this operation, 201 MB of additional disk space will be used.”, “Get:1 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mysql-common all 10.1.25+maria-1~xenial [8506 B]”, “Get:2 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-common all 10.1.25+maria-1~xenial [3190 B]”, “Get:3 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 galera-3 amd64 25.3.20-xenial [8003 kB]”, “Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 iproute all 1:4.3.0-1ubuntu3.16.04.1 [2432 B]”, “Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 libdbi-perl amd64 1.634-1build1 [743 kB]”, “Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmysqlclient20 amd64 5.7.18-0ubuntu0.16.04.1 [811 kB]”, “Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libdbd-mysql-perl amd64 4.033-1ubuntu0.1 [84.3 kB]”, “Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 libaio1 amd64 0.3.110-2 [6356 B]”, “Get:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 socat amd64 1.7.3.1-1 [321 kB]”, “Get:10 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 libmysqlclient18 amd64 10.1.25+maria-1~xenial [2888 B]”, “Get:11 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 libmariadbclient18 amd64 10.1.25+maria-1~xenial [586 kB]”, “Get:12 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-client-core-10.1 amd64 10.1.25+maria-1~xenial [690 kB]”, “Get:13 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-client-10.1 amd64 10.1.25+maria-1~xenial [1122 kB]”, “Get:14 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-server-core-10.1 amd64 10.1.25+maria-1~xenial [4425 kB]”, “Get:15 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-server-10.1 amd64 10.1.25+maria-1~xenial [6491 kB]”, “Get:16 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 libmariadbclient-dev amd64 10.1.25+maria-1~xenial [1462 kB]”, “Get:17 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-client all 10.1.25+maria-1~xenial [2796 B]”, “Get:18 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial/main amd64 mariadb-server all 10.1.25+maria-1~xenial [2922 B]”, “Preconfiguring packages …”, “Fetched 24.8 MB in 3s (6720 kB/s)”, “Selecting previously unselected package mysql-common.”, “(Reading database … “, “(Reading database … 5%”, “(Reading database … 10%”, “(Reading database … 15%”, “(Reading database … 20%”, “(Reading database … 25%”, “(Reading database … 30%”, “(Reading database … 35%”, “(Reading database … 40%”, “(Reading database … 45%”, “(Reading database … 50%”, “(Reading database … 55%”, “(Reading database … 60%”, “(Reading database … 65%”, “(Reading database … 70%”, “(Reading database … 75%”, “(Reading database … 80%”, “(Reading database … 85%”, “(Reading database … 90%”, “(Reading database … 95%”, “(Reading database … 100%”, “(Reading database … 103420 files and directories currently installed.)”, “Preparing to unpack …/mysql-common_10.1.25+maria-1~xenial_all.deb …”, “Unpacking mysql-common (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package mariadb-common.”, “Preparing to unpack …/mariadb-common_10.1.25+maria-1~xenial_all.deb …”, “Unpacking mariadb-common (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package galera-3.”, “Preparing to unpack …/galera-3_25.3.20-xenial_amd64.deb …”, “Unpacking galera-3 (25.3.20-xenial) …”, “Selecting previously unselected package iproute.”, “Preparing to unpack …/iproute_1%3a4.3.0-1ubuntu3.16.04.1_all.deb …”, “Unpacking iproute (1:4.3.0-1ubuntu3.16.04.1) …”, “Selecting previously unselected package libdbi-perl.”, “Preparing to unpack …/libdbi-perl_1.634-1build1_amd64.deb …”, “Unpacking libdbi-perl (1.634-1build1) …”, “Selecting previously unselected package libmysqlclient20:amd64.”, “Preparing to unpack …/libmysqlclient20_5.7.18-0ubuntu0.16.04.1_amd64.deb …”, “Unpacking libmysqlclient20:amd64 (5.7.18-0ubuntu0.16.04.1) …”, “Selecting previously unselected package libdbd-mysql-perl.”, “Preparing to unpack …/libdbd-mysql-perl_4.033-1ubuntu0.1_amd64.deb …”, “Unpacking libdbd-mysql-perl (4.033-1ubuntu0.1) …”, “Selecting previously unselected package libmysqlclient18.”, “Preparing to unpack …/libmysqlclient18_10.1.25+maria-1~xenial_amd64.deb …”, “Unpacking libmysqlclient18 (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package libmariadbclient18.”, “Preparing to unpack …/libmariadbclient18_10.1.25+maria-1~xenial_amd64.deb …”, “Unpacking libmariadbclient18 (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package mariadb-client-core-10.1.”, “Preparing to unpack …/mariadb-client-core-10.1_10.1.25+maria-1~xenial_amd64.deb …”, “Unpacking mariadb-client-core-10.1 (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package mariadb-client-10.1.”, “Preparing to unpack …/mariadb-client-10.1_10.1.25+maria-1~xenial_amd64.deb …”, “Unpacking mariadb-client-10.1 (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package libaio1:amd64.”, “Preparing to unpack …/libaio1_0.3.110-2_amd64.deb …”, “Unpacking libaio1:amd64 (0.3.110-2) …”, “Selecting previously unselected package mariadb-server-core-10.1.”, “Preparing to unpack …/mariadb-server-core-10.1_10.1.25+maria-1~xenial_amd64.deb …”, “Unpacking mariadb-server-core-10.1 (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package socat.”, “Preparing to unpack …/socat_1.7.3.1-1_amd64.deb …”, “Unpacking socat (1.7.3.1-1) …”, “Processing triggers for man-db (2.7.5-1) …”, “Processing triggers for libc-bin (2.23-0ubuntu9) …”, “Setting up mysql-common (10.1.25+maria-1~xenial) …”, “Setting up mariadb-common (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package mariadb-server-10.1.”, “(Reading database … “, “(Reading database … 5%”, “(Reading database … 10%”, “(Reading database … 15%”, “(Reading database … 20%”, “(Reading database … 25%”, “(Reading database … 30%”, “(Reading database … 35%”, “(Reading database … 40%”, “(Reading database … 45%”, “(Reading database … 50%”, “(Reading database … 55%”, “(Reading database … 60%”, “(Reading database … 65%”, “(Reading database … 70%”, “(Reading database … 75%”, “(Reading database … 80%”, “(Reading database … 85%”, “(Reading database … 90%”, “(Reading database … 95%”, “(Reading database … 100%”, “(Reading database … 103820 files and directories currently installed.)”, “Preparing to unpack …/mariadb-server-10.1_10.1.25+maria-1~xenial_amd64.deb …”, “Unpacking mariadb-server-10.1 (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package libmariadbclient-dev.”, “Preparing to unpack …/libmariadbclient-dev_10.1.25+maria-1~xenial_amd64.deb …”, “Unpacking libmariadbclient-dev (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package mariadb-client.”, “Preparing to unpack …/mariadb-client_10.1.25+maria-1~xenial_all.deb …”, “Unpacking mariadb-client (10.1.25+maria-1~xenial) …”, “Selecting previously unselected package mariadb-server.”, “Preparing to unpack …/mariadb-server_10.1.25+maria-1~xenial_all.deb …”, “Unpacking mariadb-server (10.1.25+maria-1~xenial) …”, “Processing triggers for man-db (2.7.5-1) …”, “Processing triggers for systemd (229-4ubuntu17) …”, “Processing triggers for ureadahead (0.100.0-19) …”, “Setting up galera-3 (25.3.20-xenial) …”, “Setting up iproute (1:4.3.0-1ubuntu3.16.04.1) …”, “Setting up libdbi-perl (1.634-1build1) …”, “Setting up libmysqlclient20:amd64 (5.7.18-0ubuntu0.16.04.1) …”, “Setting up libdbd-mysql-perl (4.033-1ubuntu0.1) …”, “Setting up libaio1:amd64 (0.3.110-2) …”, “Setting up socat (1.7.3.1-1) …”, “Setting up libmysqlclient18 (10.1.25+maria-1~xenial) …”, “Setting up libmariadbclient18 (10.1.25+maria-1~xenial) …”, “Setting up mariadb-client-core-10.1 (10.1.25+maria-1~xenial) …”, “Setting up mariadb-client-10.1 (10.1.25+maria-1~xenial) …”, “Setting up mariadb-server-core-10.1 (10.1.25+maria-1~xenial) …”, “Setting up mariadb-server-10.1 (10.1.25+maria-1~xenial) …”, “dpkg: error processing package mariadb-server-10.1 (–configure):”, " subprocess installed post-installation script returned error exit status 1”, “Setting up libmariadbclient-dev (10.1.25+maria-1~xenial) …”, “Setting up mariadb-client (10.1.25+maria-1~xenial) …”, “dpkg: dependency problems prevent configuration of mariadb-server:”, " mariadb-server depends on mariadb-server-10.1 (= 10.1.25+maria-1~xenial); however:”, " Package mariadb-server-10.1 is not configured yet.”, “”, “dpkg: error processing package mariadb-server (–configure):”, " dependency problems - leaving unconfigured”, “Processing triggers for libc-bin (2.23-0ubuntu9) …”, “Processing triggers for systemd (229-4ubuntu17) …”, “Processing triggers for ureadahead (0.100.0-19) …”, “Errors were encountered while processing:”, " mariadb-server-10.1", " mariadb-server"]}
to retry, use: --limit @develop/install.retry

PLAY RECAP *********************************************************************
localhost : ok=12 changed=8 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 355, in
install_bench(args)
File “install.py”, line 108, in install_bench
run_playbook(‘develop/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 301, 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’, ‘develop/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2
root@vum-u-air:/opt/_tmp#

If relaunch the install, i got error with mariadb:

root@vum-u-air:/opt/_tmp# python install.py --develop --user frappe
Hit:1 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 https://deb.nodesource.com/node_6.x xenial InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.1ubuntu2).
libffi-dev is already the newest version (3.2.1-4).
python-dev is already the newest version (2.7.11-1).
python-setuptools is already the newest version (20.7.0-1).
git is already the newest version (1:2.7.4-0ubuntu1.1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mariadb-server-10.1 (10.1.25+maria-1~xenial) …
Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.
invoke-rc.d: initscript mysql, action “start” failed.
● mariadb.service - MariaDB database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: exit-code) since Wed 2017-07-05 09:03:46 UTC; 15ms ago
Process: 16991 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Process: 16834 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=/usr/bin/galera_recovery; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 16828 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 16823 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Main PID: 16991 (code=exited, status=1/FAILURE)

Jul 05 09:03:46 vum-u-air.oios.org mysqld[16991]: 2017-07-05 9:03:46 140582348736768 [Note] Starting crash…y…
Jul 05 09:03:46 vum-u-air.oios.org mysqld[16991]: 2017-07-05 9:03:46 140582348736768 [Note] Crash recovery…hed.
Jul 05 09:03:46 vum-u-air.oios.org mysqld[16991]: 2017-07-05 9:03:46 140582348540672 [Warning] Failed to l…xist
Jul 05 09:03:46 vum-u-air.oios.org mysqld[16991]: 2017-07-05 9:03:46 140582348736768 [ERROR] Can’t open an…xist
Jul 05 09:03:46 vum-u-air.oios.org mysqld[16991]: 2017-07-05 9:03:46 140582348736768 [Note] Server socket …1’.
Jul 05 09:03:46 vum-u-air.oios.org mysqld[16991]: 2017-07-05 9:03:46 140582348736768 [ERROR] Fatal error: …xist
Jul 05 09:03:46 vum-u-air.oios.org systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 09:03:46 vum-u-air.oios.org systemd[1]: Failed to start MariaDB database server.
Jul 05 09:03:46 vum-u-air.oios.org systemd[1]: mariadb.service: Unit entered failed state.
Jul 05 09:03:46 vum-u-air.oios.org systemd[1]: mariadb.service: Failed with result ‘exit-code’.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package mariadb-server-10.1 (–configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.1 (= 10.1.25+maria-1~xenial); however:
Package mariadb-server-10.1 is not configured yet.

dpkg: error processing package mariadb-server (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mariadb-server-10.1
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Traceback (most recent call last):
File “install.py”, line 355, in
install_bench(args)
File “install.py”, line 21, in install_bench
‘sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel’
File “install.py”, line 219, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev’ returned non-zero exit status 100
root@vum-u-air:/opt/_tmp#

Could you please advice how to fix this issue?
Thank you.

hi @bzero,
please see this link

Thanks

1 Like

thanks @sagar

I start from beginning, and get following error:

root@vum-u-air:/opt/_tmp# apt-get install python-minimal
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libpython2.7-minimal python2.7-minimal
Suggested packages:
binfmt-support
Recommended packages:
libpython2.7-stdlib python python2.7
The following NEW packages will be installed:
libpython2.7-minimal python-minimal python2.7-minimal
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,663 kB of archives.
After this operation, 6,658 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-minimal amd64 2.7.12-1ubuntu0~16.04.1 [339 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1ubuntu0~16.04.1 [1,295 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-minimal amd64 2.7.11-1 [28.2 kB]
Fetched 1,663 kB in 0s (1,665 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database … 92093 files and directories currently installed.)
Preparing to unpack …/libpython2.7-minimal_2.7.12-1ubuntu0~16.04.1_amd64.deb …
Unpacking libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.1) …
Selecting previously unselected package python2.7-minimal.
Preparing to unpack …/python2.7-minimal_2.7.12-1ubuntu0~16.04.1_amd64.deb …
Unpacking python2.7-minimal (2.7.12-1ubuntu0~16.04.1) …
Selecting previously unselected package python-minimal.
Preparing to unpack …/python-minimal_2.7.11-1_amd64.deb …
Unpacking python-minimal (2.7.11-1) …
Processing triggers for man-db (2.7.5-1) …
Setting up libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.1) …
Setting up python2.7-minimal (2.7.12-1ubuntu0~16.04.1) …
Linking and byte-compiling packages for runtime python2.7…
Setting up python-minimal (2.7.11-1) …
root@vum-u-air:/opt/_tmp# python install.py --production --user frappe
Traceback (most recent call last):
File “install.py”, line 2, in
import os, sys, subprocess, getpass, json, multiprocessing, shutil, platform
ImportError: No module named getpass
root@vum-u-air:/opt/_tmp

are you installed the all prerequisite?
share the all traceback.

Thanks

@sagar
After fixing the maria issue which required version 10.1 instead of 10.0 shipped by Ubuntu 16.04, i am facing another issue.

TASK [include] *****************************************************************
included: /tmp/.bench/playbooks/develop/includes/setup_bench.yml for localhost

TASK [Check if /tmp/.bench exists] *********************************************
ok: [localhost]

TASK [Check if bench_repo_path exists] *****************************************
ok: [localhost]

TASK [move /tmp/.bench if it exists] *******************************************
changed: [localhost]

TASK [install bench] ***********************************************************
changed: [localhost]

TASK [Overwrite bench if required] *********************************************
skipping: [localhost]

TASK [Check whether bench exists] **********************************************
ok: [localhost]

TASK [init bench] **************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/frappe/frappe-bench”, “–frappe-branch”, “develop”], “delta”: “0:05:21.967352”, “end”: “2017-07-05 10:18:14.402568”, “failed”: true, “rc”: 1, “start”: “2017-07-05 10:12:52.435216”, “stderr”: “INFO:bench.utils:virtualenv -q env -p /usr/bin/python\nINFO:bench.utils:./env/bin/pip -q install --upgrade pip\nINFO:bench.utils:./env/bin/pip -q install wheel\nINFO:bench.utils:./env/bin/pip -q install six\nINFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit\nINFO:bench.app:getting app frappe\nINFO:bench.utils:git clone https://github.com/frappe/frappe.git --branch develop --origin upstream\nCloning into ‘frappe’…\nINFO:bench.app:installing frappe\nINFO:bench.utils:/home/frappe/frappe-bench/env/bin/pip install -q -e /home/frappe/frappe-bench/apps/frappe --no-cache-dir\nINFO:bench.utils:npm install\nnpm WARN deprecated isarray@2.0.1: Just use Array.isArray directly\nKilled\nTraceback (most recent call last):\n File “/usr/local/bin/bench”, line 11, in \n load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()\n File “/home/frappe/.bench/bench/cli.py”, line 40, in cli\n bench_command()\n File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call\n return self.main(*args, **kwargs)\n File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main\n rv = self.invoke(ctx)\n File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke\n return callback(*args, **kwargs)\n File “/home/frappe/.bench/bench/commands/make.py”, line 19, in init\n verbose=verbose, clone_from=clone_from)\n File “/home/frappe/.bench/bench/utils.py”, line 64, in init\n update_npm_packages(bench_path=path)\n File “/home/frappe/.bench/bench/utils.py”, line 432, in update_npm_packages\n exec_cmd(‘npm install’, cwd=bench_path)\n File “/home/frappe/.bench/bench/utils.py”, line 130, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: npm install”, “stdout”: “Already using interpreter /usr/bin/python\n(‘installing’, u’frappe’)\nUpdating node libraries…”, “stdout_lines”: [“Already using interpreter /usr/bin/python”, “(‘installing’, u’frappe’)”, “Updating node libraries…”], “warnings”: []}
to retry, use: --limit @develop/install.retry

PLAY RECAP *********************************************************************
localhost : ok=31 changed=12 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 355, in
install_bench(args)
File “install.py”, line 108, in install_bench
run_playbook(‘develop/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 301, 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’, ‘develop/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2
root@vum-u-air:/opt/_tmp#

i got it works now.

My fix is removing mysql root password, and relaunch the install process.

TASK [include] *****************************************************************
skipping: [localhost]

PLAY RECAP *********************************************************************
localhost : ok=37 changed=5 unreachable=0 failed=0

Frappe/ERPNext has been successfully installed!
root@vum-u-air:/opt/_tmp#

can you paste the command to “remove the mysql root password” here please?