Hi this issue happened with me. Update Log:
╰─○ sudo dpkg -a --configure Setting up mysql-server-5.7 (5.7.21-0ubuntu0.17.10.1) ... mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server Upgrade process encountered error and will not continue. mysql_upgrade failed with exit status 11 dpkg: error processing package mysql-server-5.7 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.7; however: Package mysql-server-5.7 is not configured yet. dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.7 mysql-server However i can start mysql server: ╭─ricsdeol at ricsdeol-solvian in ~ using ‹ruby-2.4.0› 18-01-23 - 9:23:00 ╰─○ sudo systemctl start mysql.service ╭─ricsdeol at ricsdeol-solvian in ~ using ‹ruby-2.4.0› 18-01-23 - 9:23:12 ╰─○ sudo systemctl status mysql.service ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled) Active: active (running) since Tue 2018-01-23 09:23:12 -02; 3s ago Process: 3674 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS) Process: 3649 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS) Main PID: 3673 (mysqld) Tasks: 28 (limit: 4915) Memory: 161.5M CPU: 407ms CGroup: /system.slice/mysql.service └─3673 /usr/sbin/mysqld jan 23 09:23:08 ricsdeol-solvian systemd[1]: Starting MySQL Community Server... jan 23 09:23:12 ricsdeol-solvian systemd[1]: Started MySQL Community Server. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1732319 Title: package mysql-server-5.7 5.7.20-0ubuntu0.17.10.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1732319/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs