title: mysql-server-5.7 is not configured yet
body: <p>I installed Mysql5.7 long time ago, afterwards I uninstalled it and installed MariaDB disabling apparmor (mysql) profile.</p>
  
  <p>Now I uninstalled MariaDB and I'm trying to install mysql5.7 and I got this error:</p>
  
  <pre><code>Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  mysql-server is already the newest version (5.7.28-0ubuntu0.18.04.4).
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  2 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n] Y
  Setting up mysql-server-5.7 (5.7.28-0ubuntu0.18.04.4) ...
  /var/lib/dpkg/info/mysql-server-5.7.postinst: line 191: /usr/share/mysql-common/configure-symlinks: No such file or directory
  dpkg: error processing package mysql-server-5.7 (--configure):
   installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
  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)
  </code></pre>
  
  <p>I get this error when I use <code>sudo dpkg --configre -a</code> too.</p>
  
  <p>I install the package using <code>sudo apt install mysql-server</code>.
  I tried to follow some guide online, I removed <code>/var/lib/dpkg/info/mysql-server-5.7.postinst</code> purged mariadb, mysql and tried a lot of things.</p>