Ubuntu 16.04:当我使用 apt 安装 mysql 时,显示:
The following additional packages will be installed:
apparmor mysql-server-5.7
Suggested packages:
apparmor-profiles apparmor-profiles-extra apparmor-docs apparmor-utils tinyca
The following NEW packages will be installed:
apparmor mysql-server mysql-server-5.7
此外,当我卸载 app-armor 时,它显示:
The following packages will be REMOVED:
apparmor mysql-server mysql-server-5.7
我这里漏掉了什么吗?我只是想安装 mysql 并避开第三层 (apparmor) 和第四层 (SElinux) 地狱。
答案1
Ubuntu 上的 MySQL 软件包已包含自 14.04 版起的 AppArmor 配置文件,如果这些软件包不依赖于 AppArmor,那么一定是疏忽或依赖了某些间接依赖项。无论如何,MySQL 软件包的更新日志显示:
mysql-5.7 (5.7.11-0ubuntu3) xenial; urgency=medium
* Ubuntu upload from Debian VCS c17404a.
* FFe update to MySQL 5.7 (LP: #1528583).
* Revert "Build with libmecab-dev" since libmecab-dev is in universe.
* mysql-server-5.7: depend on apparmor (>= 2.10) for Trusty upgrade
path.
-- Robie Basak <[email protected]> Wed, 16 Mar 2016 14:01:31 +0000
所以,是的,它确实需要 AppArmor。如果你真的想避免使用 AppArmor,你必须重建包以删除依赖项,或者伪装依赖。