Preparing to unpack .../libaio1_0.3.109-4_amd64.deb ... Unpacking libaio1:amd64 (0.3.109-4) ... Selecting previously unselected package libapr1:amd64. Preparing to unpack .../libapr1_1.5.0-1_amd64.deb ... Unpacking libapr1:amd64 (1.5.0-1) ... Selecting previously unselected package libaprutil1:amd64. Preparing to unpack .../libaprutil1_1.5.3-1_amd64.deb ... Unpacking libaprutil1:amd64 (1.5.3-1) ... Selecting previously unselected package mysql-server-core-5.5. Preparing to unpack .../mysql-server-core-5.5_5.5.40-0ubuntu0.14.04.1_amd64.deb ... Unpacking mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ... Selecting previously unselected package mysql-server-5.5. Preparing to unpack .../mysql-server-5.5_5.5.40-0ubuntu0.14.04.1_amd64.deb ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Unpacking mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ... Selecting previously unselected package php5-mysql. Preparing to unpack .../php5-mysql_5.5.9+dfsg-1ubuntu4.5_amd64.deb ... Unpacking php5-mysql (5.5.9+dfsg-1ubuntu4.5) ... Selecting previously unselected package php5-cli. Preparing to unpack .../php5-cli_5.5.9+dfsg-1ubuntu4.5_amd64.deb ... Unpacking php5-cli (5.5.9+dfsg-1ubuntu4.5) ... Selecting previously unselected package php5-readline. Preparing to unpack .../php5-readline_5.5.9+dfsg-1ubuntu4.5_amd64.deb ... Unpacking php5-readline (5.5.9+dfsg-1ubuntu4.5) ... Selecting previously unselected package php5-snmp. Preparing to unpack .../php5-snmp_5.5.9+dfsg-1ubuntu4.5_amd64.deb ... Unpacking php5-snmp (5.5.9+dfsg-1ubuntu4.5) ... Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64. Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.3-1_amd64.deb ... Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.3-1) ... Selecting previously unselected package libaprutil1-ldap:amd64. Preparing to unpack .../libaprutil1-ldap_1.5.3-1_amd64.deb ... Unpacking libaprutil1-ldap:amd64 (1.5.3-1) ... Selecting previously unselected package apache2-bin. Preparing to unpack .../apache2-bin_2.4.7-1ubuntu4.1_amd64.deb ... Unpacking apache2-bin (2.4.7-1ubuntu4.1) ... Selecting previously unselected package apache2-data. Preparing to unpack .../apache2-data_2.4.7-1ubuntu4.1_all.deb ... Unpacking apache2-data (2.4.7-1ubuntu4.1) ... Selecting previously unselected package apache2. Preparing to unpack .../apache2_2.4.7-1ubuntu4.1_amd64.deb ... Unpacking apache2 (2.4.7-1ubuntu4.1) ... Selecting previously unselected package dbconfig-common. Preparing to unpack .../dbconfig-common_1.8.47+nmu1_all.deb ... Unpacking dbconfig-common (1.8.47+nmu1) ... Selecting previously unselected package javascript-common. Preparing to unpack .../javascript-common_11_all.deb ... Unpacking javascript-common (11) ... Selecting previously unselected package libapache2-mod-php5. Preparing to unpack .../libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.5_amd64.deb ... Unpacking libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.5) ... Selecting previously unselected package libdbi1:amd64. Preparing to unpack .../libdbi1_0.9.0-1_amd64.deb ... Unpacking libdbi1:amd64 (0.9.0-1) ... Selecting previously unselected package libhtml-template-perl. Preparing to unpack .../libhtml-template-perl_2.95-1_all.deb ... Unpacking libhtml-template-perl (2.95-1) ... Selecting previously unselected package libjs-jquery. Preparing to unpack .../libjs-jquery_1.7.2+dfsg-2ubuntu1_all.deb ... Unpacking libjs-jquery (1.7.2+dfsg-2ubuntu1) ... Selecting previously unselected package libjs-jquery-cookie. Preparing to unpack .../libjs-jquery-cookie_8-2_all.deb ... Unpacking libjs-jquery-cookie (8-2) ... Selecting previously unselected package libphp-adodb. Preparing to unpack .../libphp-adodb_5.15-1_all.deb ... Unpacking libphp-adodb (5.15-1) ... Selecting previously unselected package librrd4. Preparing to unpack .../librrd4_1.4.7-2ubuntu5_amd64.deb ... Unpacking librrd4 (1.4.7-2ubuntu5) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.5.40-0ubuntu0.14.04.1_all.deb ... Unpacking mysql-server (5.5.40-0ubuntu0.14.04.1) ... Selecting previously unselected package snmp. Preparing to unpack .../snmp_5.7.2~dfsg-8.1ubuntu3_amd64.deb ... Unpacking snmp (5.7.2~dfsg-8.1ubuntu3) ... Selecting previously unselected package rrdtool. Preparing to unpack .../rrdtool_1.4.7-2ubuntu5_amd64.deb ... Unpacking rrdtool (1.4.7-2ubuntu5) ... Selecting previously unselected package cacti. Preparing to unpack .../cacti_0.8.8b+dfsg-5_all.deb ... Unpacking cacti (0.8.8b+dfsg-5) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Processing triggers for doc-base (0.10.5) ... Processing 2 added doc-base files... Setting up libaio1:amd64 (0.3.109-4) ... Setting up libapr1:amd64 (1.5.0-1) ... Setting up libaprutil1:amd64 (1.5.3-1) ... Setting up mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ... Setting up mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing package mysql-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up php5-mysql (5.5.9+dfsg-1ubuntu4.5) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/php5/mods-available/mysql.ini with new version php5_invoke: Enable module mysql for cli SAPI php5_invoke: Enable module mysql for apache2 SAPI locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/php5/mods-available/mysqli.ini with new version php5_invoke: Enable module mysqli for cli SAPI php5_invoke: Enable module mysqli for apache2 SAPI locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version php5_invoke: Enable module pdo_mysql for cli SAPI php5_invoke: Enable module pdo_mysql for apache2 SAPI Setting up php5-cli (5.5.9+dfsg-1ubuntu4.5) ... update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/php5/cli/php.ini with new version php5_invoke: Enable module json for cli SAPI php5_invoke: Enable module opcache for cli SAPI php5_invoke pdo_mysql: already enabled for cli SAPI php5_invoke mysql: already enabled for cli SAPI php5_invoke: Enable module pdo for cli SAPI php5_invoke: Enable module xdebug for cli SAPI php5_invoke mysqli: already enabled for cli SAPI Setting up php5-readline (5.5.9+dfsg-1ubuntu4.5) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/php5/mods-available/readline.ini with new version php5_invoke: Enable module readline for cli SAPI php5_invoke: Enable module readline for apache2 SAPI Setting up php5-snmp (5.5.9+dfsg-1ubuntu4.5) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/php5/mods-available/snmp.ini with new version php5_invoke: Enable module snmp for cli SAPI php5_invoke: Enable module snmp for apache2 SAPI Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.3-1) ... Setting up libaprutil1-ldap:amd64 (1.5.3-1) ... Setting up apache2-bin (2.4.7-1ubuntu4.1) ... Setting up apache2-data (2.4.7-1ubuntu4.1) ... Setting up apache2 (2.4.7-1ubuntu4.1) ... Enabling module mpm_event. Enabling module authz_core. Enabling module authz_host. Enabling module authn_core. Enabling module auth_basic. Enabling module access_compat. Enabling module authn_file. Enabling module authz_user. Enabling module alias. Enabling module dir. Enabling module autoindex. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module filter. Enabling module deflate. Enabling module status. Enabling conf charset. Enabling conf localized-error-pages. Enabling conf other-vhosts-access-log. Enabling conf security. Enabling conf serve-cgi-bin. Enabling site 000-default. * Starting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. * * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems invoke-rc.d: initscript apache2, action "start" failed. Setting up dbconfig-common (1.8.47+nmu1) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/dbconfig-common/config with new version Setting up javascript-common (11) ... apache2_invoke: Enable configuration javascript-common * Reloading web server apache2 * * Apache2 is not running invoke-rc.d: initscript apache2, action "reload" failed. Setting up libdbi1:amd64 (0.9.0-1) ... Setting up libhtml-template-perl (2.95-1) ... Setting up libjs-jquery (1.7.2+dfsg-2ubuntu1) ... Setting up libjs-jquery-cookie (8-2) ... Setting up libphp-adodb (5.15-1) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Setting up librrd4 (1.4.7-2ubuntu5) ... dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Setting up snmp (5.7.2~dfsg-8.1ubuntu3) ... Setting up rrdtool (1.4.7-2ubuntu5) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Setting up libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.5) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive Creating config file /etc/php5/apache2/php.ini with new version php5_invoke: Enable module json for apache2 SAPI php5_invoke: Enable module opcache for apache2 SAPI php5_invoke pdo_mysql: already enabled for apache2 SAPI php5_invoke mysql: already enabled for apache2 SAPI php5_invoke: Enable module pdo for apache2 SAPI php5_invoke snmp: already enabled for apache2 SAPI php5_invoke: Enable module xdebug for apache2 SAPI php5_invoke mysqli: already enabled for apache2 SAPI php5_invoke readline: already enabled for apache2 SAPI Module mpm_event disabled. Enabling module mpm_prefork. apache2_switch_mpm Switch to prefork * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. ...fail! * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems invoke-rc.d: initscript apache2, action "restart" failed. apache2_invoke: Enable module php5 * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. ...fail! * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems invoke-rc.d: initscript apache2, action "restart" failed. Setting up cacti (0.8.8b+dfsg-5) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-n01Erb/debconf.socket: Connection refused at (eval 34) line 3.) debconf: falling back to frontend: Noninteractive dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf Creating config file /etc/dbconfig-common/cacti.conf with new version Creating config file /etc/cacti/debian.php with new version ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2). unable to connect to mysql server. error encountered creating user: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) dbconfig-common: cacti configure: aborted. dbconfig-common: flushing administrative password dpkg: error processing package cacti (--configure): subprocess installed post-installation script returned error exit status 1