Issues for install LXD on Debian 11

Hello everyone !

I want to install LXD on my debian 11 server but I have some issues
I can’t find the package when I type sudo apt install lxd

So I decide to install it from source but I got another issue
When I type make deps there are no problem but after that, when I want to type make I got this :

CC=“cc” CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" go install -v -tags “libsqlite3” ./…
…/go/pkg/mod/ package embed is not in GOROOT (/usr/lib/go-1.15/src/embed)
…/go/pkg/mod/ found packages uniseg (doc.go) and main (gen_breaktest.go) in /home/supmagie/go/pkg/mod/
…/go/pkg/mod/ package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)
…/go/pkg/mod/ package net/netip is not in GOROOT (/usr/lib/go-1.15/src/net/netip)
make: *** [Makefile:33 : build] Erreur 1

Someone can help me ?
Thank you for your help ^^

You can download and run the precompiled binary here from the official LXD github repo release(s) page.
Or follow these steps to compile from source.
If you wanna prepare a package for debian you can study this and adapt it.


Lxd is in Debian testing at the moment.

I also host an unofficial backport of the LXD packages for bullseye: Due to the large number of new dependencies, there won’t be an official bullseye backport, but LXD will be part of Debian releases beginning with the bookworm release.