[Pkg-ltsp-devel] Bug#840667: ltsp-build-client fails at apt update call

Wolfgang Schweer wschweer at arcor.de
Thu Oct 13 16:41:53 UTC 2016


Source: ltsp
Version: 5.5.8-1
Severity: important
User: debian-edu at lists.debian.org
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20161013/bc519e3e/attachment.sig>


More information about the Pkg-ltsp-devel mailing list