title: Cannot install MySQL - libaio.so.1: cannot open shared object file: No such file or directory - Live Installation with Persistence
body: <hr>
  
  <p>I decided to sign up to askubuntu.com, because i really need an advice from experts: I made, with mkusb, a persistent USB Live installation of Ubuntu 16.10, since I'd like to have a portable development environment. Everything went good, and I'm writing from that Live right now. </p>
  
  <p>Now the question: I managed to install apache2, but after hours and hours of searching in the web, and also on this site, I cannot still properly install MySQL server. After re-executing many time the installation, I continue to get this error:</p>
  
  <pre><code> Setting up mysql-server-5.7 (5.7.17-0ubuntu0.16.10.1) ...
  ERROR: Unable to start MySQL server:
  mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
  Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
  Once the problem is resolved, run apt-get --fix-broken install to retry.
  dpkg: error processing package mysql-server-5.7 (--configure):
   subprocess installed post-installation script 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>And if I run</p>
  
  <pre><code>sudo mysqld --initialize
  </code></pre>
  
  <p>The terminal still reports</p>
  
  <pre><code>mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>So i thought to search for this "libaio.so.1" as well, and I finished up installing the libraries "libaio1" and "libaio-dev" (which seems to be the same). The result, however didn't change even if those libraries are correctly installed.</p>
  
  <p>Is this caused from the fact that I'm in a LiveUSB? Or is there another procedure to install/make MySQL recognize (since it's already installed, and I verified that the file exists) libaio.so.1?</p>
  
  <p>I really hope you can help me, because i tried everything. I apologize in advance for any possible mistake made in this question. Thank you. </p>
  
  <p>Oh, and there is an <a href="https://askubuntu.com/questions/886589/cannot-install-mysql-libaio-so-1-cannot-open-shared-object-file-no-such-file">unanswered duplicate on the Ubuntu community</a> made by me, so feel free to remove this question if it stays unanswered. Thank you in advance again.</p>