The error message “W: TMPDIR is mounted noexec, will not cache run scripts” means that the /tmp
directory, which is used to store temporary files, is mounted with the noexec
option. This means that you cannot execute scripts from the /tmp
directory.
To resolve this error, you have several options:
- Change the
noexec
option for the/tmp
directory: This can be done by modifying the/etc/fstab
file and adding theexec
option for the/tmp
directory. - Create a new temporary directory that is mounted with the
exec
option and set it as the newTMPDIR
:
export TMPDIR=$HOME/tmp
mkdir $TMPDIR
- Use another directory that is not mounted with the
noexec
option, such as/var/tmp
, as theTMPDIR
:
export TMPDIR=/var/tmp
Once you have made the necessary changes, you should no longer see the “W: TMPDIR is mounted noexec, will not cache run scripts” error.