我再也不能更新Ubuntu22.04上的快照应用程序了。如果我试图刷新firefox,就会得到:
$ sudo snap refresh firefox
error: cannot perform the following tasks:
- Setup snap "firefox" (2277) security profiles (cannot setup profiles for snap "firefox": cannot load apparmor profiles: exec: "apparmor_parser": executable file not found in $PATH
apparmor_parser output:
)
就连下载基本的Hello都能让我:
$ sudo snap install hello-world
error: cannot perform the following tasks:
- Setup snap "core" (14447) security profiles (cannot setup profiles for snap "core": cannot create host snap-confine apparmor configuration: cannot reload snap-confine apparmor profile: cannot load apparmor profiles: exec: "apparmor_parser": executable file not found in $PATH
apparmor_parser output:
)
Snap过去工作得很好,然后突然停止处理这些问题。我的版本是:
$ snap --version
snap 2.57.6
snapd 2.57.6
series 16
ubuntu 22.04
kernel 5.15.0-58-generic
$ apparmor_parser --version
AppArmor parser version 3.0.4
Copyright (C) 1999-2008 Novell Inc.
Copyright 2009-2018 Canonical Ltd.
我检查了apparmor_parser可执行文件是否可以从$PATH
访问,它是:
$ which apparmor_parser
/usr/sbin/apparmor_parser
$ echo "$PATH"
/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin:/snap/bin:/home/user/.local/bin
在这一点上,我没有想法,什么是问题,我如何能够解决它。我试着重新安装所有的东西,但仍然没有解决问题。有人能帮忙吗?
发布于 2023-02-09 02:04:50
也有同样的问题。通过重新安装AppArmor (和重新启动)修复它
sudo apt reinstall --purge apparmor
https://askubuntu.com/questions/1452232
复制相似问题