Fail to LSB:AppArmor

本文描述了在VirtualBox的Ubuntu虚拟机启动时遇到的AppArmor错误问题。AppArmor是一个Linux安全模块,用于限制程序的文件访问权限。为了解决这个问题,作者选择了简单粗暴的重装方法,计划后续深入研究。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

发生了什么

还是虚拟机 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

有时间再仔细研究.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值