update-rc.d: error: insserv rejected the script header 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 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)
This error is coming while installing this. I am using the following command to install:
sudo apt install mysql-server
I have also tried purging/removing the complete package, starting and stopping services, autoclean, autoremove. Everything. Kindly help me in installing mysql-server and client.