LXC not working, here's how to fix it

Trying to instal anything from LXC repo yelds

root@turris:~# lxc-create -t download -n name_of_lxc_container
Setting up the GPG keyring
Downloading the image index
ERROR: Failed to download http://repo.turris.cz/lxc//meta/1.0/index-system
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for name_of_lxc_container failed
lxc-create: lxc_create.c: main: 274 Error creating container name_of_lxc_container

Quickfix:

  1. edit line 44 from /usr/share/lxc/templates/lxc-download
    DOWNLOAD_SHOW_HTTP_WARNING="false"
  2. use this command,
    lxc-create -n debian10 -t download -B best -- -d Debian -r Buster -a armv7l --no-validate

-d Debian (distribution)
-r Buster (release)

are case sensitive and can be found in the original repo, here:
https://repo.turris.cz/lxc//meta/1.0/index-system.2

Long fix: Github issue #85

A post was merged into an existing topic: Lxc-create error