Source: ltsp Version: 5.5.8-1 Severity: important User: [email protected] Usertag: debian-edu
Hi,
while testing Debian Edu Stretch the LTSP chroot installation aborted.
This happened when apt-get update was run in the chroot and the stretch
InRelease file was about to be checked. The error message was somehow
misleading (asking if gnupg was installed).
(Same result if Debian-custom is moved out of the way.)
After further investigation I noticed, that the InRelease file check
needs a temporary file in /tmp. This failed due to wrong permissions of
the chroot's /tmp dir. Permisions were 0775, should be 1777 like it is
when a plain 'debootstrap sid /somewhere' is executed.
I have no idea where the wrong permissions come from.
This workaround made the chroot installation succeed:
diff --git
a/server/share/ltsp/plugins/ltsp-build-client/Debian/020-apt-get-update
b/server/share/ltsp/plugins/ltsp-build-client/Debian/020-apt-get-update
index 9139125..cb1a186 100644
--- a/server/share/ltsp/plugins/ltsp-build-client/Debian/020-apt-get-update
+++ b/server/share/ltsp/plugins/ltsp-build-client/Debian/020-apt-get-update
@@ -1,6 +1,7 @@
case "$MODE" in
after-install)
export APT_GET_OPTS="$APT_GET_OPTS -o
Acquire::gpgv::Options::=--ignore-time-conflict"
+ chroot $ROOT chmod 1777 /tmp
chroot $ROOT apt-get $APT_GET_OPTS update
;;
esac
Please check.
Wolfgang
signature.asc
Description: Digital signature

