Fail to LSB:AppArmor

文章目录

  • 发生了什么
  • AppArmor
  • 怎么解决

发生了什么

还是虚拟机 ubuntu 启动时的错误, (host win10, virtualbox). 每次都有该错误, 看着有点难受.

AppArmor

引用 ubuntu 的解释

AppArmor is a Linux Security Module implementation of name-based mandatory access controls. AppArmor confines individual programs to a set of listed files and posix 1003.1e draft capabilities.

AppArmor is installed and loaded by default. It uses profiles of an application to determine what files and permissions the application requires. Some packages will install their own profiles, and additional profiles can be found in the apparmor-profiles package.

这个 AppArmor 是个安全服务. 看来是这个服务的问题.

怎么解决

用简单暴力的方法来解决吧. (自己的虚拟机镜像随意玩). 重装一下.

# 停止服务
sudo systemctl stop apparmor.service
sudo update-rc.d -f apparmor remove
# 删除
sudo apt-get remove apparmor
# 删除/etc下的配置文件
sudo rm -rf /etc/apparmor.d/*
# 再次安装
sudo apt-get install apparmor

有时间再仔细研究.

你可能感兴趣的:(OperatingSystem)