Sudo: lxd: command not found

As the heading shows
I installed lxd with the help of

sherab@sherab-librem13v4:~$ snap install lxd
Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you
         installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more
         details.

lxd 4.6 from Canonical✓ installed

lxd is installed but somehow not found.
any advice??

The error is pretty clear about it. /snap/bin is not in your $PATH variable.

You can either modify whatever sets PATH on your system or just use the full path of /snap/bin/lxc

ok thanks
I had it earlier and did add it to the PATH and it did not work.
I’ll try again.
Cheers

If you are on a desktop session, you need to restart it so that the terminal windows can figure out the updated path. That, or refresh the path manually.

Many thanks both.
It seems to work now.
I appreciate your work very much!

In my Pi 5, Rapibian OS (BookWorm 64b):

sudo -i lxd
did the trick

guido@nextcl01:/ $ sudo lxd init
sudo: lxd: command not found
guido@nextcl01:/ $ sudo -i lxd init
Would you like to use LXD clustering? (yes/no) [default=no]:

I found that on:
How to Install lxd on Raspberry Pi

Guido

Is that from the snap package of LXD?

In this forum we have switch to supporting Incus, which is a continuation of LXD.
See the migration to Incus documentation. It should save some memory resources when you do not use the snap package.

1 Like