更新后出现“无法启动 apparmor 初始化”

更新后出现“无法启动 apparmor 初始化”

我正在运行 Ubuntu 服务器 18.04。我刚刚更新了所有内容。重新启动后,它显示无法启动 apparmor 初始化。当我尝试手动启动它时,它再次失败并告诉我运行 systemctl status apparmor.service。当我运行它时,结果是:

    ● apparmor.service - AppArmor initialization
   Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-04-07 06:48:34 UTC; 3min 10s ago
     Docs: man:apparmor(7)
           http://wiki.apparmor.net/
  Process: 2913 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)
 Main PID: 2913 (code=exited, status=123)

Apr 07 06:48:34 webserver apparmor[2913]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Apr 07 06:48:34 webserver apparmor[2913]: AppArmor parser error for /etc/apparmor.d/usr.lib.snapd.snap-confine.real in /etc/apparmor.d/usr.lib.snapd.snap-confine.real at line 11: Could not
Apr 07 06:48:34 webserver apparmor[2913]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Apr 07 06:48:34 webserver apparmor[2913]: AppArmor parser error for /etc/apparmor.d/usr.lib.snapd.snap-confine.real in /etc/apparmor.d/usr.lib.snapd.snap-confine.real at line 11: Could not
Apr 07 06:48:34 webserver apparmor[2913]: AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap-confine.core.6130 in /var/lib/snapd/apparmor/profiles/snap-confine.core.6130 at lin
Apr 07 06:48:34 webserver apparmor[2913]: AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap-confine.core.6130 in /var/lib/snapd/apparmor/profiles/snap-confine.core.6130 at lin
Apr 07 06:48:34 webserver apparmor[2913]:    ...fail!
Apr 07 06:48:34 webserver systemd[1]: apparmor.service: Main process exited, code=exited, status=123/n/a
Apr 07 06:48:34 webserver systemd[1]: apparmor.service: Failed with result 'exit-code'.
Apr 07 06:48:34 webserver systemd[1]: Failed to start AppArmor initialization.

我该如何解决这个问题?我是否应该为此担心?谢谢。

答案1

我必须安装 snapd

sudo apt install snapd

不知道为什么这没有自动发生

相关内容