Preparing to unpack .../ubuntu-desktop_1.361.4_amd64.deb ... Unpacking ubuntu-desktop (1.361.4) over (1.361.4) ... Setting up mysql-server-5.7 (5.7.31-0ubuntu0.16.04.1) ... Renaming removed key_buffer and myisam-recover options (if present) 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 Fri 2020-08-21 10:06:29 IST; 10ms ago Process: 6207 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS) Process: 6206 ExecStart=/usr/sbin/mysqld (code=exited, status=3) Process: 6184 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS) Main PID: 6206 (code=exited, status=3) Aug 21 10:06:29 suchit systemd[1]: Failed to start MySQL Community Server. Aug 21 10:06:29 suchit systemd[1]: mysql.service: Unit entered failed state. Aug 21 10:06:29 suchit systemd[1]: mysql.service: Failed with result 'exit-...'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package mysql-server-5.7 (--configure): subprocess installed post-installation script returned error exit status 1