Mysql install problem

Hey guys, not sure if this is the right place to ask for help but…

I’m kinda new to Linux, but didn’t get a problem I couldn’t solve searching online and following tutorials, except this one.

This week I’ve been trying to install Mysql Server without success. Since I’ve been using the system for a while and tried many things, I decided to format and start from zero.

After installing it again, tried to install mysql and the problem happened again :frowning:

sudo apt-get install mysql-server

I dont know what to do, tried many solutions from stackoverflow, etc, like purging everything mysql related, uninstalling things using dpkg, removing all mysql folders, etc, and nothing solves the problem.

Here’s the full log:

Hey guys, not sure if this is the right place to ask for help but…

I’m kinda new to Linux, but didn’t get a problem I couldn’t solve searching online and following tutorials, except this one.

This week I’ve been trying to install Mysql Server without success. Since I’ve been using the system for a while and tried many things, I decided to format and start from zero.

After installing it again, tried to install mysql and the problem happened again :frowning:

sudo apt-get install mysql-server

I dont know what to do, tried many solutions from stackoverflow, etc, like purging everything mysql related, uninstalling things using dpkg, removing all mysql folders, etc, and nothing solves the problem.

Here’s the full log:

~  sudo apt-get install mysql-server             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
   libaio1 libevent-core-2.1-6 libmecab2 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:
  libaio1 libevent-core-2.1-6 libmecab2 mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20,9 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libaio1:amd64.
(Reading database ... 205438 files and directories currently installed.)
Preparing to unpack .../0-libaio1_0.3.111-1_amd64.deb ...
Unpacking libaio1:amd64 (0.3.111-1) ...
Selecting previously unselected package mysql-client-core-5.7.
Preparing to unpack .../1-mysql-client-core-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../2-mysql-client-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...
Selecting previously unselected package mysql-server-core-5.7.
Preparing to unpack .../3-mysql-server-core-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...
Selecting previously unselected package libevent-core-2.1-6:amd64.
Preparing to unpack .../4-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...
Unpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
Selecting previously unselected package libmecab2:amd64.
Preparing to unpack .../5-libmecab2_0.996-6_amd64.deb ...
Unpacking libmecab2:amd64 (0.996-6) ...
Selecting previously unselected package mysql-server-5.7.
Preparing to unpack .../6-mysql-server-5.7_5.7.27-0ubuntu0.19.04.1_amd64.deb ...
grep: /etc/mysql/: No such file or directory
Unpacking mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../7-mysql-server_5.7.27-0ubuntu0.19.04.1_all.deb ...
Unpacking mysql-server (5.7.27-0ubuntu0.19.04.1) ...
Setting up libmecab2:amd64 (0.996-6) ...
Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
Setting up libaio1:amd64 (0.3.111-1) ...
Setting up mysql-server-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...
Setting up mysql-client-core-5.7 (5.7.27-0ubuntu0.19.04.1) ...
Setting up mysql-client-5.7 (5.7.27-0ubuntu0.19.04.1) ...
Setting up mysql-server-5.7 (5.7.27-0ubuntu0.19.04.1) ...
update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist
dpkg: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess 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.=Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

That looks like s bug with the package itself.

I know nothing about that database so cannot really help other than to advise you to file a bug report on launchpad and the bug triagers can hopefully help

ubuntu-bug mysql-5.7

Or via here

https://launchpad.net/ubuntu/+source/mysql-5.7/+filebug