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
noexecoption for the/tmpdirectory: This can be done by modifying the/etc/fstabfile and adding theexecoption for the/tmpdirectory. - Create a new temporary directory that is mounted with the
execoption and set it as the newTMPDIR:
export TMPDIR=$HOME/tmp
mkdir $TMPDIR
- Use another directory that is not mounted with the
noexecoption, 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.