Giu*_*rli 5 mysql live-usb software-installation
我决定注册 askubuntu.com,因为我真的需要专家的建议:我使用 mkusb 制作了 Ubuntu 16.10 的持久性 USB Live 安装,因为我想要一个便携式开发环境。一切都很顺利,我现在正在从 Live 中写作。
现在的问题是:我设法安装了 apache2,但是在网上和这个网站上搜索了几个小时之后,我仍然无法正确安装 MySQL 服务器。重新执行多次安装后,我继续收到此错误:
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)
Run Code Online (Sandbox Code Playgroud)
如果我跑
sudo mysqld --initialize
Run Code Online (Sandbox Code Playgroud)
终端仍然报告
mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
所以我想搜索这个“libaio.so.1”,我完成了安装库“libaio1”和“libaio-dev”(这似乎是一样的)。然而,即使正确安装了这些库,结果也没有改变。
这是因为我在 LiveUSB 中吗?
我真的希望你能帮助我。对于这个问题中可能出现的任何错误,我提前道歉。谢谢你。
经过更多小时的研究,我发现问题不在于 LiveUSB 或库本身。问题在于 AppArmor,它阻止了 MySQL 使用该库。所以我禁用了它:
sudo /etc/init.d/apparmor stop
sudo /etc/init.d/apparmor teardown
sudo update-rc.d -f apparmor remove
Run Code Online (Sandbox Code Playgroud)
以一种不太正统的方式,我完全删除了 AppArmor,以防止将来出现以下问题:
sudo apt-get purge apparmor
Run Code Online (Sandbox Code Playgroud)
然后我卸载并重新安装了 MySQL 服务器。有用!
归档时间: |
|
查看次数: |
8796 次 |
最近记录: |