#1005346 /usr/bin/unattended-upgrade: does not use the 'TMP' environment variable

#1005346#5
Date:
2022-02-11 18:25:12 UTC
From:
To:
Dear Maintainer,

   * I ugraded my raspi 3B from raspian (armhf) to debian arm64. To
     reduce the amount of writes on the SD card, I use tmp.mount with
        Options=mode=1777,strictatime,nosuid,nodev,noexec,size=128M,nr_inodes=400k
     that's right: in memory, very small size, no exec. With such
     settings, 'unattended-upgrades' fails as it tries to execute a
     script from /tmp
   * other programs are run as: env TMP=/var/tmp some_command
     in case they require to generate and execute some script. But
     this approach sometimes fails with unattended-upgrades

#1005346#10
Date:
2026-07-31 12:13:46 UTC
From:
To:
Hi,

(I'm not the maintainer)

Generally `noexec` for /tmp is not a supported configuration on
Debian, at least while packages are being installed/upgraded.

Nevertheless, do you have log output showing what exactly fails?

Can you verify that TMPDIR does not work? That would be the standard
name for this environment variable on Linux, not TMP (even though
Windows calls it that).

Best,
Chris