Trouble installing LXD on Manjaro 6.1.19

Tried to install LXD via Snap on my Arch PC but it gave me the following error. It looks like snap is having trouble starting the snap.lxd.activate.service.

I was able to successfully install and run LXD on my Ubuntu test PC and I would love to get this to work on my Manjaro machine also.

$ snap install lxd
error: cannot perform the following tasks:

  • Start snap “lxd” (24483) services (systemctl command [start snap.lxd.activate.service] failed with exit status 1: Job for snap.lxd.activate.service failed because the control process exited with error code.
    See “systemctl status snap.lxd.activate.service” and “journalctl -xeu snap.lxd.activate.service” for details.
    )

I am currently running snap 2.58.2:

$ snap version
snap 2.58.2
snapd 2.58.2
series 16
manjaro -
kernel 6.1.19-1-MANJARO

And here is what systemctl says:

$ systemctl status snap.lxd.activate.service
× snap.lxd.activate.service
Loaded: not-found (Reason: Unit snap.lxd.activate.service not found.)
Active: failed (Result: exit-code) since Thu 2023-03-16 10:57:00 PDT; 1min 13s ago
Main PID: 83005 (code=exited, status=1/FAILURE)
CPU: 20ms

Mar 16 10:57:00 Framework-Linux systemd[1]: Starting Service for snap application lxd.activate…
Mar 16 10:57:00 Framework-Linux lxd.activate[83005]: aa-exec: ERROR: AppArmor interface not available
Mar 16 10:57:00 Framework-Linux systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Mar 16 10:57:00 Framework-Linux systemd[1]: snap.lxd.activate.service: Failed with result ‘exit-code’.
Mar 16 10:57:00 Framework-Linux systemd[1]: Failed to start Service for snap application lxd.activate.

and journalctl:

$ journalctl -xeu snap.lxd.activate.service
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ A start job for unit snap.lxd.activate.service has finished with a failure.
░░
░░ The job identifier is 4249 and the job result is failed.
Mar 16 10:57:00 Framework-Linux systemd[1]: Starting Service for snap application lxd.activate…
░░ Subject: A start job for unit snap.lxd.activate.service has begun execution
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ A start job for unit snap.lxd.activate.service has begun execution.
░░
░░ The job identifier is 4592.
Mar 16 10:57:00 Framework-Linux lxd.activate[83005]: aa-exec: ERROR: AppArmor interface not available
Mar 16 10:57:00 Framework-Linux systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ An ExecStart= process belonging to unit snap.lxd.activate.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Mar 16 10:57:00 Framework-Linux systemd[1]: snap.lxd.activate.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ The unit snap.lxd.activate.service has entered the ‘failed’ state with result ‘exit-code’.
Mar 16 10:57:00 Framework-Linux systemd[1]: Failed to start Service for snap application lxd.activate.
░░ Subject: A start job for unit snap.lxd.activate.service has failed
░░ Defined-By: systemd
░░ Support: Support - Manjaro Linux Forum
░░
░░ A start job for unit snap.lxd.activate.service has finished with a failure.
░░
░░ The job identifier is 4592 and the job result is failed.

This might be a related issue…

Difference is, that lxd/lxc was already installed and working fine prior to a kernel upgrade.

After upgrade from kernel 5.15.102-1 to kernel 6.1.19-1 I get a similar error message:

$ lxc list
cat: /proc/self/attr/current: Invalid argument
aa-exec: ERROR: AppArmor interface not available

I am also running Manjaro

$ uname -srvm
Linux 6.1.19-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon Mar 13 12:59:35 UTC 2023 x86_64

snap infos:

$ snap version
snap 2.58.2
snapd 2.58.2
series 16
manjaro -
kernel 6.1.19-1-MANJARO

$ snap info core

name: core
summary: snapd runtime environment
publisher: Canonical✓
store-url: https://snapcraft.io/core
contact: snaps@canonical.com
license: unset
description: |
 The core runtime environment for snapd
type: core
snap-id: 99T7MUlRhtI3U0QFgl5mXXESAiSwt776
tracking: latest/stable
refresh-date: 30 days ago, at 02:08 EAT
channels:
 latest/stable: 16-2.58.2 2023-02-15 (14784) 122MB -
 latest/candidate: 16-2.58.3 2023-03-07 (14946) 122MB -
 latest/beta: 16-2.58.3 2023-02-22 (14946) 122MB -
 latest/edge: 16-2.59+git4448.38cfe3b79 2023-03-15 (15061) 123MB -
installed: 16-2.58.2 (14784) 122MB core

Similar answer from systemctl:

$ sudo systemctl status snap.lxd.activate 
× snap.lxd.activate.service - Service for snap application lxd.activate
 Loaded: loaded (/etc/systemd/system/snap.lxd.activate.service; enabled; preset: disabled)
 Active: failed (Result: exit-code) since Fri 2023-03-17 09:47:20 EAT; 1h 13min ago
 Main PID: 1605 (code=exited, status=1/FAILURE)
 CPU: 169ms

Mar 17 09:47:20 E2AspireA51545 systemd[1]: Starting Service for snap application lxd.activate...
Mar 17 09:47:20 E2AspireA51545 lxd.activate[1605]: aa-exec: ERROR: AppArmor interface not available
Mar 17 09:47:20 E2AspireA51545 systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Mar 17 09:47:20 E2AspireA51545 systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
Mar 17 09:47:20 E2AspireA51545 systemd[1]: Failed to start Service for snap application lxd.activate.

and journalctl:

$ journalctl -xeu snap.lxd.activate.service

Mar 17 09:47:20 E2AspireA51545 systemd[1]: Starting Service for snap application lxd.activate...
░░ Subject: A start job for unit snap.lxd.activate.service has begun execution
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit snap.lxd.activate.service has begun execution.
░░ 
░░ The job identifier is 137.
Mar 17 09:47:20 E2AspireA51545 lxd.activate[1605]: aa-exec: ERROR: AppArmor interface not available
Mar 17 09:47:20 E2AspireA51545 systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ An ExecStart= process belonging to unit snap.lxd.activate.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Mar 17 09:47:20 E2AspireA51545 systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit snap.lxd.activate.service has entered the 'failed' state with result 'exit-code'.
Mar 17 09:47:20 E2AspireA51545 systemd[1]: Failed to start Service for snap application lxd.activate.
░░ Subject: A start job for unit snap.lxd.activate.service has failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit snap.lxd.activate.service has finished with a failure.
░░ 
░░ The job identifier is 137 and the job result is failed.

snap connections returns following for lxd/lxc:

$ snap connections | grep lx
lxd-support lxd:lxd-support :lxd-support -
network lxd:network :network -
network-bind lxd:network-bind :network-bind -
system-observe lxd:system-observe :system-observe -

From aa-status I get for lxd/lxc:

$ sudo aa-status

apparmor module is loaded.
209 profiles are loaded.
203 profiles are in enforce mode.

...

snap-update-ns.lxd

...

snap.lxd.activate
snap.lxd.benchmark
snap.lxd.buginfo
snap.lxd.check-kernel
snap.lxd.daemon
snap.lxd.hook.configure
snap.lxd.hook.install
snap.lxd.hook.remove
snap.lxd.lxc
snap.lxd.lxc-to-lxd
snap.lxd.lxd
snap.lxd.migrate
snap.lxd.user-daemon

And apparmor profiles lists:

lsd /var/lib/snapd/apparmor/profiles/

snap-confine.core.14784
snap-confine.snapd.17950
snap-confine.snapd.18357

...

snap-update-ns.lxd

...

snap.lxd.activate
snap.lxd.benchmark

snap.lxd.buginfo
snap.lxd.check-kernel
snap.lxd.daemon
snap.lxd.hook.configure
snap.lxd.hook.install
snap.lxd.hook.remove
snap.lxd.lxc
snap.lxd.lxc-to-lxd
snap.lxd.lxd
snap.lxd.migrate
snap.lxd.user-daemon

Please kindly advise.
Any help would gratefully appreciated!
Many thanks in advance!