title: How to forcefully remove MySQL and MariaDB from Ubuntu 16.04, without `apt-get` and `dpkg`?
body: <p>By wrong uninstalling <em>MariaDB</em>, I've lost working instance of <em>MySQL</em> and <em>MariaDB</em> in my <em>Ubuntu 16.04</em> system...</p>
  
  <p>I've broken the dependencies so much, that I can not uninstall or install <em>MySQL</em> or <em>MariaDB</em>, using <code>apt-get</code>, or <code>dpkg</code>...</p>
  
  <p>All the following commands failed:</p>
  
  <pre><code>apt-get [install -f] [update] [remove] [purge] [autorove] [clean] [check]
  </code></pre>
  
  <p>and options with <code>dpkg</code> such as:</p>
  
  <pre><code>dpkg --remove --force-remove-reinstreq mysql
  </code></pre>
  
  <p>also don't help me.</p>
  
  <p>Manually downloading the package and attempting to install from a local file did not help.</p>
  
  <p>For each installation, uninstallation or other attempt, I get almost the same result:</p>
  
  <pre><code>Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  You might want to run 'apt-get -f install' to correct these.
  The following packages have unmet dependencies:
   mariadb-client : Depends: mariadb-client-10.0 (&gt;= 10.0.34-0ubuntu0.16.04.1) but it is not installed
   mariadb-server-10.0 : PreDepends: mariadb-common (&gt;= 10.0.34-0ubuntu0.16.04.1) but it is not installed
                         Depends: mariadb-client-10.0 (&gt;= 10.0.34-0ubuntu0.16.04.1) but it is not installed
                         Breaks: mysql-server
   mariadb-server-core-10.0 : Depends: mariadb-common (&gt;= 10.0.34-0ubuntu0.16.04.1) but it is not installed
   mysql-server : Depends: mysql-community-server (= 5.7.22-1ubuntu16.04) but it is not installed
  E: Unmet dependencies. Try using -f.
  </code></pre>
  
  <p>Is there any different way to permanently remove any traces and remnants of <em>MySQL</em> and <em>MariaDB</em> from the operating system, so that I can reinstall <em>MySQL</em> itself?</p>
  
  <p>I need to working with <em>MySQL</em>, but I can't reinstall the operating system.</p>
  
  <p>Please help me.</p>