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/golang.org/x/net@v0.4.0/publicsuffix/table.go:5:8: package embed is not in GOROOT (/usr/lib/go-1.15/src/embed)
…/go/pkg/mod/github.com/mattn/go-runewidth@v0.0.14/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /home/supmagie/go/pkg/mod/github.com/rivo/uniseg@v0.4.3
…/go/pkg/mod/golang.org/x/net@v0.4.0/http2/transport.go:19:2: package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)
…/go/pkg/mod/github.com/osrg/gobgp/v3@v3.9.0/pkg/packet/bgp/mup.go:7:2: 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.

2 Likes

Lxd is in Debian testing at the moment.

https://wiki.debian.org/LXD

I also host an unofficial backport of the LXD packages for bullseye: https://apt.calenhad.com/. 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.

2 Likes