Lxc-download error - missing http://repo.turris.cz/lxc//meta/1.0/index-system.asc

It looks like the index-system.asc file is missing from repo.turris.cz

root@turris:/usr# /usr/share/lxc/templates/lxc-download --list  --server repo.turris.cz/lxc
Setting up the GPG keyring
Downloading the image index
ERROR: Failed to download http://repo.turris.cz/lxc//meta/1.0/index-system.asc```

This previously occured in 2021: LXC-Container ERROR: Failed to download http://repo.turris.cz/lxc//meta/1.0/index-system.asc

This results in the following error in the UI:
There are no templates for your architecture (armv7l) available, please select another containers URL.


Try to uncheck “Enable SSL” or try to use images.linuxcontainers.org repo.

It looks like disabling the Enable SSL flag really disables GPG validation (is this mis-named?):

root@turris:/usr/lib# /usr/share/lxc/templates/lxc-download --list --no-validate --server repo.turris.cz/lxc
Downloading the image index
WARNING: Running without gpg validation!

Turris_OS       HBS     aarch64 default 2023-03-22
Turris_OS       HBS     armv7l  default 2023-03-22
Turris_OS       HBS     ppc     default 2023-03-22

--no-validate is what /usr/lib/lua/luci/controller/lxc.lua adds to the lxc-download command when you un-check that.

This works, but isn’t ideal (insecure!). I’ll use linuxcontainers.org for now, but I think this needs to be fixed on the the repo.turris.cz/lxc server-side.

1 Like

I agree, one day someone will fix this.