Juliaup installer fails on AWS: "cannot open /dev/pts/1: Permission denied"

After ssh-ing into an AWS instance (I’m new to AWS), I’m attempting to install juliaup with the standard script curl -fsSL https://install.julialang.org | sh, but am met with

sh: 148: cannot open /dev/pts/1: Permission denied

Naturally, I sudo it with curl -fsSL https://install.julialang.org | sudo sh which successfully begins the interactive installer, but then, well, it’s trying to install it for the root user i.e. add .julia under root and modify .bashrc entries for root instead of me.

I tried specifying the install path using the flags with sudo but then it still asks if I want to modify the shell init scripts e.g. .bashrc, but I don’t want to modify those for the root user.

Could I just use the binary? Yes, but I don’t want to.

Offending line is

need_tty is set at

So either pass -y if you’re happy with the default options, or pass the extra arguments as explained in the README.

1 Like

If I’m reading that code correctly, passing all the options manually won’t actually change the value of need_tty, right? IIUC, only --help or --yes causes need_tty to be set to no.

@NonDairyNeutrino Is this inside a fresh EC2 instance, or have you made any modifications? Which AMI are you using? If you can share the AMI you’re using, I can try to reproduce it.