Closed GopherJ closed 3 years ago
I'd really like to use lxd but the PPA is deprecated and I spent the whole morning on searching:
How to install lxd on ubuntu v20.04
Nothing really worked for me.
Lxd is great, but please provide at least the basic step to start...and make it clear
I can understand that you love snap but not everyone can accept it, I had really bad experience with snap and will never use it again...but I want to use lxd on ubuntuv20.04, how should I install it? ...
https://www.cyberciti.biz/faq/install-lxd-on-ubuntu-20-04-lts-using-apt/ => this looks pointing old lxd@1.0.9, pls remove it if it's not maintained anymore
https://discuss.linuxcontainers.org/t/latest-version-of-lxc-lxd-via-ppa/3236/2 => apt install -t xenial-backports lxd lxd-client
gives the following errors
E: The value 'xenial-backports' is invalid for APT::Default-Release as such a release is not available in the sources
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-lxd-on-ubuntu-20-04 => says I should use snap, but I really had bad experience with snap... I cannot accept it, also some linux distribution is abandoning it as well
I then tried to use Install from source
:
I tried go get -d -v github.com/lxc/lxd/lxd
it succeeds and no errors.
then if I run:
cd $GOPATH/src/github.com/lxc/lxd
it gives:
cd: no such file or directory: /home/cheng/go/1.15.7/src/github.com/lxc/lxd
It's really annoying that such a good tool has no good documentation even for users to start...and force the usage of snap...
It's up to distributions to come up with native packages if they want them. For us as upstream the snap package is a convenient way to ship well tested builds on all distro and releases and be able to support the vast majority of our users that way.
If you don't want to use the snap, that's not a problem, but you'll indeed need to build LXD from source (you seem to have stopped reading the instructions partway, read through https://linuxcontainers.org/lxd/docs/master/#installing-lxd-from-source) or you can build your own packages too using the tooling from your distribution of choice.
@stgraber I do follow your instructions https://github.com/lxc/lxd/issues/8461#issuecomment-778718457 but still gets errors. I use goenv and have my GOPATH
set to $HOME/go/1.15.7
, I have no idea why lxd repo isn't pulled into GOPATH/github.com/lxd
I think lxd is not only upstream, there are also many users use it directly, please consider adding some useful working instructions for those users, depending on snap is really a bad choice as even linux distributions are stopping shipping it.
And I just tried to build it again and get:
That error shows that you didn't follow the steps adding the needed build dependencies (liblxc-dev in this case) or followed the instructions from the 'make deps' part.
@stgraber NO, I do have it:
pls really make your instructions work, I follow striticlly your instructions, here the history
Basically now I have no way to install it.
Why not considering putting some basic precompiled binaries using github CI? To make life easier...
Ubuntu 20.04 sure ships snapd, something must be very wrong with your package lists for apt not to find it.
Clean Ubuntu 20.04 system without snapd installed:
root@u1:~# dpkg -l snapd
dpkg-query: no packages found matching snapd
root@u1:~# apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [4032 B]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [1448 B]
Fetched 329 kB in 1s (327 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@u1:~# apt install snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apparmor liblzo2-2 squashfs-tools
Suggested packages:
apparmor-profiles-extra apparmor-utils zenity | kdialog
The following NEW packages will be installed:
apparmor liblzo2-2 snapd squashfs-tools
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.3 MB of archives.
After this operation, 129 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 apparmor amd64 2.13.3-7ubuntu5.1 [494 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liblzo2-2 amd64 2.10-2 [50.8 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 squashfs-tools amd64 1:4.4-1 [121 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 snapd amd64 2.48.3+20.04 [28.6 MB]
Fetched 29.3 MB in 1s (20.9 MB/s)
Preconfiguring packages ...
Selecting previously unselected package apparmor.
(Reading database ... 49990 files and directories currently installed.)
Preparing to unpack .../apparmor_2.13.3-7ubuntu5.1_amd64.deb ...
Unpacking apparmor (2.13.3-7ubuntu5.1) ...
Selecting previously unselected package liblzo2-2:amd64.
Preparing to unpack .../liblzo2-2_2.10-2_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.10-2) ...
Selecting previously unselected package squashfs-tools.
Preparing to unpack .../squashfs-tools_1%3a4.4-1_amd64.deb ...
Unpacking squashfs-tools (1:4.4-1) ...
Selecting previously unselected package snapd.
Preparing to unpack .../snapd_2.48.3+20.04_amd64.deb ...
Unpacking snapd (2.48.3+20.04) ...
Setting up liblzo2-2:amd64 (2.10-2) ...
Setting up apparmor (2.13.3-7ubuntu5.1) ...
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service → /lib/systemd/system/apparmor.service.
Reloading AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Setting up squashfs-tools (1:4.4-1) ...
Setting up snapd (2.48.3+20.04) ...
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.apparmor.service → /lib/systemd/system/snapd.apparmor.service.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.autoimport.service → /lib/systemd/system/snapd.autoimport.service.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.core-fixup.service → /lib/systemd/system/snapd.core-fixup.service.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.recovery-chooser-trigger.service → /lib/systemd/system/snapd.recovery-chooser-trigger.service
.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service.
Created symlink /etc/systemd/system/cloud-final.service.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service.
Created symlink /etc/systemd/system/timers.target.wants/snapd.snap-repair.timer → /lib/systemd/system/snapd.snap-repair.timer.
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket.
Created symlink /etc/systemd/system/final.target.wants/snapd.system-shutdown.service → /lib/systemd/system/snapd.system-shutdown.service.
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for systemd (245.4-4ubuntu3.4) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
root@u1:~# snap install lxd
2021-02-14T15:46:23Z INFO Waiting for automatic snapd restart...
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.11 from Canonical✓ installed
root@u1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
root@u1:~#
Clean Ubuntu 20.04 system building LXD from the instructions in our README:
root@u2:~# sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [4032 B]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [1448 B]
Fetched 329 kB in 1s (631 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@u2:~# sudo apt install acl autoconf dnsmasq-base git golang libacl1-dev libcap-dev liblxc1 liblxc-dev libsqlite3-dev libtool libudev-dev libuv1-dev make pkg-config rsync squashfs-tools tar tcl xz-utils ebtables
Reading package lists... Done
Building dependency tree
Reading state information... Done
tar is already the newest version (1.30+dfsg-7ubuntu0.20.04.1).
xz-utils is already the newest version (5.2.4-1ubuntu1).
The following additional packages will be installed:
automake autotools-dev binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 dns-root-data g++ g++-9 gcc gcc-9 gcc-9-base git-man golang-1.13
golang-1.13-doc golang-1.13-go golang-1.13-race-detector-runtime golang-1.13-src golang-doc golang-go golang-race-detector-runtime golang-src iptables
libasan5 libatomic1 libattr1-dev libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libcurl3-gnutls libdpkg-perl liberror-perl
libfile-fcntllock-perl libgcc-9-dev libgdbm-compat4 libgdbm6 libgomp1 libidn11 libip6tc2 libisl22 libitm1 liblsan0 libltdl-dev liblxc-common liblzo2-2
libmpc3 libmpfr6 libnetfilter-conntrack3 libnfnetlink0 libnftnl11 libnghttp2-14 libperl5.30 libquadmath0 librtmp1 libsigsegv2 libssh-4 libstdc++-9-dev
libtcl8.6 libtsan0 libubsan1 libuv1 linux-libc-dev lxcfs m4 manpages manpages-dev patch perl perl-modules-5.30 tcl8.6 uidmap
Suggested packages:
autoconf-archive gnu-standards autoconf-doc gettext binutils-doc cpp-doc gcc-9-locales g++-multilib g++-9-multilib gcc-9-doc gcc-multilib flex bison gdb
gcc-doc gcc-9-multilib git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn bzr | brz mercurial
subversion firewalld nftables glibc-doc debian-keyring bzr gdbm-l10n libtool-doc sqlite3-doc libstdc++-9-doc gfortran | fortran95-compiler gcj-jdk m4-doc
make-doc man-browser ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl libb-debug-perl liblocale-codes-perl dpkg-dev
openssh-server tcl-tclreadline
The following NEW packages will be installed:
acl autoconf automake autotools-dev binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 dns-root-data dnsmasq-base ebtables g++ g++-9 gcc gcc-9
gcc-9-base git git-man golang golang-1.13 golang-1.13-doc golang-1.13-go golang-1.13-race-detector-runtime golang-1.13-src golang-doc golang-go
golang-race-detector-runtime golang-src iptables libacl1-dev libasan5 libatomic1 libattr1-dev libbinutils libc-dev-bin libc6-dev libcap-dev libcc1-0
libcrypt-dev libctf-nobfd0 libctf0 libcurl3-gnutls libdpkg-perl liberror-perl libfile-fcntllock-perl libgcc-9-dev libgdbm-compat4 libgdbm6 libgomp1
libidn11 libip6tc2 libisl22 libitm1 liblsan0 libltdl-dev liblxc-common liblxc-dev liblxc1 liblzo2-2 libmpc3 libmpfr6 libnetfilter-conntrack3 libnfnetlink0
libnftnl11 libnghttp2-14 libperl5.30 libquadmath0 librtmp1 libsigsegv2 libsqlite3-dev libssh-4 libstdc++-9-dev libtcl8.6 libtool libtsan0 libubsan1
libudev-dev libuv1 libuv1-dev linux-libc-dev lxcfs m4 make manpages manpages-dev patch perl perl-modules-5.30 pkg-config rsync squashfs-tools tcl tcl8.6
uidmap
0 upgraded, 95 newly installed, 0 to remove and 0 not upgraded.
Need to get 123 MB of archives.
After this operation, 615 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 rsync amd64 3.1.3-8 [322 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 lxcfs amd64 4.0.3-0ubuntu1 [65.3 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2 [2738 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libgdbm6 amd64 1.18.1-5 [27.4 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libgdbm-compat4 amd64 1.18.1-5 [6244 B]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libperl5.30 amd64 5.30.0-9ubuntu0.2 [3952 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 perl amd64 5.30.0-9ubuntu0.2 [224 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libip6tc2 amd64 1.8.4-3ubuntu2 [19.2 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libnfnetlink0 amd64 1.0.1-3build1 [13.8 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libnetfilter-conntrack3 amd64 1.0.7-2 [41.4 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libnftnl11 amd64 1.1.5-1 [57.8 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu focal/main amd64 iptables amd64 1.8.4-3ubuntu2 [390 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libuv1 amd64 1.34.2-1ubuntu1.1 [80.4 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu focal/main amd64 manpages all 5.05-1 [1314 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu focal/main amd64 acl amd64 2.2.53-6 [37.8 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libsigsegv2 amd64 2.12-2 [13.9 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu focal/main amd64 m4 amd64 1.4.18-4 [199 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu focal/main amd64 autoconf all 2.69-11.1 [321 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu focal/main amd64 autotools-dev all 20180224.1 [39.6 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu focal/main amd64 automake all 1:1.16.1-4ubuntu6 [522 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu focal/main amd64 binutils-common amd64 2.34-6ubuntu1 [207 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libbinutils amd64 2.34-6ubuntu1 [474 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1 [47.0 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libctf0 amd64 2.34-6ubuntu1 [46.6 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu focal/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1 [1614 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu focal/main amd64 binutils amd64 2.34-6ubuntu1 [3376 B]
Get:27 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-base amd64 9.3.0-17ubuntu1~20.04 [19.1 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libisl22 amd64 0.22.1-1 [592 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libmpfr6 amd64 4.0.2-1 [240 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libmpc3 amd64 1.1.0-1 [40.8 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 cpp-9 amd64 9.3.0-17ubuntu1~20.04 [7494 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu focal/main amd64 cpp amd64 4:9.3.0-1ubuntu2 [27.6 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu focal/main amd64 dns-root-data all 2019052802 [5300 B]
Get:34 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libidn11 amd64 1.33-2.2ubuntu2 [46.2 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 dnsmasq-base amd64 2.80-1.1ubuntu1.2 [314 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu focal/main amd64 ebtables amd64 2.0.11-3build1 [80.3 kB]
Get:37 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcc1-0 amd64 10.2.0-5ubuntu1~20.04 [41.1 kB]
Get:38 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgomp1 amd64 10.2.0-5ubuntu1~20.04 [102 kB]
Get:39 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libitm1 amd64 10.2.0-5ubuntu1~20.04 [26.4 kB]
Get:40 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libatomic1 amd64 10.2.0-5ubuntu1~20.04 [9300 B]
Get:41 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasan5 amd64 9.3.0-17ubuntu1~20.04 [394 kB]
Get:42 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 liblsan0 amd64 10.2.0-5ubuntu1~20.04 [144 kB]
Get:43 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libtsan0 amd64 10.2.0-5ubuntu1~20.04 [320 kB]
Get:44 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libubsan1 amd64 10.2.0-5ubuntu1~20.04 [136 kB]
Get:45 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libquadmath0 amd64 10.2.0-5ubuntu1~20.04 [146 kB]
Get:46 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-9-dev amd64 9.3.0-17ubuntu1~20.04 [2360 kB]
Get:47 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04 [8241 kB]
Get:48 http://us.archive.ubuntu.com/ubuntu focal/main amd64 gcc amd64 4:9.3.0-1ubuntu2 [5208 B]
Get:49 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-dev-bin amd64 2.31-0ubuntu9.2 [71.8 kB]
Get:50 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-65.73 [1116 kB]
Get:51 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libcrypt-dev amd64 1:4.4.10-10ubuntu4 [104 kB]
Get:52 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dev amd64 2.31-0ubuntu9.2 [2520 kB]
Get:53 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libstdc++-9-dev amd64 9.3.0-17ubuntu1~20.04 [1714 kB]
Get:54 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04 [8405 kB]
Get:55 http://us.archive.ubuntu.com/ubuntu focal/main amd64 g++ amd64 4:9.3.0-1ubuntu2 [1604 B]
Get:56 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libnghttp2-14 amd64 1.40.0-1build1 [78.7 kB]
Get:57 http://us.archive.ubuntu.com/ubuntu focal/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build1 [54.9 kB]
Get:58 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssh-4 amd64 0.9.3-2ubuntu2.1 [170 kB]
Get:59 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.4 [231 kB]
Get:60 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
Get:61 http://us.archive.ubuntu.com/ubuntu focal/main amd64 git-man all 1:2.25.1-1ubuntu3 [884 kB]
Get:62 http://us.archive.ubuntu.com/ubuntu focal/main amd64 git amd64 1:2.25.1-1ubuntu3 [4554 kB]
Get:63 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-1.13-src amd64 1.13.8-1ubuntu1 [12.6 MB]
Get:64 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-1.13-go amd64 1.13.8-1ubuntu1 [47.6 MB]
Get:65 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-1.13-doc all 1.13.8-1ubuntu1 [2525 kB]
Get:66 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-1.13 all 1.13.8-1ubuntu1 [11.2 kB]
Get:67 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-src amd64 2:1.13~1ubuntu2 [4044 B]
Get:68 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-go amd64 2:1.13~1ubuntu2 [22.0 kB]
Get:69 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-doc all 2:1.13~1ubuntu2 [2948 B]
Get:70 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang amd64 2:1.13~1ubuntu2 [2900 B]
Get:71 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-1.13-race-detector-runtime amd64 0.0+svn332029-0ubuntu2 [713 kB]
Get:72 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libcap-dev amd64 1:2.32-1 [33.2 kB]
Get:73 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libdpkg-perl all 1.19.7ubuntu3 [230 kB]
Get:74 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libfile-fcntllock-perl amd64 0.22-3build4 [33.1 kB]
Get:75 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libltdl-dev amd64 2.4.6-14 [162 kB]
Get:76 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 liblxc1 amd64 1:4.0.2-0ubuntu1 [292 kB]
Get:77 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 liblxc-common amd64 1:4.0.2-0ubuntu1 [461 kB]
Get:78 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 liblxc-dev amd64 1:4.0.2-0ubuntu1 [337 kB]
Get:79 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liblzo2-2 amd64 2.10-2 [50.8 kB]
Get:80 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libsqlite3-dev amd64 3.31.1-4ubuntu0.2 [696 kB]
Get:81 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libtcl8.6 amd64 8.6.10+dfsg-1 [902 kB]
Get:82 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libtool all 2.4.6-14 [161 kB]
Get:83 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev-dev amd64 245.4-4ubuntu3.4 [19.7 kB]
Get:84 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libuv1-dev amd64 1.34.2-1ubuntu1.1 [103 kB]
Get:85 http://us.archive.ubuntu.com/ubuntu focal/main amd64 make amd64 4.2.1-1.2 [162 kB]
Get:86 http://us.archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2266 kB]
Get:87 http://us.archive.ubuntu.com/ubuntu focal/main amd64 patch amd64 2.7.6-6 [105 kB]
Get:88 http://us.archive.ubuntu.com/ubuntu focal/main amd64 pkg-config amd64 0.29.1-0ubuntu4 [45.5 kB]
Get:89 http://us.archive.ubuntu.com/ubuntu focal/main amd64 squashfs-tools amd64 1:4.4-1 [121 kB]
Get:90 http://us.archive.ubuntu.com/ubuntu focal/main amd64 tcl8.6 amd64 8.6.10+dfsg-1 [14.8 kB]
Get:91 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 tcl amd64 8.6.9+1 [5112 B]
Get:92 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 uidmap amd64 1:4.8.1-1ubuntu5.20.04 [26.3 kB]
Get:93 http://us.archive.ubuntu.com/ubuntu focal/main amd64 golang-race-detector-runtime amd64 2:1.13~1ubuntu2 [3836 B]
Get:94 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libattr1-dev amd64 1:2.4.48-5 [22.8 kB]
Get:95 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libacl1-dev amd64 2.2.53-6 [77.4 kB]
Fetched 123 MB in 5s (26.0 MB/s)
Extracting templates from packages: 100%
Selecting previously unselected package rsync.
(Reading database ... 49990 files and directories currently installed.)
Preparing to unpack .../00-rsync_3.1.3-8_amd64.deb ...
Unpacking rsync (3.1.3-8) ...
Selecting previously unselected package lxcfs.
Preparing to unpack .../01-lxcfs_4.0.3-0ubuntu1_amd64.deb ...
Unpacking lxcfs (4.0.3-0ubuntu1) ...
Selecting previously unselected package perl-modules-5.30.
Preparing to unpack .../02-perl-modules-5.30_5.30.0-9ubuntu0.2_all.deb ...
Unpacking perl-modules-5.30 (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package libgdbm6:amd64.
Preparing to unpack .../03-libgdbm6_1.18.1-5_amd64.deb ...
Unpacking libgdbm6:amd64 (1.18.1-5) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../04-libgdbm-compat4_1.18.1-5_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.18.1-5) ...
Selecting previously unselected package libperl5.30:amd64.
Preparing to unpack .../05-libperl5.30_5.30.0-9ubuntu0.2_amd64.deb ...
Unpacking libperl5.30:amd64 (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package perl.
Preparing to unpack .../06-perl_5.30.0-9ubuntu0.2_amd64.deb ...
Unpacking perl (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package libip6tc2:amd64.
Preparing to unpack .../07-libip6tc2_1.8.4-3ubuntu2_amd64.deb ...
Unpacking libip6tc2:amd64 (1.8.4-3ubuntu2) ...
Selecting previously unselected package libnfnetlink0:amd64.
Preparing to unpack .../08-libnfnetlink0_1.0.1-3build1_amd64.deb ...
Unpacking libnfnetlink0:amd64 (1.0.1-3build1) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Preparing to unpack .../09-libnetfilter-conntrack3_1.0.7-2_amd64.deb ...
Unpacking libnetfilter-conntrack3:amd64 (1.0.7-2) ...
Selecting previously unselected package libnftnl11:amd64.
Preparing to unpack .../10-libnftnl11_1.1.5-1_amd64.deb ...
Unpacking libnftnl11:amd64 (1.1.5-1) ...
Selecting previously unselected package iptables.
Preparing to unpack .../11-iptables_1.8.4-3ubuntu2_amd64.deb ...
Unpacking iptables (1.8.4-3ubuntu2) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../12-libuv1_1.34.2-1ubuntu1.1_amd64.deb ...
Unpacking libuv1:amd64 (1.34.2-1ubuntu1.1) ...
Selecting previously unselected package manpages.
Preparing to unpack .../13-manpages_5.05-1_all.deb ...
Unpacking manpages (5.05-1) ...
Selecting previously unselected package acl.
Preparing to unpack .../14-acl_2.2.53-6_amd64.deb ...
Unpacking acl (2.2.53-6) ...
Selecting previously unselected package libsigsegv2:amd64.
Preparing to unpack .../15-libsigsegv2_2.12-2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../16-m4_1.4.18-4_amd64.deb ...
Unpacking m4 (1.4.18-4) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../17-autoconf_2.69-11.1_all.deb ...
Unpacking autoconf (2.69-11.1) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../18-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../19-automake_1%3a1.16.1-4ubuntu6_all.deb ...
Unpacking automake (1:1.16.1-4ubuntu6) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../20-binutils-common_2.34-6ubuntu1_amd64.deb ...
Unpacking binutils-common:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../21-libbinutils_2.34-6ubuntu1_amd64.deb ...
Unpacking libbinutils:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../22-libctf-nobfd0_2.34-6ubuntu1_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../23-libctf0_2.34-6ubuntu1_amd64.deb ...
Unpacking libctf0:amd64 (2.34-6ubuntu1) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../24-binutils-x86-64-linux-gnu_2.34-6ubuntu1_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../25-binutils_2.34-6ubuntu1_amd64.deb ...
Unpacking binutils (2.34-6ubuntu1) ...
Selecting previously unselected package gcc-9-base:amd64.
Preparing to unpack .../26-gcc-9-base_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9-base:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package libisl22:amd64.
Preparing to unpack .../27-libisl22_0.22.1-1_amd64.deb ...
Unpacking libisl22:amd64 (0.22.1-1) ...
Selecting previously unselected package libmpfr6:amd64.
Preparing to unpack .../28-libmpfr6_4.0.2-1_amd64.deb ...
Unpacking libmpfr6:amd64 (4.0.2-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../29-libmpc3_1.1.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.1.0-1) ...
Selecting previously unselected package cpp-9.
Preparing to unpack .../30-cpp-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking cpp-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package cpp.
Preparing to unpack .../31-cpp_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking cpp (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../32-dns-root-data_2019052802_all.deb ...
Unpacking dns-root-data (2019052802) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../33-libidn11_1.33-2.2ubuntu2_amd64.deb ...
Unpacking libidn11:amd64 (1.33-2.2ubuntu2) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../34-dnsmasq-base_2.80-1.1ubuntu1.2_amd64.deb ...
Unpacking dnsmasq-base (2.80-1.1ubuntu1.2) ...
Selecting previously unselected package ebtables.
Preparing to unpack .../35-ebtables_2.0.11-3build1_amd64.deb ...
Unpacking ebtables (2.0.11-3build1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../36-libcc1-0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libcc1-0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../37-libgomp1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libgomp1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../38-libitm1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libitm1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../39-libatomic1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libatomic1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../40-libasan5_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libasan5:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../41-liblsan0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking liblsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../42-libtsan0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libtsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../43-libubsan1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libubsan1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../44-libquadmath0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libquadmath0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libgcc-9-dev:amd64.
Preparing to unpack .../45-libgcc-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libgcc-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package gcc-9.
Preparing to unpack .../46-gcc-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package gcc.
Preparing to unpack .../47-gcc_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking gcc (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../48-libc-dev-bin_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc-dev-bin (2.31-0ubuntu9.2) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../49-linux-libc-dev_5.4.0-65.73_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.4.0-65.73) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../50-libcrypt-dev_1%3a4.4.10-10ubuntu4_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../51-libc6-dev_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc6-dev:amd64 (2.31-0ubuntu9.2) ...
Selecting previously unselected package libstdc++-9-dev:amd64.
Preparing to unpack .../52-libstdc++-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package g++-9.
Preparing to unpack .../53-g++-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking g++-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../54-g++_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking g++ (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../55-libnghttp2-14_1.40.0-1build1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.40.0-1build1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../56-librtmp1_2.4+20151223.gitfa8646d.1-2build1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ...
Selecting previously unselected package libssh-4:amd64.
Preparing to unpack .../57-libssh-4_0.9.3-2ubuntu2.1_amd64.deb ...
Unpacking libssh-4:amd64 (0.9.3-2ubuntu2.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../58-libcurl3-gnutls_7.68.0-1ubuntu2.4_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.4) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../59-liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../60-git-man_1%3a2.25.1-1ubuntu3_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package git.
Preparing to unpack .../61-git_1%3a2.25.1-1ubuntu3_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package golang-1.13-src.
Preparing to unpack .../62-golang-1.13-src_1.13.8-1ubuntu1_amd64.deb ...
Unpacking golang-1.13-src (1.13.8-1ubuntu1) ...
Selecting previously unselected package golang-1.13-go.
Preparing to unpack .../63-golang-1.13-go_1.13.8-1ubuntu1_amd64.deb ...
Unpacking golang-1.13-go (1.13.8-1ubuntu1) ...
Selecting previously unselected package golang-1.13-doc.
Preparing to unpack .../64-golang-1.13-doc_1.13.8-1ubuntu1_all.deb ...
Unpacking golang-1.13-doc (1.13.8-1ubuntu1) ...
Selecting previously unselected package golang-1.13.
Preparing to unpack .../65-golang-1.13_1.13.8-1ubuntu1_all.deb ...
Unpacking golang-1.13 (1.13.8-1ubuntu1) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../66-golang-src_2%3a1.13~1ubuntu2_amd64.deb ...
Unpacking golang-src (2:1.13~1ubuntu2) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../67-golang-go_2%3a1.13~1ubuntu2_amd64.deb ...
Unpacking golang-go (2:1.13~1ubuntu2) ...
Selecting previously unselected package golang-doc.
Preparing to unpack .../68-golang-doc_2%3a1.13~1ubuntu2_all.deb ...
Unpacking golang-doc (2:1.13~1ubuntu2) ...
Selecting previously unselected package golang.
Preparing to unpack .../69-golang_2%3a1.13~1ubuntu2_amd64.deb ...
Unpacking golang (2:1.13~1ubuntu2) ...
Selecting previously unselected package golang-1.13-race-detector-runtime.
Preparing to unpack .../70-golang-1.13-race-detector-runtime_0.0+svn332029-0ubuntu2_amd64.deb ...
Unpacking golang-1.13-race-detector-runtime (0.0+svn332029-0ubuntu2) ...
Selecting previously unselected package libcap-dev:amd64.
Preparing to unpack .../71-libcap-dev_1%3a2.32-1_amd64.deb ...
Unpacking libcap-dev:amd64 (1:2.32-1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../72-libdpkg-perl_1.19.7ubuntu3_all.deb ...
Unpacking libdpkg-perl (1.19.7ubuntu3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../73-libfile-fcntllock-perl_0.22-3build4_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build4) ...
Selecting previously unselected package libltdl-dev:amd64.
Preparing to unpack .../74-libltdl-dev_2.4.6-14_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-14) ...
Selecting previously unselected package liblxc1.
Preparing to unpack .../75-liblxc1_1%3a4.0.2-0ubuntu1_amd64.deb ...
Unpacking liblxc1 (1:4.0.2-0ubuntu1) ...
Selecting previously unselected package liblxc-common.
Preparing to unpack .../76-liblxc-common_1%3a4.0.2-0ubuntu1_amd64.deb ...
Unpacking liblxc-common (1:4.0.2-0ubuntu1) ...
Selecting previously unselected package liblxc-dev.
Preparing to unpack .../77-liblxc-dev_1%3a4.0.2-0ubuntu1_amd64.deb ...
Unpacking liblxc-dev (1:4.0.2-0ubuntu1) ...
Selecting previously unselected package liblzo2-2:amd64.
Preparing to unpack .../78-liblzo2-2_2.10-2_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.10-2) ...
Selecting previously unselected package libsqlite3-dev:amd64.
Preparing to unpack .../79-libsqlite3-dev_3.31.1-4ubuntu0.2_amd64.deb ...
Unpacking libsqlite3-dev:amd64 (3.31.1-4ubuntu0.2) ...
Selecting previously unselected package libtcl8.6:amd64.
Preparing to unpack .../80-libtcl8.6_8.6.10+dfsg-1_amd64.deb ...
Unpacking libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Selecting previously unselected package libtool.
Preparing to unpack .../81-libtool_2.4.6-14_all.deb ...
Unpacking libtool (2.4.6-14) ...
Selecting previously unselected package libudev-dev:amd64.
Preparing to unpack .../82-libudev-dev_245.4-4ubuntu3.4_amd64.deb ...
Unpacking libudev-dev:amd64 (245.4-4ubuntu3.4) ...
Selecting previously unselected package libuv1-dev:amd64.
Preparing to unpack .../83-libuv1-dev_1.34.2-1ubuntu1.1_amd64.deb ...
Unpacking libuv1-dev:amd64 (1.34.2-1ubuntu1.1) ...
Selecting previously unselected package make.
Preparing to unpack .../84-make_4.2.1-1.2_amd64.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../85-manpages-dev_5.05-1_all.deb ...
Unpacking manpages-dev (5.05-1) ...
Selecting previously unselected package patch.
Preparing to unpack .../86-patch_2.7.6-6_amd64.deb ...
Unpacking patch (2.7.6-6) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../87-pkg-config_0.29.1-0ubuntu4_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu4) ...
Selecting previously unselected package squashfs-tools.
Preparing to unpack .../88-squashfs-tools_1%3a4.4-1_amd64.deb ...
Unpacking squashfs-tools (1:4.4-1) ...
Selecting previously unselected package tcl8.6.
Preparing to unpack .../89-tcl8.6_8.6.10+dfsg-1_amd64.deb ...
Unpacking tcl8.6 (8.6.10+dfsg-1) ...
Selecting previously unselected package tcl.
Preparing to unpack .../90-tcl_8.6.9+1_amd64.deb ...
Unpacking tcl (8.6.9+1) ...
Selecting previously unselected package uidmap.
Preparing to unpack .../91-uidmap_1%3a4.8.1-1ubuntu5.20.04_amd64.deb ...
Unpacking uidmap (1:4.8.1-1ubuntu5.20.04) ...
Selecting previously unselected package golang-race-detector-runtime.
Preparing to unpack .../92-golang-race-detector-runtime_2%3a1.13~1ubuntu2_amd64.deb ...
Unpacking golang-race-detector-runtime (2:1.13~1ubuntu2) ...
Selecting previously unselected package libattr1-dev:amd64.
Preparing to unpack .../93-libattr1-dev_1%3a2.4.48-5_amd64.deb ...
Unpacking libattr1-dev:amd64 (1:2.4.48-5) ...
Selecting previously unselected package libacl1-dev:amd64.
Preparing to unpack .../94-libacl1-dev_2.2.53-6_amd64.deb ...
Unpacking libacl1-dev:amd64 (2.2.53-6) ...
Setting up golang-1.13-src (1.13.8-1ubuntu1) ...
Setting up golang-1.13-race-detector-runtime (0.0+svn332029-0ubuntu2) ...
Setting up perl-modules-5.30 (5.30.0-9ubuntu0.2) ...
Setting up libip6tc2:amd64 (1.8.4-3ubuntu2) ...
Setting up manpages (5.05-1) ...
Setting up lxcfs (4.0.3-0ubuntu1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lxcfs.service → /lib/systemd/system/lxcfs.service.
Setting up uidmap (1:4.8.1-1ubuntu5.20.04) ...
Setting up binutils-common:amd64 (2.34-6ubuntu1) ...
Setting up libnghttp2-14:amd64 (1.40.0-1build1) ...
Setting up linux-libc-dev:amd64 (5.4.0-65.73) ...
Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1) ...
Setting up liblzo2-2:amd64 (2.10-2) ...
Setting up libnftnl11:amd64 (1.1.5-1) ...
Setting up libgomp1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up acl (2.2.53-6) ...
Setting up dns-root-data (2019052802) ...
Setting up autotools-dev (20180224.1) ...
Setting up libuv1:amd64 (1.34.2-1ubuntu1.1) ...
Setting up make (4.2.1-1.2) ...
Setting up libmpfr6:amd64 (4.0.2-1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ...
Setting up libidn11:amd64 (1.33-2.2ubuntu2) ...
Setting up ebtables (2.0.11-3build1) ...
update-alternatives: using /usr/sbin/ebtables-legacy to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up libsigsegv2:amd64 (2.12-2) ...
Setting up libquadmath0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libmpc3:amd64 (1.1.0-1) ...
Setting up libatomic1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up patch (2.7.6-6) ...
Setting up libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Setting up libudev-dev:amd64 (245.4-4ubuntu3.4) ...
Setting up golang-1.13-go (1.13.8-1ubuntu1) ...
Setting up libssh-4:amd64 (0.9.3-2ubuntu2.1) ...
Setting up libubsan1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Setting up libnfnetlink0:amd64 (1.0.1-3build1) ...
Setting up git-man (1:2.25.1-1ubuntu3) ...
Setting up libisl22:amd64 (0.22.1-1) ...
Setting up libbinutils:amd64 (2.34-6ubuntu1) ...
Setting up libc-dev-bin (2.31-0ubuntu9.2) ...
Setting up golang-src (2:1.13~1ubuntu2) ...
Setting up libcap-dev:amd64 (1:2.32-1) ...
Setting up libcc1-0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up liblsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libitm1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up rsync (3.1.3-8) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rsync.service → /lib/systemd/system/rsync.service.
Setting up libgdbm6:amd64 (1.18.1-5) ...
Setting up gcc-9-base:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up libtsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libctf0:amd64 (2.34-6ubuntu1) ...
Setting up libuv1-dev:amd64 (1.34.2-1ubuntu1.1) ...
Setting up manpages-dev (5.05-1) ...
Setting up golang-race-detector-runtime (2:1.13~1ubuntu2) ...
Setting up tcl8.6 (8.6.10+dfsg-1) ...
Setting up squashfs-tools (1:4.4-1) ...
Setting up golang-go (2:1.13~1ubuntu2) ...
Setting up m4 (1.4.18-4) ...
Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.4) ...
Setting up libasan5:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up golang-1.13-doc (1.13.8-1ubuntu1) ...
Setting up libgdbm-compat4:amd64 (1.18.1-5) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.7-2) ...
Setting up tcl (8.6.9+1) ...
Setting up golang-1.13 (1.13.8-1ubuntu1) ...
Setting up cpp-9 (9.3.0-17ubuntu1~20.04) ...
Setting up libperl5.30:amd64 (5.30.0-9ubuntu0.2) ...
Setting up libc6-dev:amd64 (2.31-0ubuntu9.2) ...
Setting up golang-doc (2:1.13~1ubuntu2) ...
Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1) ...
Setting up golang (2:1.13~1ubuntu2) ...
Setting up libattr1-dev:amd64 (1:2.4.48-5) ...
Setting up iptables (1.8.4-3ubuntu2) ...
update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-legacy to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
Setting up binutils (2.34-6ubuntu1) ...
Setting up dnsmasq-base (2.80-1.1ubuntu1.2) ...
Setting up libgcc-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up perl (5.30.0-9ubuntu0.2) ...
Setting up libsqlite3-dev:amd64 (3.31.1-4ubuntu0.2) ...
Setting up libdpkg-perl (1.19.7ubuntu3) ...
Setting up autoconf (2.69-11.1) ...
Setting up cpp (4:9.3.0-1ubuntu2) ...
Setting up libacl1-dev:amd64 (2.2.53-6) ...
Setting up automake (1:1.16.1-4ubuntu6) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up gcc-9 (9.3.0-17ubuntu1~20.04) ...
Setting up libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up libtool (2.4.6-14) ...
Setting up libfile-fcntllock-perl (0.22-3build4) ...
Setting up gcc (4:9.3.0-1ubuntu2) ...
Setting up liberror-perl (0.17029-1) ...
Setting up libltdl-dev:amd64 (2.4.6-14) ...
Setting up pkg-config (0.29.1-0ubuntu4) ...
Setting up git (1:2.25.1-1ubuntu3) ...
Setting up g++-9 (9.3.0-17ubuntu1~20.04) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up liblxc1 (1:4.0.2-0ubuntu1) ...
Setting up liblxc-dev (1:4.0.2-0ubuntu1) ...
Setting up liblxc-common (1:4.0.2-0ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.4) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
root@u2:~# mkdir -p ~/go
root@u2:~# export GOPATH=~/go
root@u2:~# go get -d -v github.com/lxc/lxd/lxd
github.com/lxc/lxd (download)
github.com/canonical/candid (download)
get "gopkg.in/errgo.v1": found meta tag get.metaImport{Prefix:"gopkg.in/errgo.v1", VCS:"git", RepoRoot:"https://gopkg.in/errgo.v1"} at //gopkg.in/errgo.v1?go-get=1
gopkg.in/errgo.v1 (download)
get "gopkg.in/httprequest.v1": found meta tag get.metaImport{Prefix:"gopkg.in/httprequest.v1", VCS:"git", RepoRoot:"https://gopkg.in/httprequest.v1"} at //gopkg.in/httprequest.v1?go-get=1
gopkg.in/httprequest.v1 (download)
github.com/julienschmidt/httprouter (download)
get "golang.org/x/net/html": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/html?go-get=1
get "golang.org/x/net/html": verifying non-authoritative meta tag
golang.org/x/net (download)
get "golang.org/x/net/html/atom": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/html/atom?go-get=1
get "golang.org/x/net/html/atom": verifying non-authoritative meta tag
get "gopkg.in/macaroon-bakery.v2/bakery": found meta tag get.metaImport{Prefix:"gopkg.in/macaroon-bakery.v2", VCS:"git", RepoRoot:"https://gopkg.in/macaroon-bakery.v2"} at //gopkg.in/macaroon-bakery.v2/bakery?go-get=1
get "gopkg.in/macaroon-bakery.v2/bakery": verifying non-authoritative meta tag
gopkg.in/macaroon-bakery.v2 (download)
github.com/rogpeppe/fastuuid (download)
get "golang.org/x/crypto/curve25519": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/curve25519?go-get=1
get "golang.org/x/crypto/curve25519": verifying non-authoritative meta tag
golang.org/x/crypto (download)
get "golang.org/x/crypto/nacl/box": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/nacl/box?go-get=1
get "golang.org/x/crypto/nacl/box": verifying non-authoritative meta tag
get "golang.org/x/sys/cpu": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/cpu?go-get=1
get "golang.org/x/sys/cpu": verifying non-authoritative meta tag
golang.org/x/sys (download)
get "gopkg.in/macaroon-bakery.v2/bakery/checkers": found meta tag get.metaImport{Prefix:"gopkg.in/macaroon-bakery.v2", VCS:"git", RepoRoot:"https://gopkg.in/macaroon-bakery.v2"} at //gopkg.in/macaroon-bakery.v2/bakery/checkers?go-get=1
get "gopkg.in/macaroon-bakery.v2/bakery/checkers": verifying non-authoritative meta tag
get "gopkg.in/macaroon.v2": found meta tag get.metaImport{Prefix:"gopkg.in/macaroon.v2", VCS:"git", RepoRoot:"https://gopkg.in/macaroon.v2"} at //gopkg.in/macaroon.v2?go-get=1
gopkg.in/macaroon.v2 (download)
github.com/golang/protobuf (download)
get "google.golang.org/protobuf/encoding/prototext": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/encoding/prototext?go-get=1
get "google.golang.org/protobuf/encoding/prototext": verifying non-authoritative meta tag
google.golang.org/protobuf (download)
get "google.golang.org/protobuf/encoding/protowire": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/encoding/protowire?go-get=1
get "google.golang.org/protobuf/encoding/protowire": verifying non-authoritative meta tag
get "google.golang.org/protobuf/reflect/protoreflect": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/reflect/protoreflect?go-get=1
get "google.golang.org/protobuf/reflect/protoreflect": verifying non-authoritative meta tag
get "google.golang.org/protobuf/proto": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/proto?go-get=1
get "google.golang.org/protobuf/proto": verifying non-authoritative meta tag
get "google.golang.org/protobuf/reflect/protoregistry": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/reflect/protoregistry?go-get=1
get "google.golang.org/protobuf/reflect/protoregistry": verifying non-authoritative meta tag
get "google.golang.org/protobuf/runtime/protoiface": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/runtime/protoiface?go-get=1
get "google.golang.org/protobuf/runtime/protoiface": verifying non-authoritative meta tag
get "google.golang.org/protobuf/runtime/protoimpl": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/runtime/protoimpl?go-get=1
get "google.golang.org/protobuf/runtime/protoimpl": verifying non-authoritative meta tag
github.com/juju/utils (download)
get "gopkg.in/macaroon-bakery.v2/bakery/identchecker": found meta tag get.metaImport{Prefix:"gopkg.in/macaroon-bakery.v2", VCS:"git", RepoRoot:"https://gopkg.in/macaroon-bakery.v2"} at //gopkg.in/macaroon-bakery.v2/bakery/identchecker?go-get=1
get "gopkg.in/macaroon-bakery.v2/bakery/identchecker": verifying non-authoritative meta tag
get "gopkg.in/macaroon-bakery.v2/httpbakery": found meta tag get.metaImport{Prefix:"gopkg.in/macaroon-bakery.v2", VCS:"git", RepoRoot:"https://gopkg.in/macaroon-bakery.v2"} at //gopkg.in/macaroon-bakery.v2/httpbakery?go-get=1
get "gopkg.in/macaroon-bakery.v2/httpbakery": verifying non-authoritative meta tag
github.com/juju/webbrowser (download)
get "gopkg.in/macaroon-bakery.v2/httpbakery/agent": found meta tag get.metaImport{Prefix:"gopkg.in/macaroon-bakery.v2", VCS:"git", RepoRoot:"https://gopkg.in/macaroon-bakery.v2"} at //gopkg.in/macaroon-bakery.v2/httpbakery/agent?go-get=1
get "gopkg.in/macaroon-bakery.v2/httpbakery/agent": verifying non-authoritative meta tag
github.com/canonical/go-dqlite (download)
github.com/Rican7/retry (download)
github.com/pkg/errors (download)
github.com/ghodss/yaml (download)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at //gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/mattn/go-sqlite3 (download)
github.com/dustinkirkland/golang-petname (download)
github.com/flosch/pongo2 (download)
github.com/gorilla/mux (download)
github.com/gorilla/websocket (download)
github.com/kballard/go-shellquote (download)
github.com/pborman/uuid (download)
github.com/google/uuid (download)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
get "gopkg.in/robfig/cron.v2": found meta tag get.metaImport{Prefix:"gopkg.in/robfig/cron.v2", VCS:"git", RepoRoot:"https://gopkg.in/robfig/cron.v2"} at //gopkg.in/robfig/cron.v2?go-get=1
gopkg.in/robfig/cron.v2 (download)
github.com/gosexy/gettext (download)
github.com/olekukonko/tablewriter (download)
github.com/mattn/go-runewidth (download)
github.com/rivo/uniseg (download)
github.com/mattn/go-colorable (download)
github.com/mattn/go-isatty (download)
get "golang.org/x/crypto/scrypt": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/scrypt?go-get=1
get "golang.org/x/crypto/scrypt": verifying non-authoritative meta tag
get "gopkg.in/lxc/go-lxc.v2": found meta tag get.metaImport{Prefix:"gopkg.in/lxc/go-lxc.v2", VCS:"git", RepoRoot:"https://gopkg.in/lxc/go-lxc.v2"} at //gopkg.in/lxc/go-lxc.v2?go-get=1
gopkg.in/lxc/go-lxc.v2 (download)
github.com/stretchr/testify (download)
github.com/davecgh/go-spew (download)
github.com/pmezard/go-difflib (download)
get "gopkg.in/yaml.v3": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v3", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v3"} at //gopkg.in/yaml.v3?go-get=1
gopkg.in/yaml.v3 (download)
get "gopkg.in/tomb.v2": found meta tag get.metaImport{Prefix:"gopkg.in/tomb.v2", VCS:"git", RepoRoot:"https://gopkg.in/tomb.v2"} at //gopkg.in/tomb.v2?go-get=1
gopkg.in/tomb.v2 (download)
github.com/juju/gomaasapi (download)
github.com/juju/collections (download)
github.com/juju/errors (download)
github.com/juju/loggo (download)
github.com/juju/schema (download)
github.com/juju/version (download)
get "gopkg.in/mgo.v2/bson": found meta tag get.metaImport{Prefix:"gopkg.in/mgo.v2", VCS:"git", RepoRoot:"https://gopkg.in/mgo.v2"} at //gopkg.in/mgo.v2/bson?go-get=1
get "gopkg.in/mgo.v2/bson": verifying non-authoritative meta tag
gopkg.in/mgo.v2 (download)
github.com/syndtr/gocapability (download)
github.com/hashicorp/go-msgpack (download)
get "go.etcd.io/bbolt": found meta tag get.metaImport{Prefix:"go.etcd.io/bbolt", VCS:"git", RepoRoot:"https://github.com/etcd-io/bbolt"} at //go.etcd.io/bbolt?go-get=1
go.etcd.io/bbolt (download)
github.com/farjump/go-libudev (download)
github.com/jkeiser/iter (download)
github.com/google/gopacket (download)
github.com/mdlayher/netx (download)
github.com/digitalocean/go-smbios (download)
github.com/jaypipes/pcidb (download)
github.com/mitchellh/go-homedir (download)
github.com/digitalocean/go-qemu (download)
github.com/digitalocean/go-libvirt (download)
github.com/mdlayher/vsock (download)
get "golang.org/x/crypto/ssh/terminal": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/ssh/terminal?go-get=1
get "golang.org/x/crypto/ssh/terminal": verifying non-authoritative meta tag
get "golang.org/x/term": found meta tag get.metaImport{Prefix:"golang.org/x/term", VCS:"git", RepoRoot:"https://go.googlesource.com/term"} at //golang.org/x/term?go-get=1
golang.org/x/term (download)
github.com/miekg/dns (download)
github.com/spf13/cobra (download)
github.com/spf13/pflag (download)
github.com/cpuguy83/go-md2man (download)
get "gopkg.in/fsnotify.v0": found meta tag get.metaImport{Prefix:"gopkg.in/fsnotify.v0", VCS:"git", RepoRoot:"https://gopkg.in/fsnotify.v0"} at //gopkg.in/fsnotify.v0?go-get=1
gopkg.in/fsnotify.v0 (download)
root@u2:~# cd $GOPATH/src/github.com/lxc/lxd
root@u2:~/go/src/github.com/lxc/lxd# make deps
# raft
Cloning into '/root/go/deps/raft'...
remote: Enumerating objects: 235, done.
remote: Counting objects: 100% (235/235), done.
remote: Compressing objects: 100% (215/215), done.
remote: Total 235 (delta 23), reused 72 (delta 10), pack-reused 0
Receiving objects: 100% (235/235), 366.06 KiB | 4.21 MiB/s, done.
Resolving deltas: 100% (23/23), done.
cd "/root/go/deps/raft" && \
autoreconf -i && \
./configure && \
make
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'ac'.
libtoolize: copying file 'ac/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:9: installing 'ac/compile'
configure.ac:11: installing 'ac/config.guess'
configure.ac:11: installing 'ac/config.sub'
configure.ac:7: installing 'ac/install-sh'
configure.ac:7: installing 'ac/missing'
Makefile.am: installing 'ac/depcomp'
parallel-tests: installing 'ac/test-driver'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for UV... yes
checking whether to build with code coverage support... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking for unistd.h... (cached) yes
checking linux/io_uring.h usability... yes
checking linux/io_uring.h presence... yes
checking for linux/io_uring.h... yes
checking linux/aio_abi.h usability... yes
checking linux/aio_abi.h presence... yes
checking for linux/aio_abi.h... yes
checking for zfs... no
checking for size_t... yes
checking for ssize_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking whether UV_FS_O_CREAT is declared... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking if gcc supports flag -std=c11 in envvar CFLAGS... yes
checking if gcc supports flag -g in envvar CFLAGS... yes
checking if gcc supports flag --mcet in envvar CFLAGS... no
checking if gcc supports flag -fcf-protection in envvar CFLAGS... yes
checking if gcc supports flag --param=ssp-buffer-size=4 in envvar CFLAGS... yes
checking if gcc supports flag -pipe in envvar CFLAGS... yes
checking if gcc supports flag -fno-strict-aliasing in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-color in envvar CFLAGS... yes
checking if gcc supports flag -fexceptions in envvar CFLAGS... yes
checking if gcc supports flag -fstack-clash-protection in envvar CFLAGS... yes
checking if gcc supports flag -fstack-protector-strong in envvar CFLAGS... yes
checking if gcc supports flag -fasynchronous-unwind-tables in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-show-option in envvar CFLAGS... yes
checking if gcc supports flag -Wall in envvar CFLAGS... yes
checking if gcc supports flag -Wextra in envvar CFLAGS... yes
checking if gcc supports flag -Wpedantic in envvar CFLAGS... yes
checking if gcc supports flag -Wimplicit-fallthrough=5 in envvar CFLAGS... yes
checking if gcc supports flag -Wcast-align in envvar CFLAGS... yes
checking if gcc supports flag -Wstrict-prototypes in envvar CFLAGS... yes
checking if gcc supports flag -Wlogical-op in envvar CFLAGS... yes
checking if gcc supports flag -Wmissing-include-dirs in envvar CFLAGS... yes
checking if gcc supports flag -Wold-style-definition in envvar CFLAGS... yes
checking if gcc supports flag -Winit-self in envvar CFLAGS... yes
checking if gcc supports flag -Wfloat-equal in envvar CFLAGS... yes
checking if gcc supports flag -Wsuggest-attribute=noreturn in envvar CFLAGS... yes
checking if gcc supports flag -Wformat=2 in envvar CFLAGS... yes
checking if gcc supports flag -Wendif-labels in envvar CFLAGS... yes
checking if gcc supports flag -Wdate-time in envvar CFLAGS... yes
checking if gcc supports flag -Wnested-externs in envvar CFLAGS... yes
checking if gcc supports flag -Wconversion in envvar CFLAGS... yes
checking if gcc supports flag -Werror=implicit-function-declaration in envvar CFLAGS... yes
checking if gcc supports flag -Wunused-but-set-variable in envvar CFLAGS... yes
checking if gcc supports flag -Werror=return-type in envvar CFLAGS... yes
checking if gcc supports flag -Werror=incompatible-pointer-types in envvar CFLAGS... yes
checking if gcc supports flag -Wshadow in envvar CFLAGS... yes
checking if gcc supports flag -Werror=overflow in envvar CFLAGS... yes
checking if gcc supports flag -Werror=shift-count-overflow in envvar CFLAGS... yes
checking if gcc supports flag -Werror=shift-overflow=2 in envvar CFLAGS... yes
checking if gcc supports flag -Warray-bounds in envvar CFLAGS... yes
checking if gcc supports flag -Wrestrict in envvar CFLAGS... yes
checking if gcc supports flag -Wreturn-local-addr in envvar CFLAGS... yes
checking if gcc supports flag -Wstringop-overflow in envvar CFLAGS... yes
checking if gcc supports flag -z in envvar LDFLAGS... no
checking if gcc supports flag relro in envvar LDFLAGS... no
checking if gcc supports flag -z in envvar LDFLAGS... (cached) no
checking if gcc supports flag now in envvar LDFLAGS... no
checking if gcc supports flag -fstack-protector-strong in envvar LDFLAGS... yes
checking if gcc supports flag --param=ssp-buffer-size=4 in envvar LDFLAGS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating raft.pc
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Entering directory '/root/go/deps/raft'
CC src/libraft_la-byte.lo
CC src/libraft_la-client.lo
CC src/libraft_la-configuration.lo
CC src/libraft_la-convert.lo
CC src/libraft_la-election.lo
CC src/libraft_la-entry.lo
CC src/libraft_la-err.lo
CC src/libraft_la-heap.lo
CC src/libraft_la-log.lo
CC src/libraft_la-membership.lo
CC src/libraft_la-progress.lo
CC src/libraft_la-raft.lo
CC src/libraft_la-recv.lo
CC src/libraft_la-recv_append_entries.lo
CC src/libraft_la-recv_append_entries_result.lo
CC src/libraft_la-recv_request_vote.lo
CC src/libraft_la-recv_request_vote_result.lo
CC src/libraft_la-recv_install_snapshot.lo
CC src/libraft_la-recv_timeout_now.lo
CC src/libraft_la-replication.lo
CC src/libraft_la-snapshot.lo
CC src/libraft_la-start.lo
CC src/libraft_la-state.lo
CC src/libraft_la-syscall.lo
CC src/libraft_la-tick.lo
CC src/libraft_la-tracing.lo
CC src/libraft_la-fixture.lo
CC src/libraft_la-uv.lo
CC src/libraft_la-uv_append.lo
CC src/libraft_la-uv_encoding.lo
CC src/libraft_la-uv_finalize.lo
CC src/libraft_la-uv_fs.lo
CC src/libraft_la-uv_ip.lo
CC src/libraft_la-uv_list.lo
CC src/libraft_la-uv_metadata.lo
CC src/libraft_la-uv_os.lo
CC src/libraft_la-uv_prepare.lo
CC src/libraft_la-uv_recv.lo
CC src/libraft_la-uv_segment.lo
CC src/libraft_la-uv_send.lo
CC src/libraft_la-uv_snapshot.lo
CC src/libraft_la-uv_tcp.lo
CC src/libraft_la-uv_tcp_listen.lo
CC src/libraft_la-uv_tcp_connect.lo
CC src/libraft_la-uv_truncate.lo
CC src/libraft_la-uv_writer.lo
CCLD libraft.la
make[1]: Leaving directory '/root/go/deps/raft'
# dqlite
Cloning into '/root/go/deps/dqlite'...
remote: Enumerating objects: 150, done.
remote: Counting objects: 100% (150/150), done.
remote: Compressing objects: 100% (140/140), done.
remote: Total 150 (delta 5), reused 37 (delta 3), pack-reused 0
Receiving objects: 100% (150/150), 183.57 KiB | 3.53 MiB/s, done.
Resolving deltas: 100% (5/5), done.
cd "/root/go/deps/dqlite" && \
autoreconf -i && \
PKG_CONFIG_PATH="/root/go/deps/raft/" ./configure && \
make CFLAGS="-I/root/go/deps/raft/include/" LDFLAGS="-L/root/go/deps/raft/.libs/"
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'ac'.
libtoolize: copying file 'ac/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:9: installing 'ac/compile'
configure.ac:12: installing 'ac/config.guess'
configure.ac:12: installing 'ac/config.sub'
configure.ac:6: installing 'ac/install-sh'
configure.ac:6: installing 'ac/missing'
Makefile.am: installing 'ac/depcomp'
parallel-tests: installing 'ac/test-driver'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking whether gcc is Clang... no
checking whether pthreads work with "-pthread" and "-lpthread"... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to build with code coverage support... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SQLITE... yes
checking for UV... yes
checking for RAFT... yes
checking if gcc supports flag -std=c11 in envvar CFLAGS... yes
checking if gcc supports flag -g in envvar CFLAGS... yes
checking if gcc supports flag --mcet in envvar CFLAGS... no
checking if gcc supports flag -fcf-protection in envvar CFLAGS... yes
checking if gcc supports flag --param=ssp-buffer-size=4 in envvar CFLAGS... yes
checking if gcc supports flag -pipe in envvar CFLAGS... yes
checking if gcc supports flag -fno-strict-aliasing in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-color in envvar CFLAGS... yes
checking if gcc supports flag -fexceptions in envvar CFLAGS... yes
checking if gcc supports flag -fstack-clash-protection in envvar CFLAGS... yes
checking if gcc supports flag -fstack-protector-strong in envvar CFLAGS... yes
checking if gcc supports flag -fasynchronous-unwind-tables in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-show-option in envvar CFLAGS... yes
checking if gcc supports flag -Wall in envvar CFLAGS... yes
checking if gcc supports flag -Wextra in envvar CFLAGS... yes
checking if gcc supports flag -Wimplicit-fallthrough=5 in envvar CFLAGS... yes
checking if gcc supports flag -Wcast-align in envvar CFLAGS... yes
checking if gcc supports flag -Wstrict-prototypes in envvar CFLAGS... yes
checking if gcc supports flag -Wlogical-op in envvar CFLAGS... yes
checking if gcc supports flag -Wmissing-include-dirs in envvar CFLAGS... yes
checking if gcc supports flag -Wold-style-definition in envvar CFLAGS... yes
checking if gcc supports flag -Winit-self in envvar CFLAGS... yes
checking if gcc supports flag -Wfloat-equal in envvar CFLAGS... yes
checking if gcc supports flag -Wsuggest-attribute=noreturn in envvar CFLAGS... yes
checking if gcc supports flag -Wformat=2 in envvar CFLAGS... yes
checking if gcc supports flag -Wshadow in envvar CFLAGS... yes
checking if gcc supports flag -Wendif-labels in envvar CFLAGS... yes
checking if gcc supports flag -Wdate-time in envvar CFLAGS... yes
checking if gcc supports flag -Wnested-externs in envvar CFLAGS... yes
checking if gcc supports flag -Wconversion in envvar CFLAGS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating dqlite.pc
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Entering directory '/root/go/deps/dqlite'
CC src/bind.lo
CC src/client.lo
CC src/command.lo
CC src/conn.lo
CC src/db.lo
CC src/dqlite.lo
CC src/error.lo
CC src/format.lo
CC src/fsm.lo
CC src/gateway.lo
CC src/leader.lo
CC src/lib/buffer.lo
CC src/lib/transport.lo
CC src/logger.lo
CC src/message.lo
CC src/metrics.lo
CC src/config.lo
CC src/query.lo
CC src/registry.lo
CC src/request.lo
CC src/response.lo
CC src/server.lo
CC src/stmt.lo
CC src/transport.lo
CC src/tuple.lo
CC src/vfs.lo
CCLD libdqlite.la
copying selected object files to avoid basename conflicts...
make[1]: Leaving directory '/root/go/deps/dqlite'
# environment
Please set the following in your environment (possibly ~/.bashrc)
export CGO_CFLAGS="-I/root/go/deps/raft/include/ -I/root/go/deps/dqlite/include/"
export CGO_LDFLAGS="-L/root/go/deps/raft/.libs -L/root/go/deps/dqlite/.libs/"
export LD_LIBRARY_PATH="/root/go/deps/raft/.libs/:/root/go/deps/dqlite/.libs/"
export CGO_LDFLAGS_ALLOW="-Wl,-wrap,pthread_create"
root@u2:~/go/src/github.com/lxc/lxd# export CGO_CFLAGS="-I/root/go/deps/raft/include/ -I/root/go/deps/dqlite/include/"
root@u2:~/go/src/github.com/lxc/lxd# export CGO_LDFLAGS="-L/root/go/deps/raft/.libs -L/root/go/deps/dqlite/.libs/"
root@u2:~/go/src/github.com/lxc/lxd# export LD_LIBRARY_PATH="/root/go/deps/raft/.libs/:/root/go/deps/dqlite/.libs/"
root@u2:~/go/src/github.com/lxc/lxd# export CGO_LDFLAGS_ALLOW="-Wl,-wrap,pthread_create"
root@u2:~/go/src/github.com/lxc/lxd# make
go get -t -v -d ./...
github.com/fvbommel/sortorder (download)
github.com/juju/persistent-cookiejar (download)
github.com/juju/go4 (download)
get "gopkg.in/retry.v1": found meta tag get.metaImport{Prefix:"gopkg.in/retry.v1", VCS:"git", RepoRoot:"https://gopkg.in/retry.v1"} at //gopkg.in/retry.v1?go-get=1
gopkg.in/retry.v1 (download)
get "gopkg.in/juju/environschema.v1/form": found meta tag get.metaImport{Prefix:"gopkg.in/juju/environschema.v1", VCS:"git", RepoRoot:"https://gopkg.in/juju/environschema.v1"} at //gopkg.in/juju/environschema.v1/form?go-get=1
get "gopkg.in/juju/environschema.v1/form": verifying non-authoritative meta tag
gopkg.in/juju/environschema.v1 (download)
get "gopkg.in/juju/environschema.v1": found meta tag get.metaImport{Prefix:"gopkg.in/juju/environschema.v1", VCS:"git", RepoRoot:"https://gopkg.in/juju/environschema.v1"} at //gopkg.in/juju/environschema.v1?go-get=1
github.com/mpvl/subtest (download)
github.com/juju/httprequest (download)
CC=cc go install -v -tags "libsqlite3" ./...
runtime/cgo
net
crypto/x509
crypto/tls
net/textproto
vendor/golang.org/x/net/http/httpguts
vendor/golang.org/x/net/http/httpproxy
net/http/httptrace
net/http
github.com/gorilla/websocket
os/user
archive/tar
github.com/flosch/pongo2
github.com/lxc/lxd/lxd/include
github.com/lxc/lxd/shared/cancel
github.com/lxc/lxd/shared/ioprogress
github.com/lxc/lxd/shared/logger
github.com/lxc/lxd/shared/units
github.com/kballard/go-shellquote
github.com/google/uuid
github.com/pborman/uuid
github.com/lxc/lxd/shared/validate
github.com/pkg/errors
golang.org/x/sys/internal/unsafeheader
golang.org/x/sys/unix
gopkg.in/robfig/cron.v2
github.com/lxc/lxd/shared
github.com/lxc/lxd/shared/api
github.com/lxc/lxd/shared/osarch
github.com/lxc/lxd/shared/simplestreams
github.com/rogpeppe/fastuuid
golang.org/x/crypto/curve25519
golang.org/x/sys/cpu
golang.org/x/crypto/blake2b
golang.org/x/crypto/internal/subtle
golang.org/x/crypto/poly1305
golang.org/x/crypto/salsa20/salsa
golang.org/x/crypto/nacl/secretbox
golang.org/x/crypto/nacl/box
gopkg.in/errgo.v1
gopkg.in/macaroon.v2
gopkg.in/macaroon-bakery.v2/bakery/checkers
google.golang.org/protobuf/internal/detrand
google.golang.org/protobuf/internal/errors
google.golang.org/protobuf/encoding/protowire
google.golang.org/protobuf/internal/pragma
google.golang.org/protobuf/reflect/protoreflect
google.golang.org/protobuf/internal/encoding/messageset
google.golang.org/protobuf/internal/flags
google.golang.org/protobuf/internal/strs
google.golang.org/protobuf/internal/encoding/text
google.golang.org/protobuf/internal/genid
google.golang.org/protobuf/internal/order
google.golang.org/protobuf/internal/set
google.golang.org/protobuf/reflect/protoregistry
google.golang.org/protobuf/runtime/protoiface
google.golang.org/protobuf/proto
google.golang.org/protobuf/encoding/prototext
google.golang.org/protobuf/internal/descfmt
google.golang.org/protobuf/internal/descopts
google.golang.org/protobuf/internal/encoding/defval
google.golang.org/protobuf/internal/filedesc
google.golang.org/protobuf/internal/encoding/tag
google.golang.org/protobuf/internal/impl
google.golang.org/protobuf/internal/filetype
google.golang.org/protobuf/internal/version
google.golang.org/protobuf/runtime/protoimpl
github.com/golang/protobuf/proto
gopkg.in/macaroon-bakery.v2/bakery/internal/macaroonpb
gopkg.in/macaroon-bakery.v2/bakery
github.com/juju/webbrowser
github.com/julienschmidt/httprouter
net/http/cookiejar
golang.org/x/net/publicsuffix
golang.org/x/net/html/atom
golang.org/x/net/html
gopkg.in/httprequest.v1
gopkg.in/macaroon-bakery.v2/internal/httputil
gopkg.in/macaroon-bakery.v2/httpbakery
github.com/lxc/lxd/client
github.com/lxc/lxd/shared/idmap
github.com/lxc/lxd/shared/version
github.com/spf13/pflag
github.com/spf13/cobra
github.com/lxc/lxd/fuidshift
github.com/fvbommel/sortorder
github.com/juju/go4/lock
gopkg.in/retry.v1
github.com/juju/persistent-cookiejar
github.com/juju/schema
golang.org/x/term
golang.org/x/crypto/ssh/terminal
gopkg.in/yaml.v2
gopkg.in/juju/environschema.v1
gopkg.in/juju/environschema.v1/form
gopkg.in/macaroon-bakery.v2/httpbakery/form
github.com/lxc/lxd/lxc/config
github.com/gosexy/gettext
github.com/lxc/lxd/shared/i18n
github.com/lxc/lxd/shared/termios
github.com/rivo/uniseg
github.com/mattn/go-runewidth
github.com/olekukonko/tablewriter
github.com/lxc/lxd/lxc/utils
github.com/lxc/lxd/shared/cmd
github.com/lxc/lxd/shared/log15/stack
github.com/lxc/lxd/shared/log15/term
github.com/mattn/go-isatty
github.com/mattn/go-colorable
log/syslog
github.com/lxc/lxd/shared/log15
github.com/lxc/lxd/shared/logging
github.com/cpuguy83/go-md2man/vendor/github.com/russross/blackfriday/v2
github.com/cpuguy83/go-md2man/md2man
github.com/spf13/cobra/doc
github.com/lxc/lxd/lxc
github.com/canonical/go-dqlite/internal/logging
github.com/Rican7/retry/backoff
github.com/Rican7/retry/jitter
github.com/Rican7/retry/strategy
github.com/Rican7/retry
github.com/canonical/go-dqlite/internal/protocol
github.com/ghodss/yaml
github.com/mattn/go-sqlite3
github.com/canonical/go-dqlite/client
github.com/canonical/go-dqlite/internal/bindings
github.com/canonical/go-dqlite
github.com/canonical/go-dqlite/driver
github.com/lxc/lxd/lxd/db/query
github.com/lxc/lxd/lxd/db/schema
golang.org/x/crypto/pbkdf2
golang.org/x/crypto/scrypt
gopkg.in/lxc/go-lxc.v2
github.com/lxc/lxd/lxd/util
github.com/lxc/lxd/lxd/db/cluster
github.com/lxc/lxd/lxd/db/node
github.com/lxc/lxd/lxd/device/config
github.com/lxc/lxd/lxd/instance/instancetype
github.com/davecgh/go-spew/spew
github.com/pmezard/go-difflib/difflib
gopkg.in/yaml.v3
net/http/httptest
github.com/stretchr/testify/assert
github.com/stretchr/testify/require
github.com/lxc/lxd/lxd/db
github.com/lxc/lxd/lxd/events
github.com/lxc/lxd/lxd/response
gopkg.in/tomb.v2
github.com/lxc/lxd/lxd/endpoints
gopkg.in/macaroon-bakery.v2/httpbakery/agent
github.com/lxc/lxd/lxd/rbac
github.com/lxc/lxd/lxd/project
github.com/lxc/lxd/lxd/revert
github.com/lxc/lxd/lxd/firewall/drivers
github.com/lxc/lxd/lxd/firewall
github.com/juju/collections/set
github.com/juju/errors
github.com/juju/loggo
gopkg.in/mgo.v2/internal/json
gopkg.in/mgo.v2/bson
github.com/juju/version
github.com/juju/gomaasapi
github.com/lxc/lxd/lxd/maas
github.com/lxc/lxd/lxd/cgroup
github.com/syndtr/gocapability/capability
github.com/lxc/lxd/lxd/sys
github.com/lxc/lxd/lxd/state
github.com/lxc/lxd/lxd/operations
github.com/lxc/lxd/lxd/migration
github.com/lxc/lxd/lxd/rsync
github.com/lxc/lxd/shared/eagain
github.com/lxc/lxd/lxc-to-lxd
github.com/canonical/candid/params
github.com/juju/utils/cache
gopkg.in/macaroon-bakery.v2/bakery/identchecker
github.com/canonical/candid/candidclient
github.com/dustinkirkland/golang-petname
github.com/gorilla/mux
github.com/lxc/lxd/lxd/backup
github.com/canonical/go-dqlite/app
net/rpc
github.com/hashicorp/go-msgpack/codec
go.etcd.io/bbolt
github.com/lxc/lxd/lxd/cluster/raft
github.com/lxc/lxd/lxd/cluster/request
github.com/lxc/lxd/lxd/config
github.com/lxc/lxd/lxd/node
github.com/lxc/lxd/lxd/filter
github.com/lxc/lxd/lxd/ucred
github.com/lxc/lxd/shared/netutils
github.com/lxc/lxd/lxd/seccomp
github.com/lxc/lxd/lxd/instance
github.com/lxc/lxd/lxd/locking
github.com/lxc/lxd/lxd/refcount
github.com/lxc/lxd/lxd/storage/quota
github.com/lxc/lxd/shared/instancewriter
github.com/lxc/lxd/lxd/storage/drivers
github.com/lxc/lxd/lxd/storage/memorypipe
github.com/lxc/lxd/lxd/storage
github.com/lxc/lxd/lxd/task
github.com/lxc/lxd/lxd/cluster
github.com/lxc/lxd/lxd/daemon
github.com/jkeiser/iter
github.com/farjump/go-libudev
github.com/google/gopacket
github.com/google/gopacket/layers
github.com/lxc/lxd/lxd/apparmor
github.com/lxc/lxd/lxd/device/nictype
github.com/lxc/lxd/lxd/device/pci
github.com/lxc/lxd/shared/subprocess
github.com/lxc/lxd/lxd/dnsmasq
github.com/mdlayher/netx/eui64
github.com/lxc/lxd/lxd/dnsmasq/dhcpalloc
github.com/lxc/lxd/lxd/network/openvswitch
github.com/lxc/lxd/lxd/network
github.com/digitalocean/go-smbios/smbios
github.com/mitchellh/go-homedir
github.com/jaypipes/pcidb
github.com/lxc/lxd/shared/usbid
github.com/lxc/lxd/lxd/resources
github.com/lxc/lxd/lxd/device
github.com/digitalocean/go-libvirt/internal/constants
github.com/digitalocean/go-libvirt/internal/event
github.com/digitalocean/go-libvirt/internal/go-xdr/xdr2
github.com/digitalocean/go-libvirt
github.com/digitalocean/go-qemu/qmp
github.com/lxc/lxd/lxd/instance/drivers/qmp
github.com/lxc/lxd/lxd/instance/operationlock
github.com/lxc/lxd/lxd/template
github.com/mdlayher/vsock
github.com/lxc/lxd/lxd/vsock
github.com/lxc/lxd/lxd/instance/drivers
github.com/lxc/lxd/lxd/network/acl
github.com/lxc/lxd/shared/dnsutil
golang.org/x/crypto/ed25519
golang.org/x/net/bpf
golang.org/x/net/internal/iana
golang.org/x/net/internal/socket
golang.org/x/net/ipv4
golang.org/x/net/ipv6
github.com/miekg/dns
gopkg.in/fsnotify.v0
github.com/lxc/lxd/lxd
github.com/lxc/lxd/lxd/db/generate/file
github.com/lxc/lxd/lxd/db/generate/lex
github.com/lxc/lxd/lxd/db/generate/db
github.com/lxc/lxd/lxd/db/generate
github.com/lxc/lxd/lxd-agent
github.com/lxc/lxd/lxd-benchmark/benchmark
github.com/lxc/lxd/lxd-benchmark
github.com/lxc/lxd/lxd-p2c
github.com/lxc/lxd/shared/subtest
github.com/lxc/lxd/test/deps
golang.org/x/net/context
github.com/juju/httprequest
github.com/lxc/lxd/test/macaroon-identity
CGO_ENABLED=0 go install -v -tags netgo ./lxd-p2c
net
crypto/x509
crypto/tls
net/textproto
vendor/golang.org/x/net/http/httpguts
vendor/golang.org/x/net/http/httpproxy
net/http/httptrace
net/http
github.com/gorilla/websocket
os/user
archive/tar
github.com/google/uuid
github.com/lxc/lxd/shared/validate
github.com/lxc/lxd/shared
github.com/lxc/lxd/shared/osarch
github.com/lxc/lxd/shared/simplestreams
net/http/cookiejar
gopkg.in/macaroon-bakery.v2/httpbakery
github.com/lxc/lxd/client
github.com/lxc/lxd/shared/i18n
github.com/lxc/lxd/shared/termios
github.com/lxc/lxd/lxc/utils
github.com/lxc/lxd/lxd/db
log/syslog
github.com/lxc/lxd/shared/log15
github.com/lxc/lxd/lxd/events
github.com/lxc/lxd/lxd/util
github.com/lxc/lxd/lxd/response
github.com/lxc/lxd/lxd/state
github.com/lxc/lxd/shared/version
github.com/lxc/lxd/lxd/operations
github.com/lxc/lxd/lxd/migration
github.com/lxc/lxd/lxd/rsync
github.com/lxc/lxd/shared/eagain
github.com/spf13/pflag
github.com/lxc/lxd/lxd-p2c
CGO_ENABLED=0 go install -v -tags agent,netgo ./lxd-agent
github.com/mdlayher/vsock
github.com/lxc/lxd/lxd/vsock
github.com/lxc/lxd/shared/netutils
github.com/lxc/lxd/lxd-agent
LXD built successfully
root@u2:~/go/src/github.com/lxc/lxd# GOPATH=~/go
root@u2:~/go/src/github.com/lxc/lxd# # But we need to export these:
root@u2:~/go/src/github.com/lxc/lxd# export PATH="$PATH:$GOPATH/bin"
root@u2:~/go/src/github.com/lxc/lxd# export LD_LIBRARY_PATH="${GOPATH}/deps/dqlite/.libs/:${GOPATH}/deps/raft/.libs/:${LD_LIBRARY_PATH}"
root@u2:~/go/src/github.com/lxc/lxd# lxd --debug --group lxd
INFO[02-14|15:53:27] LXD 4.11 is starting in normal mode path=/var/lib/lxd
INFO[02-14|15:53:27] Kernel uid/gid map:
INFO[02-14|15:53:27] - u 0 0 4294967295
INFO[02-14|15:53:27] - g 0 0 4294967295
INFO[02-14|15:53:27] Configured LXD uid/gid map:
INFO[02-14|15:53:27] - u 0 1000000 1000000000
INFO[02-14|15:53:27] - g 0 1000000 1000000000
WARN[02-14|15:53:27] AppArmor support has been disabled because 'apparmor_parser' couldn't be found
INFO[02-14|15:53:27] Kernel features:
INFO[02-14|15:53:27] - closing multiple file descriptors efficiently: no
INFO[02-14|15:53:27] - netnsid-based network retrieval: yes
INFO[02-14|15:53:27] - pidfds: no
INFO[02-14|15:53:27] - uevent injection: yes
INFO[02-14|15:53:27] - seccomp listener: yes
INFO[02-14|15:53:27] - seccomp listener continue syscalls: yes
INFO[02-14|15:53:27] - seccomp listener add file descriptors: no
INFO[02-14|15:53:27] - attach to namespaces via pidfds: no
INFO[02-14|15:53:27] - safe native terminal allocation : no
INFO[02-14|15:53:27] - unprivileged file capabilities: yes
INFO[02-14|15:53:27] - cgroup layout: hybrid
WARN[02-14|15:53:27] - Couldn't find the CGroup blkio.weight, disk priority will be ignored
WARN[02-14|15:53:27] - Couldn't find the CGroup memory swap accounting, swap limits will be ignored
INFO[02-14|15:53:27] - shiftfs support: yes
INFO[02-14|15:53:27] Initializing local database
DBUG[02-14|15:53:28] Initializing database gateway
DBUG[02-14|15:53:28] Start database node id=1 address= role=voter
INFO[02-14|15:53:28] Starting /dev/lxd handler:
INFO[02-14|15:53:28] - binding devlxd socket socket=/var/lib/lxd/devlxd/sock
INFO[02-14|15:53:28] REST API daemon:
INFO[02-14|15:53:28] - binding Unix socket socket=/var/lib/lxd/unix.socket
INFO[02-14|15:53:28] Initializing global database
DBUG[02-14|15:53:28] Dqlite: attempt 0: server 1: connected
DBUG[02-14|15:53:28] Firewall detected "nftables" incompatibility: Backend command "nft" missing
INFO[02-14|15:53:28] Firewall loaded driver "xtables"
INFO[02-14|15:53:28] Initializing storage pools
DBUG[02-14|15:53:28] No existing storage pools detected
INFO[02-14|15:53:28] Initializing daemon storage mounts
INFO[02-14|15:53:28] Initializing networks
DBUG[02-14|15:53:28] New task Operation: d068a785-4596-414d-ae05-8a25878ade56
INFO[02-14|15:53:28] Pruning leftover image files
DBUG[02-14|15:53:28] Started task operation: d068a785-4596-414d-ae05-8a25878ade56
DBUG[02-14|15:53:28] Success for task operation: d068a785-4596-414d-ae05-8a25878ade56
INFO[02-14|15:53:28] Done pruning leftover image files
INFO[02-14|15:53:28] Loading daemon configuration
DBUG[02-14|15:53:28] Initialized inotify with file descriptor 22
INFO[02-14|15:53:28] Started seccomp handler path=/var/lib/lxd/seccomp.socket
DBUG[02-14|15:53:28] New task Operation: 5f84ae11-491f-4d73-ae49-0a9fc8289121
INFO[02-14|15:53:28] Pruning expired images
DBUG[02-14|15:53:28] Started task operation: 5f84ae11-491f-4d73-ae49-0a9fc8289121
INFO[02-14|15:53:28] Done pruning expired images
DBUG[02-14|15:53:28] Success for task operation: 5f84ae11-491f-4d73-ae49-0a9fc8289121
DBUG[02-14|15:53:28] New task Operation: 0391223a-a980-4f62-93c4-0e04846ea23b
INFO[02-14|15:53:28] Pruning expired instance backups
DBUG[02-14|15:53:28] Started task operation: 0391223a-a980-4f62-93c4-0e04846ea23b
INFO[02-14|15:53:28] Done pruning expired instance backups
DBUG[02-14|15:53:28] Success for task operation: 0391223a-a980-4f62-93c4-0e04846ea23b
DBUG[02-14|15:53:28] New task Operation: 02e27b72-f061-4484-af9b-36748b4f7979
DBUG[02-14|15:53:28] New task Operation: 66ecab7f-822b-4ebf-b541-7014885a4ba6
INFO[02-14|15:53:28] Expiring log files
DBUG[02-14|15:53:28] Started task operation: 02e27b72-f061-4484-af9b-36748b4f7979
INFO[02-14|15:53:28] Updating images
DBUG[02-14|15:53:28] Started task operation: 66ecab7f-822b-4ebf-b541-7014885a4ba6
DBUG[02-14|15:53:28] Success for task operation: 02e27b72-f061-4484-af9b-36748b4f7979
DBUG[02-14|15:53:28] New task Operation: 1f7934af-43a3-4f24-96b0-f4286df0a7f0
INFO[02-14|15:53:28] Done expiring log files
INFO[02-14|15:53:28] Done updating images
INFO[02-14|15:53:28] Updating instance types
DBUG[02-14|15:53:28] Started task operation: 1f7934af-43a3-4f24-96b0-f4286df0a7f0
INFO[02-14|15:53:28] Done updating instance types
DBUG[02-14|15:53:28] Success for task operation: 66ecab7f-822b-4ebf-b541-7014885a4ba6
DBUG[02-14|15:53:28] Success for task operation: 1f7934af-43a3-4f24-96b0-f4286df0a7f0
This all works exactly as expected with simply following the instructions to the letter on a freshly installed Ubuntu 20.04 system.
@stgraber ok probably because snapd is not shipped with Linux Mint anymore. I confirmed this with docker. In ubuntu20.04 it works fine but not LInux Mint v20
https://www.zdnet.com/article/linux-mint-dumps-ubuntu-snap/
would you consider adding github release? it looks really bad that we have to install snapd to be able to use lxd.
For now I'll see how to install from source, I have some issues with golang's module system...
No, LXD isn't something you can build statically, so a binary build would fall to start on most platforms and randomly crash on others later on.
If you only need the client tool, we do have a static build of that as part of Github actions but the server we can't do it.
@stgraber I gave up...
I'll go for real virtualization.
Also it's not good to write directly:
sudo apt install golang
in your deps, people may already have go installed.
Anyway I cannot spend the whole day to see how to compile lxd in Linux Mint v20, if you have any ideas please ping me later, I'll go for real virtualization for this moment
libuv1-dev shipped with Linux Mint v20 is 1.34
@GopherJ this works for me (building inside a nested LXD container also, for my own convenience):
Note: This is a minimal build so not all features supported, but enough to get basic containers running.
I've used the Mint liblxc LTS packages for simplicity also.
lxc init images:mint/ulyssa c1
lxc config set c1 security.nesting="true"
lxc start c1
lxc shell c1
apt install lxc-dev apparmor libapparmor-dev golang git make autoconf libtool libsqlite3-dev sqlite3 libuv1-dev libcap-dev libseccomp-dev libapparmor-dev libudev-dev acl libacl1-dev squashfs-tools nftables dnsmasq
export GOPATH=~/go
mkdir -p ~/go/src/github.com/lxc
cd ~/go/src/github.com/lxc
git clone https://github.com/lxc/lxd.git
cd lxd
go get -d -v github.com/lxc/lxd/lxd
make deps
export CGO_CFLAGS="-I/root/go/deps/raft/include/ -I/root/go/deps/dqlite/include/"
export CGO_LDFLAGS="-L/root/go/deps/raft/.libs -L/root/go/deps/dqlite/.libs/"
export LD_LIBRARY_PATH="/root/go/deps/raft/.libs/:/root/go/deps/dqlite/.libs/"
export CGO_LDFLAGS_ALLOW="-Wl,-wrap,pthread_create"
make
echo "root:1000000:65536" | sudo tee -a /etc/subuid /etc/subgid
# Create env var script for starting lxd and lxc commands:
cat > ~/lxd_env.sh <<- EOM
export CGO_CFLAGS="${CGO_CFLAGS}"
export CGO_LDFLAGS="${CGO_LDFLAGS}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
export CGO_LDFLAGS_ALLOW="${CGO_LDFLAGS_ALLOW}"
export PATH=${PATH}:${GOPATH}/bin
EOM
# Start LXD
. ~/lxd_env.sh
lxd
# Init LXD from another window:
. ~/lxd_env.sh
lxd init --auto
lxc launch images:mint/ulyssa c1
One thing I've noticed is that the apparmor
package must be installed to start the container when nesting (otherwise you get errors about not being able to mount proc directories), but if apparmor
package is installed, the dnsmasq fails to start because the dnsmasq apparmor profile only currently allows executing the dnsmasq binaries inside the snap and not outside.
@stgraber is there any reason this was made snap specific?
But if you're running these commands on a non-nested container it should work OK.
@tomponline nope, probably just a mistake in the dnsmasq profile that we didn't hit in CI.
@stgraber yeah the profile has an explicit check for being inside the snap:
https://github.com/lxc/lxd/blob/master/lxd/apparmor/network_dnsmasq.go#L58-L65
Otherwise it fails on mmap read of its own binary.
Ah right, that's an AppArmor bug where you need map permission for your own binary when in an AppArmor namespace but not when outside of one...
The snap because of snap-exec always needs that even when not nested so that's why we've noticed that part and added it but haven't noticed the other case yet.
Should be a pretty simple one line fix to add something similar to the global section.
@stgraber ill take a look.
For my own info, is it expected that nested containers would be unable to start without using apparmor inside the first container, when apparmor is in use on the host? My original fix for the dnsmasq issue was to uninstall apparmor in the first container, but that broke containers starting.
I think so, liblxc doesn't rely on the presence of the AppArmor binaries so as long as you have a /sys/kernel/security/apparmor it will expect the profiles to be ready for use.
Some folks have had some success using a tmpfs mounted on /sys/kernel/security to completely block any AppArmor interactions in the container.
Though you obviously can't escape your parent's profile so can still run into some odd cases where software thinks it's unconfined but still hits confinement.
@stgraber right that makes sense, any objections to me adding a check in LXD that if /sys/kernel/security/apparmor exists, but the profile load cannot occur then return with a more helpful error rather than letting liblxc fail?
You could try setting lxc.apparmor=unconfined in such cases instead but we'd definitely want to log a warning in such cases.
@tomponline thanks it actually helped, but I still have libuv issue.
I tried to set export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
but it didn't help, it still gives me the same error:
As you can see I do have libuv (I'm not sure if it's the one that lxd needs)
I'm sure that there are other people who doesn't want snap but want lxd. Could you help me on this?
I feel it's caused by linuxbrew:
which pkg-config gives me
/home/linuxbrew/.linuxbrew/bin/pkg-config
since /usr/bin/pkg-config --cflags --libs libuv
works on my side but linuxbrew pkg-config
cannot
I ran into another issue, it says missing dqlite
now.
# raft
Already up to date.
cd "/home/cheng/go/1.15.7/deps/raft" && \
autoreconf -i && \
./configure && \
make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for UV... yes
checking whether to build with code coverage support... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking for unistd.h... (cached) yes
checking linux/io_uring.h usability... yes
checking linux/io_uring.h presence... yes
checking for linux/io_uring.h... yes
checking linux/aio_abi.h usability... yes
checking linux/aio_abi.h presence... yes
checking for linux/aio_abi.h... yes
checking for zfs... no
checking for size_t... yes
checking for ssize_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking whether UV_FS_O_CREAT is declared... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking if gcc supports flag -std=c11 in envvar CFLAGS... yes
checking if gcc supports flag -g in envvar CFLAGS... yes
checking if gcc supports flag --mcet in envvar CFLAGS... no
checking if gcc supports flag -fcf-protection in envvar CFLAGS... yes
checking if gcc supports flag --param=ssp-buffer-size=4 in envvar CFLAGS... yes
checking if gcc supports flag -pipe in envvar CFLAGS... yes
checking if gcc supports flag -fno-strict-aliasing in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-color in envvar CFLAGS... yes
checking if gcc supports flag -fexceptions in envvar CFLAGS... yes
checking if gcc supports flag -fstack-clash-protection in envvar CFLAGS... yes
checking if gcc supports flag -fstack-protector-strong in envvar CFLAGS... yes
checking if gcc supports flag -fasynchronous-unwind-tables in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-show-option in envvar CFLAGS... yes
checking if gcc supports flag -Wall in envvar CFLAGS... yes
checking if gcc supports flag -Wextra in envvar CFLAGS... yes
checking if gcc supports flag -Wpedantic in envvar CFLAGS... yes
checking if gcc supports flag -Wimplicit-fallthrough=5 in envvar CFLAGS... yes
checking if gcc supports flag -Wcast-align in envvar CFLAGS... yes
checking if gcc supports flag -Wstrict-prototypes in envvar CFLAGS... yes
checking if gcc supports flag -Wlogical-op in envvar CFLAGS... yes
checking if gcc supports flag -Wmissing-include-dirs in envvar CFLAGS... yes
checking if gcc supports flag -Wold-style-definition in envvar CFLAGS... yes
checking if gcc supports flag -Winit-self in envvar CFLAGS... yes
checking if gcc supports flag -Wfloat-equal in envvar CFLAGS... yes
checking if gcc supports flag -Wsuggest-attribute=noreturn in envvar CFLAGS... yes
checking if gcc supports flag -Wformat=2 in envvar CFLAGS... yes
checking if gcc supports flag -Wendif-labels in envvar CFLAGS... yes
checking if gcc supports flag -Wdate-time in envvar CFLAGS... yes
checking if gcc supports flag -Wnested-externs in envvar CFLAGS... yes
checking if gcc supports flag -Wconversion in envvar CFLAGS... yes
checking if gcc supports flag -Werror=implicit-function-declaration in envvar CFLAGS... yes
checking if gcc supports flag -Wunused-but-set-variable in envvar CFLAGS... yes
checking if gcc supports flag -Werror=return-type in envvar CFLAGS... yes
checking if gcc supports flag -Werror=incompatible-pointer-types in envvar CFLAGS... yes
checking if gcc supports flag -Wshadow in envvar CFLAGS... yes
checking if gcc supports flag -Werror=overflow in envvar CFLAGS... yes
checking if gcc supports flag -Werror=shift-count-overflow in envvar CFLAGS... yes
checking if gcc supports flag -Werror=shift-overflow=2 in envvar CFLAGS... yes
checking if gcc supports flag -Warray-bounds in envvar CFLAGS... yes
checking if gcc supports flag -Wrestrict in envvar CFLAGS... yes
checking if gcc supports flag -Wreturn-local-addr in envvar CFLAGS... yes
checking if gcc supports flag -Wstringop-overflow in envvar CFLAGS... yes
checking if gcc supports flag -z in envvar LDFLAGS... no
checking if gcc supports flag relro in envvar LDFLAGS... no
checking if gcc supports flag -z in envvar LDFLAGS... (cached) no
checking if gcc supports flag now in envvar LDFLAGS... no
checking if gcc supports flag -fstack-protector-strong in envvar LDFLAGS... yes
checking if gcc supports flag --param=ssp-buffer-size=4 in envvar LDFLAGS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating raft.pc
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Entering directory '/home/cheng/go/1.15.7/deps/raft'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/cheng/go/1.15.7/deps/raft'
# dqlite
Already up to date.
cd "/home/cheng/go/1.15.7/deps/dqlite" && \
autoreconf -i && \
PKG_CONFIG_PATH="/home/cheng/go/1.15.7/deps/raft/" ./configure && \
make CFLAGS="-I/home/cheng/go/1.15.7/deps/raft/include/" LDFLAGS="-L/home/cheng/go/1.15.7/deps/raft/.libs/"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking whether gcc is Clang... no
checking whether pthreads work with "-pthread" and "-lpthread"... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to build with code coverage support... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SQLITE... yes
checking for UV... yes
checking for RAFT... yes
checking if gcc supports flag -std=c11 in envvar CFLAGS... yes
checking if gcc supports flag -g in envvar CFLAGS... yes
checking if gcc supports flag --mcet in envvar CFLAGS... no
checking if gcc supports flag -fcf-protection in envvar CFLAGS... yes
checking if gcc supports flag --param=ssp-buffer-size=4 in envvar CFLAGS... yes
checking if gcc supports flag -pipe in envvar CFLAGS... yes
checking if gcc supports flag -fno-strict-aliasing in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-color in envvar CFLAGS... yes
checking if gcc supports flag -fexceptions in envvar CFLAGS... yes
checking if gcc supports flag -fstack-clash-protection in envvar CFLAGS... yes
checking if gcc supports flag -fstack-protector-strong in envvar CFLAGS... yes
checking if gcc supports flag -fasynchronous-unwind-tables in envvar CFLAGS... yes
checking if gcc supports flag -fdiagnostics-show-option in envvar CFLAGS... yes
checking if gcc supports flag -Wall in envvar CFLAGS... yes
checking if gcc supports flag -Wextra in envvar CFLAGS... yes
checking if gcc supports flag -Wimplicit-fallthrough=5 in envvar CFLAGS... yes
checking if gcc supports flag -Wcast-align in envvar CFLAGS... yes
checking if gcc supports flag -Wstrict-prototypes in envvar CFLAGS... yes
checking if gcc supports flag -Wlogical-op in envvar CFLAGS... yes
checking if gcc supports flag -Wmissing-include-dirs in envvar CFLAGS... yes
checking if gcc supports flag -Wold-style-definition in envvar CFLAGS... yes
checking if gcc supports flag -Winit-self in envvar CFLAGS... yes
checking if gcc supports flag -Wfloat-equal in envvar CFLAGS... yes
checking if gcc supports flag -Wsuggest-attribute=noreturn in envvar CFLAGS... yes
checking if gcc supports flag -Wformat=2 in envvar CFLAGS... yes
checking if gcc supports flag -Wshadow in envvar CFLAGS... yes
checking if gcc supports flag -Wendif-labels in envvar CFLAGS... yes
checking if gcc supports flag -Wdate-time in envvar CFLAGS... yes
checking if gcc supports flag -Wnested-externs in envvar CFLAGS... yes
checking if gcc supports flag -Wconversion in envvar CFLAGS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating dqlite.pc
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Entering directory '/home/cheng/go/1.15.7/deps/dqlite'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/cheng/go/1.15.7/deps/dqlite'
# environment
Please set the following in your environment (possibly ~/.bashrc)
export CGO_CFLAGS="-I/home/cheng/go/1.15.7/deps/raft/include/ -I/home/cheng/go/1.15.7/deps/dqlite/include/"
export CGO_LDFLAGS="-L/home/cheng/go/1.15.7/deps/raft/.libs -L/home/cheng/go/1.15.7/deps/dqlite/.libs/"
export LD_LIBRARY_PATH="/home/cheng/go/1.15.7/deps/raft/.libs/:/home/cheng/go/1.15.7/deps/dqlite/.libs/"
export CGO_LDFLAGS_ALLOW="-Wl,-wrap,pthread_create"
@stgraber @tomponline guys I'm close:)
now it works:)
I'm more than a year late for this, but Mint has a notoriously difficult time keeping up with upstreams. I encourage OP to move to a better-maintained distro such as Debian or Ubuntu; LXD integrates better with the latter.
Anyway, in case it can help anyone, I build LXD tarballs using GitLab's CI at https://gitlab.com/pgregoire-ci/lxd It's a bit rough (it doesn't install dependencies or ship init-related files), but works good enough for my purpose. Current targets are Debian's bullseye and sid, but feel free to MR a new one if you're prepared to maintain it.
Required information
Issue description
A brief description of the problem. Should include what you were attempting to do, what you did, what happened and what you expected to see happen.
Steps to reproduce
Install lxd on ubuntu20.04
Information to attach
dmesg
)lxc info NAME --show-log
)lxc config show NAME --expanded
)lxc monitor
while reproducing the issue)