HOME/Knowledge/LXD upgrade fails on Ubuntu 16.04 without Systemd
LXD upgrade fails on Ubuntu 16.04 without Systemd
By Ansgar Wiechers
Recently I tried to install LXD (Canonical's container manager) from backports on a Ubuntu 16.04 system (running without Systemd). The version shipping with the system (2.0) doesn't suffice, because I need the new storage API that was introduced with LXD 2.15. However, upgrading to the backports package failed post-install:
invoke-rc.d: initscript lxd, action "start" failed.
dpkg: error processing package lxd (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Which was weird, since the upgrade had worked for me before.
Once identified, the problem was easily fixed by restoring the original lxd.conf and removing 2 lines for starting/stopping the LXD bridge (because the respective scripts had already been removed in earlier backports packages).
To get a working LXD 2.17 on Ubuntu 16.04 add the backports repository to your apt sources:
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse