Home > database >  Ubuntu Mysql5.7 installation error:
Ubuntu Mysql5.7 installation error:

Time:09-24

Do you want to continue? [Y/n] Y
Preconfiguring packages...
Selecting previously unselected package mysql - common.
(Reading the database... 78928 files and directories currently installed.)
Preparing to unpack.../mysql - common_5. 7.23 1 ubuntu14. 04 _amd64. Deb...
Unpacking the mysql - common (ubuntu14 5.7.23-1. 04)...
Selecting previously unselected package mysql - community - client.
Preparing to unpack.../mysql - community - client_5. 7.23 1 ubuntu14. 04 _amd64. Deb...
Unpacking the mysql - community - the client (ubuntu14 5.7.23-1. 04)...
Selecting previously unselected package mysql - client.
Preparing to unpack.../mysql - client_5. 7.23 1 ubuntu14. 04 _amd64. Deb...
Unpacking the mysql - client (ubuntu14 5.7.23-1. 04)...
Selecting previously unselected package mysql - community - server.
Preparing to unpack.../mysql - community - server_5. 7.23 1 ubuntu14. 04 _amd64. Deb...
Unpacking the mysql - community - server (ubuntu14 5.7.23-1. 04)...
Selecting previously unselected package mysql - server.
Preparing to unpack.../mysql - server_5. 7.23 1 ubuntu14. 04 _amd64. Deb...
Unpacking the mysql server - (ubuntu14 5.7.23-1. 04)...
Processing triggers for man - db (ubuntu1 2.6.7.1-1)...
Processing triggers for ureadahead (0.100.0-16)...
Setting up a mysql - common (ubuntu14 5.7.23-1. 04)...
Update - alternatives: using the/etc/mysql/my CNF. The fallback to dojo.provide/etc/mysql/my CNF (my) CNF) in auto mode
Setting up a mysql - community - the client (ubuntu14 5.7.23-1. 04)...
Setting up a mysql - client (ubuntu14 5.7.23-1. 04)...
Setting up a mysql - community - server (ubuntu14 5.7.23-1. 04)...
Update - alternatives: using the/etc/mysql/mysql CNF to dojo.provide/etc/mysql/my CNF (my) CNF) in auto mode
Mysqld: Can 't read dir of'/etc/mysql/mysql. Conf., d/a '(Errcode: 13 - Permission denied)
Mysqld: [ERROR] Fatal ERROR defaults in handling. The Program aborted!
DPKG: error processing package mysql - community - server (- configure) :
Subprocess installed post - the installation script returned error exit status 1
DPKG: dependency problems prevent the configuration of the mysql server:
Mysql server depends on mysql - community - server (=ubuntu14 5.7.23-1. 04). Clear:
Package mysql - community - the server is not configured yet.

DPKG: error processing package mysql server - (- configure) :
The dependency problems - brigade unconfigured
Processing triggers for ureadahead (0.100.0-16)...
No apport report written because the error message are its a followup error from a previous failure.
Errors were encountered while processing:
Mysql - community - server
The mysql server -
E: Sub - process/usr/bin/DPKG returned an error code (1)



Company server installed at this wrong above, the same environment in to your server, install everything is normal, it is big, make uncertain,
A great god to see

CodePudding user response:

Download the installation package to mysql website installed directly.

CodePudding user response:

Then solved? I also met the same problem, two servers, one installation is ok, another one is an error:
Setting up a mysql - community - server (ubuntu14 5.7.24-1. 04)...
Mysqld: Can 't read dir of'/etc/mysql/mysql. Conf., d/a '(Errcode: 13 - Permission denied)
Mysqld: [ERROR] Fatal ERROR defaults in handling. The Program aborted!
Big ah,,,

CodePudding user response:

Actually it is good to restart the machine, I dizzy,,,,,,,

CodePudding user response:

Sure it is good to restart?


According to your error messages, it seems that the likelihood is you use DPKG installed directly, but account does not have to use sudo permissions?
Check whether the account has joined sudo group or directly use the root account to install

I think that after installation, apt or DPKG has not completed the set of initialization, you should be very strange to use...
Suggest to perform the installation again

$sudo aptitude purge mysql - community - client
$sudo aptitude purge mysql - community - server
$sudo aptitude purge mysql - client

And then to use aptitude install
  • Related