Preparing to unpack .../mysql-server-5.7_5.7.24-0ubuntu0.18.04.1_amd64.deb ... Unpacking mysql-server-5.7 (5.7.24-0ubuntu0.18.04.1) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.7.24-0ubuntu0.18.04.1_all.deb ... Unpacking mysql-server (5.7.24-0ubuntu0.18.04.1) ... Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ... Processing triggers for ureadahead (0.100.0-20) ... ureadahead will be reprofiled on next reboot Processing triggers for libc-bin (2.27-3ubuntu1) ... Setting up libaio1:amd64 (0.3.110-5) ... Processing triggers for systemd (237-3ubuntu10.11) ... Processing triggers for man-db (2.8.3-2) ... Setting up mysql-client-core-5.7 (5.7.24-0ubuntu0.18.04.1) ... Setting up mysql-server-core-5.7 (5.7.24-0ubuntu0.18.04.1) ... Setting up mysql-client-5.7 (5.7.24-0ubuntu0.18.04.1) ... Setting up mysql-server-5.7 (5.7.24-0ubuntu0.18.04.1) ... Installing new version of config file /etc/apparmor.d/usr.sbin.mysqld ... Installing new version of config file /etc/mysql/mysql.cnf ... Installing new version of config file /etc/mysql/mysql.conf.d/mysqld.cnf ... update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Unable to determine if daemon is running: No such file or directory Warning: Unable to start the server. Please restart MySQL and run mysql_upgrade to ensure the database is ready for use. Unable to determine if daemon is running: No such file or directory Warning: Unable to start the server. Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. invoke-rc.d: initscript mysql, action "start" failed. ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2019-01-22 12:24:15 IST; 8ms ago Process: 6106 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE) Process: 6097 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS) Jan 22 12:24:16 pc systemd[1]: Stopped MySQL Community Server. Jan 22 12:24:16 pc systemd[1]: Starting MySQL Community Server... Jan 22 12:24:16 pc mysqld[6156]: Unable to determine if daemon is running: No such file or directory Jan 22 12:24:16 pc systemd[1]: mysql.service: Control process exited, code=exited status=1 Jan 22 12:24:16 pc systemd[1]: mysql.service: Failed with result 'exit-code'. Jan 22 12:24:16 pc systemd[1]: Failed to start MySQL Community Server. Jan 22 12:24:16 pc systemd[1]: mysql.service: Service hold-off time over, scheduling restart. Jan 22 12:24:16 pc systemd[1]: mysql.service: Scheduled restart job, restart counter is at 3. Jan 22 12:24:16 pc systemd[1]: Stopped MySQL Community Server. Jan 22 12:24:16 pc systemd[1]: Starting MySQL Community Server... Jan 22 12:24:16 pc mysqld[6180]: Unable to determine if daemon is running: No such file or directory Jan 22 12:24:16 pc systemd[1]: mysql.service: Control process exited, code=exited status=1 Jan 22 12:24:16 pc systemd[1]: mysql.service: Failed with result 'exit-code'. Jan 22 12:24:16 pc systemd[1]: Failed to start MySQL Community Server. Jan 22 12:24:17 pc systemd[1]: mysql.service: Service hold-off time over, scheduling restart. Jan 22 12:24:17 pc systemd[1]: mysql.service: Scheduled restart job, restart counter is at 4. Jan 22 12:24:17 pc systemd[1]: Stopped MySQL Community Server. Jan 22 12:24:17 pc systemd[1]: Starting MySQL Community Server... Jan 22 12:24:17 pc mysqld[6204]: Unable to determine if daemon is running: No such file or directory Jan 22 12:24:17 pc systemd[1]: mysql.service: Control process exited, code=exited status=1 Jan 22 12:24:17 pc systemd[1]: mysql.service: Failed with result 'exit-code'. Jan 22 12:24:17 pc systemd[1]: Failed to start MySQL Community Server. dpkg: error processing package mysql-server-5.7 (--configure): installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1