Errors were encountered while processing: mysql-server-5.7 mysql-serverCannot reinstall mysql-server after its purgedpkg always try to install mysql-server-5.7Cannot install anything! Unmet dependencies. Libre OfficePostgreSQL 9.4 hangs during installation at “Removing obsolete dictionary files:”dependency error on libc6-amd64 even if it's already installedUbuntu 15.10 The installation or removal of a software package failedNginx installation error in Ubuntu 16.04mysql doesn't ask for root password when installingmysql-server-5.5 ErrorHow to delete mysql-clientError While removing corrupted mysqlmysql-server-5.7 package post-installation script subprocess returned error exit status 127

Why does the Sun have different day lengths, but not the gas giants?

Why do we read the Megillah by night and by day?

What are the purposes of autoencoders?

How do I color the graph in datavisualization?

Longest common substring in linear time

How much character growth crosses the line into breaking the character

The screen of my macbook suddenly broken down how can I do to recover

Has any country ever had 2 former presidents in jail simultaneously?

Biological Blimps: Propulsion

Create all possible words using a set or letters

Is a bound state a stationary state?

What prevents the use of a multi-segment ILS for non-straight approaches?

Is there a working SACD iso player for Ubuntu?

How should I respond when I lied about my education and the company finds out through background check?

Do Legal Documents Require Signing In Standard Pen Colors?

Intuition of generalized eigenvector.

How can "mimic phobia" be cured or prevented?

Removing files under particular conditions (number of files, file age)

On a tidally locked planet, would time be quantized?

Freedom of speech and where it applies

How can we generalize the fact of finite dimensional vector space to an infinte dimensional case?

Does the expansion of the universe explain why the universe doesn't collapse?

Drawing ramified coverings with tikz

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?



Errors were encountered while processing: mysql-server-5.7 mysql-server


Cannot reinstall mysql-server after its purgedpkg always try to install mysql-server-5.7Cannot install anything! Unmet dependencies. Libre OfficePostgreSQL 9.4 hangs during installation at “Removing obsolete dictionary files:”dependency error on libc6-amd64 even if it's already installedUbuntu 15.10 The installation or removal of a software package failedNginx installation error in Ubuntu 16.04mysql doesn't ask for root password when installingmysql-server-5.5 ErrorHow to delete mysql-clientError While removing corrupted mysqlmysql-server-5.7 package post-installation script subprocess returned error exit status 127













1















Hi get the following error while installing mysql



