使用命令行 (sudo snap install slack --classic) 从 snap store 安装 slack 时,出现以下错误。请帮我解决这个问题。
error: cannot perform the following tasks:
- Setup snap "slack" (49) security profiles (cannot setup profiles for snap "slack": cannot load apparmor profiles: exit status 1
apparmor_parser output: AppArmor parser error for
/var/lib/snapd/apparmor/profiles/snap-update-ns.slack in
/var/lib/snapd/apparmor/profiles/snap-update-ns.slack at line 8: Could
not open 'tunables/global'
AppArmor parser error for
/var/lib/snapd/apparmor/profiles/snap.slack.slack in
/var/lib/snapd/apparmor/profiles/snap.slack.slack at line 2: Could not
open 'tunables/global' )
答案1
AppArmor 存在问题。由于 AppArmor 是默认安装的,因此您需要删除并重新安装其配置文件:
sudo apt purge apparmor-profiles
sudo apt install apparmor-profiles
然后您可以再次快速安装松弛。