FUN WITH LINUX

LXC: Problems with the ubuntu-template in Debian Jessie

29 September 2016

I tried to create an Ubuntu-container on my Debian Jessie Server and I got the following error-message:

root@lxc-server.foo:/usr/share/lxc/templates$ lxc-create -n mycontainer -t ubuntu
Checking cache download in /var/cache/lxc/precise/rootfs-amd64 ...
Installing packages in template: ssh,vim,language-pack-en
Downloading ubuntu precise minimal ...
I: Keyring file not available at /usr/share/keyrings/ubuntu-archive-keyring.gpg; switching to https mirror https://mirrors.kernel.org/debian
I: Retrieving Release
E: Failed getting release file https://mirrors.kernel.org/debian/dists/precise/Release
lxc_container: container creation template for sec.toscom.at failed
lxc_container: Error creating container mycontainer

I installed the ubuntu-archive-keyring to fix it:

apt-get install ubuntu-archive-keyring
[ Linux  Sysadmin  Tricks  Debian  Virtualization  ]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 Unported License.

Copyright 2015-present Hoti