sudo apt-get install mysql-server



 Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-azure-cloud-tools-4.13.0-1012 linux-cloud-tools-4.13.0-1012-azure
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-common 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-common mysql-server mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/18.0 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-common.
(Reading database ... 143619 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.7.22-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-common (5.7.22-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-client-core-5.7.
Preparing to unpack .../mysql-client-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server-core-5.7.
Preparing to unpack .../mysql-server-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 143774 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.22-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.22-0ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Setting up mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Setting up mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Setting up mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
insserv: warning: script 'ehcp_daemon.py' missing LSB tags and overrides
insserv: warning: script 'ehcp' missing LSB tags and overrides
mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) 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
Processing triggers for systemd (229-4ubuntu21.2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I tried



sudo apt-get -f install


I have also tried the solution in this and this



The status of the mysql packages are
dpkg -l | grep mysql



ii mysql-client-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database client binaries
ii mysql-client-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database core client binaries
ii mysql-common 5.7.22-0ubuntu0.16.04.1 all MySQL database common files, e.g. /etc/mysql/my.cnf
iU mysql-server 5.7.22-0ubuntu0.16.04.1 all MySQL database server (metapackage depending on the latest version)
iF mysql-server-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries and system database setup
ii mysql-server-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries
ii php5.6-mysql 5.6.35-1+ubuntu16.04.1+deb.sury.org+1 amd64 MySQL module for PHP


Although these errors occur I am able to login into MySQL. Is it OK to continue with these errors? Please help me with this.










share|improve this question














bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    1















    Hi get the following error while installing mysql



    sudo apt-get install mysql-server



     Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    linux-azure-cloud-tools-4.13.0-1012 linux-cloud-tools-4.13.0-1012-azure
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
    mysql-client-5.7 mysql-client-core-5.7 mysql-common 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-common mysql-server mysql-server-5.7 mysql-server-core-5.7
    0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/18.0 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-common.
    (Reading database ... 143619 files and directories currently installed.)
    Preparing to unpack .../mysql-common_5.7.22-0ubuntu0.16.04.1_all.deb ...
    Unpacking mysql-common (5.7.22-0ubuntu0.16.04.1) ...
    Selecting previously unselected package mysql-client-core-5.7.
    Preparing to unpack .../mysql-client-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
    Unpacking mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    Selecting previously unselected package mysql-client-5.7.
    Preparing to unpack .../mysql-client-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
    Unpacking mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    Selecting previously unselected package mysql-server-core-5.7.
    Preparing to unpack .../mysql-server-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
    Unpacking mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    Processing triggers for man-db (2.7.5-1) ...
    Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
    update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
    Selecting previously unselected package mysql-server-5.7.
    (Reading database ... 143774 files and directories currently installed.)
    Preparing to unpack .../mysql-server-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
    Unpacking mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    Selecting previously unselected package mysql-server.
    Preparing to unpack .../mysql-server_5.7.22-0ubuntu0.16.04.1_all.deb ...
    Unpacking mysql-server (5.7.22-0ubuntu0.16.04.1) ...
    Processing triggers for man-db (2.7.5-1) ...
    Processing triggers for ureadahead (0.100.0-19) ...
    Processing triggers for systemd (229-4ubuntu21.2) ...
    Setting up mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    Setting up mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    Setting up mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
    update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
    Renaming removed key_buffer and myisam-recover options (if present)
    insserv: warning: script 'ehcp_daemon.py' missing LSB tags and overrides
    insserv: warning: script 'ehcp' missing LSB tags and overrides
    mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) 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
    Processing triggers for systemd (229-4ubuntu21.2) ...
    No apport report written because the error message indicates its a followup error from a previous failure.
    Processing triggers for ureadahead (0.100.0-19) ...
    Errors were encountered while processing:
    mysql-server-5.7
    mysql-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I tried



    sudo apt-get -f install


    I have also tried the solution in this and this



    The status of the mysql packages are
    dpkg -l | grep mysql



    ii mysql-client-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database client binaries
    ii mysql-client-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database core client binaries
    ii mysql-common 5.7.22-0ubuntu0.16.04.1 all MySQL database common files, e.g. /etc/mysql/my.cnf
    iU mysql-server 5.7.22-0ubuntu0.16.04.1 all MySQL database server (metapackage depending on the latest version)
    iF mysql-server-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries and system database setup
    ii mysql-server-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries
    ii php5.6-mysql 5.6.35-1+ubuntu16.04.1+deb.sury.org+1 amd64 MySQL module for PHP


    Although these errors occur I am able to login into MySQL. Is it OK to continue with these errors? Please help me with this.










    share|improve this question














    bumped to the homepage by Community 2 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      1












      1








      1


      1






      Hi get the following error while installing mysql



      sudo apt-get install mysql-server



       Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
      linux-azure-cloud-tools-4.13.0-1012 linux-cloud-tools-4.13.0-1012-azure
      Use 'sudo apt autoremove' to remove them.
      The following additional packages will be installed:
      mysql-client-5.7 mysql-client-core-5.7 mysql-common 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-common mysql-server mysql-server-5.7 mysql-server-core-5.7
      0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
      Need to get 0 B/18.0 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-common.
      (Reading database ... 143619 files and directories currently installed.)
      Preparing to unpack .../mysql-common_5.7.22-0ubuntu0.16.04.1_all.deb ...
      Unpacking mysql-common (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-client-core-5.7.
      Preparing to unpack .../mysql-client-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-client-5.7.
      Preparing to unpack .../mysql-client-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-server-core-5.7.
      Preparing to unpack .../mysql-server-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Processing triggers for man-db (2.7.5-1) ...
      Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
      update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
      Selecting previously unselected package mysql-server-5.7.
      (Reading database ... 143774 files and directories currently installed.)
      Preparing to unpack .../mysql-server-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-server.
      Preparing to unpack .../mysql-server_5.7.22-0ubuntu0.16.04.1_all.deb ...
      Unpacking mysql-server (5.7.22-0ubuntu0.16.04.1) ...
      Processing triggers for man-db (2.7.5-1) ...
      Processing triggers for ureadahead (0.100.0-19) ...
      Processing triggers for systemd (229-4ubuntu21.2) ...
      Setting up mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Setting up mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Setting up mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
      Renaming removed key_buffer and myisam-recover options (if present)
      insserv: warning: script 'ehcp_daemon.py' missing LSB tags and overrides
      insserv: warning: script 'ehcp' missing LSB tags and overrides
      mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) 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
      Processing triggers for systemd (229-4ubuntu21.2) ...
      No apport report written because the error message indicates its a followup error from a previous failure.
      Processing triggers for ureadahead (0.100.0-19) ...
      Errors were encountered while processing:
      mysql-server-5.7
      mysql-server
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      I tried



      sudo apt-get -f install


      I have also tried the solution in this and this



      The status of the mysql packages are
      dpkg -l | grep mysql



      ii mysql-client-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database client binaries
      ii mysql-client-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database core client binaries
      ii mysql-common 5.7.22-0ubuntu0.16.04.1 all MySQL database common files, e.g. /etc/mysql/my.cnf
      iU mysql-server 5.7.22-0ubuntu0.16.04.1 all MySQL database server (metapackage depending on the latest version)
      iF mysql-server-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries and system database setup
      ii mysql-server-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries
      ii php5.6-mysql 5.6.35-1+ubuntu16.04.1+deb.sury.org+1 amd64 MySQL module for PHP


      Although these errors occur I am able to login into MySQL. Is it OK to continue with these errors? Please help me with this.










      share|improve this question














      Hi get the following error while installing mysql



      sudo apt-get install mysql-server



       Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
      linux-azure-cloud-tools-4.13.0-1012 linux-cloud-tools-4.13.0-1012-azure
      Use 'sudo apt autoremove' to remove them.
      The following additional packages will be installed:
      mysql-client-5.7 mysql-client-core-5.7 mysql-common 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-common mysql-server mysql-server-5.7 mysql-server-core-5.7
      0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
      Need to get 0 B/18.0 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-common.
      (Reading database ... 143619 files and directories currently installed.)
      Preparing to unpack .../mysql-common_5.7.22-0ubuntu0.16.04.1_all.deb ...
      Unpacking mysql-common (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-client-core-5.7.
      Preparing to unpack .../mysql-client-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-client-5.7.
      Preparing to unpack .../mysql-client-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-server-core-5.7.
      Preparing to unpack .../mysql-server-core-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Processing triggers for man-db (2.7.5-1) ...
      Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
      update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
      Selecting previously unselected package mysql-server-5.7.
      (Reading database ... 143774 files and directories currently installed.)
      Preparing to unpack .../mysql-server-5.7_5.7.22-0ubuntu0.16.04.1_amd64.deb ...
      Unpacking mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Selecting previously unselected package mysql-server.
      Preparing to unpack .../mysql-server_5.7.22-0ubuntu0.16.04.1_all.deb ...
      Unpacking mysql-server (5.7.22-0ubuntu0.16.04.1) ...
      Processing triggers for man-db (2.7.5-1) ...
      Processing triggers for ureadahead (0.100.0-19) ...
      Processing triggers for systemd (229-4ubuntu21.2) ...
      Setting up mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Setting up mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Setting up mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
      update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
      Renaming removed key_buffer and myisam-recover options (if present)
      insserv: warning: script 'ehcp_daemon.py' missing LSB tags and overrides
      insserv: warning: script 'ehcp' missing LSB tags and overrides
      mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) 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
      Processing triggers for systemd (229-4ubuntu21.2) ...
      No apport report written because the error message indicates its a followup error from a previous failure.
      Processing triggers for ureadahead (0.100.0-19) ...
      Errors were encountered while processing:
      mysql-server-5.7
      mysql-server
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      I tried



      sudo apt-get -f install


      I have also tried the solution in this and this



      The status of the mysql packages are
      dpkg -l | grep mysql



      ii mysql-client-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database client binaries
      ii mysql-client-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database core client binaries
      ii mysql-common 5.7.22-0ubuntu0.16.04.1 all MySQL database common files, e.g. /etc/mysql/my.cnf
      iU mysql-server 5.7.22-0ubuntu0.16.04.1 all MySQL database server (metapackage depending on the latest version)
      iF mysql-server-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries and system database setup
      ii mysql-server-core-5.7 5.7.22-0ubuntu0.16.04.1 amd64 MySQL database server binaries
      ii php5.6-mysql 5.6.35-1+ubuntu16.04.1+deb.sury.org+1 amd64 MySQL module for PHP


      Although these errors occur I am able to login into MySQL. Is it OK to continue with these errors? Please help me with this.







      16.04 apt mysql






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 24 '18 at 3:23









      MaathuMaathu

      612




      612





      bumped to the homepage by Community 2 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I had the same problem.



          I solved it by purging the configuration.



          1. Create a backup of all your data: mysqldump -u root -p --all-databases > ~/alldb.sql

          2. Remove packages and purge configuration¹ sudo apt purge "mysql-server-*"

          3. Reinstall the MySQL server: sudo apt install mysql-server, you should see Running queries to upgrade MySQL server. and it will show every table in your database

          ¹ I don't know why it doesn't remove the tables and databases






          share|improve this answer
























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027649%2ferrors-were-encountered-while-processing-mysql-server-5-7-mysql-server%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I had the same problem.



            I solved it by purging the configuration.



            1. Create a backup of all your data: mysqldump -u root -p --all-databases > ~/alldb.sql

            2. Remove packages and purge configuration¹ sudo apt purge "mysql-server-*"

            3. Reinstall the MySQL server: sudo apt install mysql-server, you should see Running queries to upgrade MySQL server. and it will show every table in your database

            ¹ I don't know why it doesn't remove the tables and databases






            share|improve this answer





























              0














              I had the same problem.



              I solved it by purging the configuration.



              1. Create a backup of all your data: mysqldump -u root -p --all-databases > ~/alldb.sql

              2. Remove packages and purge configuration¹ sudo apt purge "mysql-server-*"

              3. Reinstall the MySQL server: sudo apt install mysql-server, you should see Running queries to upgrade MySQL server. and it will show every table in your database

              ¹ I don't know why it doesn't remove the tables and databases






              share|improve this answer



























                0












                0








                0







                I had the same problem.



                I solved it by purging the configuration.



                1. Create a backup of all your data: mysqldump -u root -p --all-databases > ~/alldb.sql

                2. Remove packages and purge configuration¹ sudo apt purge "mysql-server-*"

                3. Reinstall the MySQL server: sudo apt install mysql-server, you should see Running queries to upgrade MySQL server. and it will show every table in your database

                ¹ I don't know why it doesn't remove the tables and databases






                share|improve this answer















                I had the same problem.



                I solved it by purging the configuration.



                1. Create a backup of all your data: mysqldump -u root -p --all-databases > ~/alldb.sql

                2. Remove packages and purge configuration¹ sudo apt purge "mysql-server-*"

                3. Reinstall the MySQL server: sudo apt install mysql-server, you should see Running queries to upgrade MySQL server. and it will show every table in your database

                ¹ I don't know why it doesn't remove the tables and databases







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 3 '18 at 20:50

























                answered Apr 30 '18 at 15:00









                A.LA.L

                199213




                199213



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027649%2ferrors-were-encountered-while-processing-mysql-server-5-7-mysql-server%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                    Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                    Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»