Skip to content

mktemp: too few X's in template ‘rustup’ #2553

@flier

Description

@flier

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions