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: 20msMar 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: https://forum.manjaro.org/c/support
░░
░░ 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: https://forum.manjaro.org/c/support
░░
░░ 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: 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 16 10:57:00 Framework-Linux 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 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: https://forum.manjaro.org/c/support
░░
░░ 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.