@Robie Basak Should new installation of mysql create directory /etc/mysql and its structure? 1. I removed /etc/mysq/* 2. Installed mysql-server with apt - the same error:
$ sudo rm -R /etc/mysql $ sudo apt install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: mysql-client-5.7 mysql-client-core-5.7 mysql-server-5.7 mysql-server-core-5.7 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7 0 upgraded, 5 newly installed, 0 to remove and 194 not upgraded. Need to get 0 B/17,9 MB of archives. After this operation, 160 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Preconfiguring packages ... Selecting previously unselected package mysql-client-core-5.7. (Reading database ... 543204 files and directories currently installed.) Preparing to unpack .../mysql-client-core-5.7_5.7.11-0ubuntu5_amd64.deb ... Unpacking mysql-client-core-5.7 (5.7.11-0ubuntu5) ... Selecting previously unselected package mysql-client-5.7. Preparing to unpack .../mysql-client-5.7_5.7.11-0ubuntu5_amd64.deb ... Unpacking mysql-client-5.7 (5.7.11-0ubuntu5) ... Selecting previously unselected package mysql-server-core-5.7. Preparing to unpack .../mysql-server-core-5.7_5.7.11-0ubuntu5_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.11-0ubuntu5) ... Selecting previously unselected package mysql-server-5.7. Preparing to unpack .../mysql-server-5.7_5.7.11-0ubuntu5_amd64.deb ... grep: /etc/mysql/: No such file or directory Unpacking mysql-server-5.7 (5.7.11-0ubuntu5) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.7.11-0ubuntu5_all.deb ... Unpacking mysql-server (5.7.11-0ubuntu5) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu1) ... Processing triggers for ureadahead (0.100.0-19) ... ureadahead will be reprofiled on next reboot Setting up mysql-client-core-5.7 (5.7.11-0ubuntu5) ... Setting up mysql-client-5.7 (5.7.11-0ubuntu5) ... Setting up mysql-server-core-5.7 (5.7.11-0ubuntu5) ... Setting up mysql-server-5.7 (5.7.11-0ubuntu5) ... update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist dpkg: error processing package mysql-server-5.7 (--configure): subprocess installed post-installation script returned error exit status 2 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 No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: mysql-server-5.7 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569163 Title: Fail on Setting up mysql-server-5.7 after dist-upgrade on 16.04 beta To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1569163/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs