最近,我安装的 Ubuntu 上的每一个 snap 包都停止工作了。
当我尝试在控制台中运行它们时,我会收到错误:
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
我尝试重新安装 snapd、snap-confine 和 apparmor。还安装了 apparmor-easyprof 包。但这些都无法解决问题。
重新安装 snap 后,当我尝试安装新的 snap 时出现此错误:
error: cannot perform the following tasks:
- Setup snap "snapd" (11402) security profiles (cannot setup profiles for snap "snapd": cannot create host snap-confine apparmor configuration: cannot reload snap-confine apparmor profile: cannot load apparmor profiles: exit status 1
apparmor_parser output:
Found reference to variable multiarch, but is never declared)
当我尝试检查 apparmor 的状态时,aa-status
唯一的输出是apparmor module is loaded.
应该有更多的配置文件被加载并在状态中可见,据我所知。
的输出systemctl status apparmor
为:
Loaded: loaded (/lib/systemd/system/apparmor.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-03-30 18:51:05 EDT; 34min ago
Docs: man:apparmor(7)
https://gitlab.com/apparmor/apparmor/wikis/home/
Main PID: 10619 (code=exited, status=1/FAILURE)
Mar 30 18:51:05 samp-desktop apparmor.systemd[10754]: Found reference to variable HOMEDIRS, but is never declared
Mar 30 18:51:05 samp-desktop apparmor.systemd[10762]: Warning: found usr.sbin.sssd in /etc/apparmor.d/force-complain, forcing complain mode
Mar 30 18:51:05 samp-desktop apparmor.systemd[10762]: Found reference to variable multiarch, but is never declared
Mar 30 18:51:05 samp-desktop apparmor.systemd[10758]: Found reference to variable multiarch, but is never declared
Mar 30 18:51:05 samp-desktop apparmor.systemd[10764]: Found reference to variable HOME, but is never declared
Mar 30 18:51:05 samp-desktop apparmor.systemd[10765]: Found reference to variable PROC, but is never declared
Mar 30 18:51:05 samp-desktop apparmor.systemd[10619]: Error: At least one profile failed to load
Mar 30 18:51:05 samp-desktop systemd[1]: apparmor.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 18:51:05 samp-desktop systemd[1]: apparmor.service: Failed with result 'exit-code'.
Mar 30 18:51:05 samp-desktop systemd[1]: Failed to start Load AppArmor profiles.