package:mysql-server-5.7:5.7.21-0ubuntu0.16.04.1 Setting up mysql-server-5.7 (5.7.21-0ubuntu0.16.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 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 Sun 2018-03-18 18:48:41 IST; 173ms ago Process: 10939 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE) Mar 18 18:48:41 vivek-aspire-5310 systemd[1]: Failed to start MySQL Communit.... Mar 18 18:48:41 vivek-aspire-5310 systemd[1]: mysql.service: Unit entered fa.... Mar 18 18:48:41 vivek-aspire-5310 systemd[1]: mysql.service: Failed with res.... Mar 18 18:48:41 vivek-aspire-5310 systemd[1]: mysql.service: Service hold-of.... Mar 18 18:48:41 vivek-aspire-5310 systemd[1]: Stopped MySQL Community Server. Mar 18 18:48:41 vivek-aspire-5310 systemd[1]: Starting MySQL Community Server... 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