Hi Brian, On Mon, May 08, 2017 at 02:39:41PM -0400, Brian Minton wrote: > I tried to create a container with the default ubuntu template: > > bminton:~# lxc-create -t ubuntu -n ubuntu > > but it gets to the ubuntu-keyring package, it fails. > > (Reading database ... 12622 files and directories currently installed.) > Preparing to replace ubuntu-keyring 2011.11.21 (using > .../ubuntu-keyring_2011.11.21.1_all.deb) ... > Unpacking replacement ubuntu-keyring ... > Setting up ubuntu-keyring (2011.11.21.1) ... > mktemp: failed to create file via template `/tmp/user/0/tmp.XXXXXXXXXX': No > such file or directory > dpkg: error processing ubuntu-keyring (--configure): > subprocess installed post-installation script returned error exit status 1 > No apport report written because MaxReports is reached already > Errors were encountered while processing: > ubuntu-keyring > E: Sub-process /usr/bin/dpkg returned an error code (1) > Container upgrade failed. The container cache may be out of date, > in which case flushing the cache (see -F in the help output) may help. > lxc-create: lxccontainer.c: create_run_template: 1297 container creation > template for ubuntu failed > lxc-create: tools/lxc_create.c: main: 318 Error creating container ubuntu > bminton:~#
To be honest, I don't see how this exact failure is LXC related? The post script of ubuntu-keyring fails and thus the creation of the container fails. Pretty normal IMHO. Or does it work fine outside LXC? Can you reproduce the issue with `-r xenial`? It seems the Ubuntu template tries to bootstrap outdated Precise by default [1]. Regards Evgeni [1] https://github.com/lxc/lxc/pull/1543