Problem
Installation scripts don't work on ubuntu 20
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
mktemp: too few X's in template ‘rustup’
rustup: command failed: mktemp -d -t rustup
info: downloading installer
mkdir: cannot create directory ‘’: No such file or directory
rustup: command failed: mkdir -p
$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Steps
$mktemp -d -t rustup
mktemp: too few X's in template ‘rustup’
$type -a mktemp
mktemp is /usr/bin/mktemp
mktemp is /bin/mktemp
Possible Solution(s)
Create the temporary directory based on template rustup-XXX
Problem
Installation scripts don't work on ubuntu 20
Steps
Possible Solution(s)
Create the temporary directory based on template
rustup-XXX