"snap install lxd" hangs

Hello,

I tried to install lxd using snap. (btw I did install and configure snap using the manjaro howto in this forum)

sudo snap install lxd
Start snap "lxd" (25945) services 

and the command is hanging at the line Start snap lxd (25945) services.

when I tried to see which services are being used

sudo systemctl -a  |  grep lxd
  run-snapd-ns-lxd.mnt.mount         loaded    active     mounted         /run/snapd/ns/lxd.mnt
  var-lib-snapd-snap-lxd-25945.mount loaded    active     mounted         Mount unit for lxd, revision 25945
  snap.lxd.activate.service          loaded    activating start     start Service for snap application lxd.activate
  snap.lxd.daemon.service            loaded    inactive   dead            Service for snap application lxd.daemon
  snap.lxd.user-daemon.service       loaded    inactive   dead            Service for snap application lxd.user-daemon
  snap.lxd.daemon.unix.socket        loaded    active     listening       Socket unix for snap application lxd.daemon
  snap.lxd.user-daemon.unix.socket   loaded    active     listening       Socket unix for snap application lxd.user-daemon

It seems to be the 3rd service which is blocking snap . I regain control in the shell when I stop this service. However, the installation of lxd fails every time

the corresponding entries in journalcntl:

Okt 23 21:56:38 clevo systemd[1]: Started snap.lxd.hook.install-988b7605-4006-4a15-b4cc-7fb062902ac5.scope.
Okt 23 21:56:38 clevo systemd[1]: snap.lxd.hook.install-988b7605-4006-4a15-b4cc-7fb062902ac5.scope: Deactivated successfully.
Okt 23 21:56:38 clevo systemd[1]: Listening on Socket unix for snap application lxd.daemon.
Okt 23 21:56:38 clevo systemd[1]: Listening on Socket unix for snap application lxd.user-daemon.
Okt 23 21:56:38 clevo systemd[1]: Starting Service for snap application lxd.activate...

What else can I do? Any Idea will be gladly welcome

Cheers Julia

Why would you use snap when lxd is available in the repositories?

$ sudo pacman -Syu lxd
1 Like

Hi Thanks for the answer
I did try, but when I wanted to init lxd got an error:

sudo lxd init
Error: Failed to connect to local LXD: Get "http://unix.socket/1.0": dial unix /var/lib/lxd/unix.socket: connect: no such file or directory

Ah, well Arch Wiki to the rescue:
https://wiki.archlinux.org/title/LXD#Installation

You need to start and enable lxd.socket after package installation:

$ sudo systemctl enable --now lxd.socket
1 Like

Thanks !
I just also found the arch wiki . Configuring now !

Cheers Julia

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.