Preparing to unpack .../apache2-bin_2.4.18-2ubuntu3.5_amd64.deb ... Unpacking apache2-bin (2.4.18-2ubuntu3.5) ... Selecting previously unselected package apache2-utils. Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.5_amd64.deb ... Unpacking apache2-utils (2.4.18-2ubuntu3.5) ... Selecting previously unselected package apache2-data. Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.5_all.deb ... Unpacking apache2-data (2.4.18-2ubuntu3.5) ... Selecting previously unselected package apache2. Preparing to unpack .../apache2_2.4.18-2ubuntu3.5_amd64.deb ... Unpacking apache2 (2.4.18-2ubuntu3.5) ... Selecting previously unselected package mysql-client-core-5.7. Preparing to unpack .../mysql-client-core-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ... Unpacking mysql-client-core-5.7 (5.7.21-0ubuntu0.16.04.1) ... Selecting previously unselected package mysql-client-5.7. Preparing to unpack .../mysql-client-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ... Unpacking mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ... Selecting previously unselected package mysql-server-core-5.7. Preparing to unpack .../mysql-server-core-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.21-0ubuntu0.16.04.1) ... Selecting previously unselected package libevent-core-2.0-5:amd64. Preparing to unpack .../libevent-core-2.0-5_2.0.21-stable-2ubuntu0.16.04.1_amd64.deb ... Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ... Preparing to unpack .../mysql-server-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ... grep: /etc/mysql/: No such file or directory Unpacking mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ... Selecting previously unselected package libapache2-mod-php7.0. Preparing to unpack .../libapache2-mod-php7.0_7.0.28-0ubuntu0.16.04.1_amd64.deb ... Unpacking libapache2-mod-php7.0 (7.0.28-0ubuntu0.16.04.1) ... Selecting previously unselected package libapache2-mod-php. Preparing to unpack .../libapache2-mod-php_1%3a7.0+35ubuntu6.1_all.deb ... Unpacking libapache2-mod-php (1:7.0+35ubuntu6.1) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.7.21-0ubuntu0.16.04.1_all.deb ... Unpacking mysql-server (5.7.21-0ubuntu0.16.04.1) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu21.2) ... Processing triggers for ureadahead (0.100.0-19) ... ureadahead will be reprofiled on next reboot Processing triggers for ufw (0.35-0ubuntu2) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... Setting up apache2-bin (2.4.18-2ubuntu3.5) ... Setting up apache2-utils (2.4.18-2ubuntu3.5) ... Setting up apache2-data (2.4.18-2ubuntu3.5) ... Setting up apache2 (2.4.18-2ubuntu3.5) ... Setting up mysql-client-core-5.7 (5.7.21-0ubuntu0.16.04.1) ... Setting up mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ... Setting up mysql-server-core-5.7 (5.7.21-0ubuntu0.16.04.1) ... Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ... Setting up mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ... Installing new version of config file /etc/apparmor.d/usr.sbin.mysqld ... Installing new version of config file /etc/init.d/mysql ... Installing new version of config file /etc/logrotate.d/mysql-server ... Configuration file '/etc/mysql/debian-start' ==> Deleted (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** debian-start (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package mysql-server-5.7 (--configure): end of file on stdin at conffile prompt Setting up libapache2-mod-php7.0 (7.0.28-0ubuntu0.16.04.1) ... Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66. Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67. Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68. Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66. Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67. Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68. Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66. Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67. Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68. Warning: unable to close filehandle GEN1 properly: Broken pipe during global destruction. dpkg: error processing package libapache2-mod-php7.0 (--configure): subprocess installed post-installation script returned error exit status 128 dpkg: dependency problems prevent configuration of libapache2-mod-php: libapache2-mod-php depends on libapache2-mod-php7.0; however: Package libapache2-mod-php7.0 is not configured yet. dpkg: error processing package libapache2-mod-php (--configure): dependency problems - leaving unconfigured