diff --git a/lxc-generator/generate-lxc.sh b/lxc-generator/generate-lxc.sh
index 850d5c4ea2133633a589d62298e5c457f2060e7a..39c582325704c6b1f3fcaa6c3e63d013e42a55b4 100755
--- a/lxc-generator/generate-lxc.sh
+++ b/lxc-generator/generate-lxc.sh
@@ -41,13 +41,21 @@ get_omnia_url() {
     echo "https://api.turris.cz/openwrt-repo/omnia/$REL"
 }
 
+get_linaro_release() {
+    wget -O - https://releases.linaro.org/$1/images/developer/latest/ | sed -n 's|.*href="/'"$1"'/images/developer/latest/linaro-\([a-z]*\)-developer-[0-9]*-[0-9]*.tar.gz.*|\1|p'
+}
+
+get_linaro_url() {
+    echo "https://releases.linaro.org`wget -O - https://releases.linaro.org/$1/images/developer/latest/ | sed -n 's|.*href="\(/'"$1"'/images/developer/latest/linaro-[a-z]*-developer-[0-9]*-[0-9]*.tar.gz\).*|\1|p'`"
+}
+
 add_image "Turris_OS" "stable" "armv7l" "`get_omnia_url`"
 add_image "Turris_OS" "stable" "ppc" "https://api.turris.cz/openwrt-repo/turris/openwrt-mpc85xx-p2020-nand-TURRISNAND-rootfs.tar.gz"
-add_image "Arch_Linux_ARM" "latest" "armv7l" "https://archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz"
+add_image "Debian" "`get_linaro_release debian`" "`get_linaro_url debian`"
 add_image "Gentoo" "stable" "armv7l" "`get_gentoo_url arm armv7a_hardfp`"
 add_image "openSUSE" "13.2" "armv7l" "http://download.opensuse.org/ports/armv7hl/distribution/13.2/appliances/openSUSE-13.2-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz"
 add_image "openSUSE" "Tumbleweed" "armv7l" "http://download.opensuse.org/ports/armv7hl/tumbleweed/images/openSUSE-Tumbleweed-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz"
-add_image "Ubuntu_Cloud" "16.04" "armv7l" "https://uec-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-armhf-root.tar.gz"
+add_image "Ubuntu" "`get_linaro_release ubuntu`" "`get_linaro_url ubuntu`"
 
 if [ "`gpg -K`" ]; then
 if [ -f ~/gpg-pass ]; then