I have just been upgrading my laptop from Ubuntu 18:04 to 20:04 and the upgrade got stuck during the LXD uprade. The LXD upgrade GUI went dark and it never recovered, leaving the Ubuntu upgrade rather broken. After a number of rounds of applying updates from the terminal I now have the desktop environment back up, but LXD is broken. I think that it is stuck somewhere in the migration to the snap, perhaps the containers are still at the old location but Ubuntu thinks they should be in the snap?
sudo lxc list
Error: Get “http://unix.socket/1.0”: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused
sudo systemctl status lxd
lxd.service - LSB: Container hypervisor based on LXC
Loaded: loaded (/etc/init.d/lxd; generated)
Active: failed (Result: timeout) since Thu 2021-04-29 20:16:19 CEST; 8min ago
Process: 1351 ExecStart=/etc/init.d/lxd start (code=killed, signal=TERM)
Apr 29 20:11:20 laptop lxd: Starting Container hypervisor based on LXC: lxd.
Apr 29 20:11:19 laptop systemd: Starting LSB: Container hypervisor based on LXC…
Apr 29 20:16:19 laptop systemd: lxd.service: start operation timed out. Terminating.
Apr 29 20:16:19 laptop systemd: lxd.service: Failed with result ‘timeout’.
Apr 29 20:16:19 laptop systemd: Failed to start LSB: Container hypervisor based on LXC.
I also notice that the lxdbr0 bridge is missing.
I saw an output that said I should run lxd.migrate but that also gives an error:
=> Connecting to source server
error: Unable to connect to the source LXD: Get “http://unix.socket/1.0”: dial unix /var/lib/lxd/unix.socket: connect: connection refused
I have one container that is very important to me, so I hope that someone can help me get this working again.
Any help is much appreciated.