Skip to content

"error: toolchain 'nightly-foo' is not installed" is confusing #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
brson opened this issue Apr 12, 2016 · 9 comments
Open

"error: toolchain 'nightly-foo' is not installed" is confusing #301

brson opened this issue Apr 12, 2016 · 9 comments

Comments

@brson
Copy link
Contributor

brson commented Apr 12, 2016

This "not installed" message happens when the toolchain parser fails to parse the name and then considers it a "custom" toolchain. After that, the operation fails, and the reason is because there is no custom toolchain with that name.

It's confusing though because the user may have typo'd a channel name, not expecting it to be installed.

@Hoverbear
Copy link

This is happening with curl https://sh.rustup.rs -sSf | sh as well on Arch Linux 64bit.

@brson
Copy link
Contributor Author

brson commented Apr 19, 2016

@Hoverbear it happens at install time on arch? That's weird...

@Hoverbear
Copy link

Yes it seems to be working now though. Perhaps it was a connection error.

@gistub
Copy link

gistub commented Apr 21, 2016

I am getting error: toolchain 'nightly' is not installed on two different platforms (OSX, Linux) after I do a curl https://sh.rustup.rs -sSf | sh
Machines are on different networks, so I am guessing connection problem is from rustup.rs server?

Even customizing options and selecting stable produces the same error with nightly message!

@haudan
Copy link

haudan commented Apr 22, 2016

I'm experiencing the same problem as @gistub on my Mac. Here's a screenshot:
image

The tmp.4jb0Iul4 directory doesn't exist after rustup yields the error, so no wonder the command fails.
Is this a problem or does rustup simply remove the directory after it quits?

@brson
Copy link
Contributor Author

brson commented Apr 25, 2016

@Lisoph the non-existence of the files is expected (though certainly annoying for debugging). rustup should probably have a mode where it doesn't clean up temp files.

Well, this is pretty terrible bug. I'll try to look into it soon. Related to #275 and #277.

@kamalmarhubi
Copy link
Contributor

I'm seeing this as well:

error: toolchain 'stable' is not installed
rustup: command failed: /tmp/tmp.jBjZbBTkrb/rustup-init

I was using multirust previously and did not delete any directories.

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

@pauljt
Copy link

pauljt commented Jun 2, 2016

@Lisoph @gistub FWIW I had the issue both of you. I had previously had multirust and I'd following the prompts from rustup to remove metadata prior to installation but I still had the same error. For me, removing the ~/.multirust directory completely, and then re-running rustup-init fixed the problem for me.

@Hoverbear
Copy link

Great digging @pauljt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants