diff --git a/distro/debian/debian.go b/distro/debian/debian.go index ae830ff..ef143f6 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -210,7 +210,7 @@ func ContainerCommands(km config.KernelMask) (commands []string) { cmdf("echo '%s' >> /etc/apt/sources.list", repo) } } else { - cmdf("sed -i " + + cmdf("apt-get update || sed -i " + "-e '/snapshot/!d' " + "-e 's/# deb/deb [check-valid-until=no trusted=yes]/' " + "/etc/apt/sources.list")