-
Notifications
You must be signed in to change notification settings - Fork 892
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
Install panic on Ubuntu 20.04 in Windows Subsystem for Linux #2293
Comments
I have the exact same issue. This is probably due to the WSL1 bug mentioned in #2245 and tracked here: microsoft/WSL#4898. Basically newer versions of glibc (such as the one used by Ubuntu 20.04) switched |
This is indeed not something we can fix in |
Failure is same with Ubuntu 20.04 on WSL2. |
@nfwatsoncom are you absolutely sure you're using WSL2? The underlying cause of this bug is the non-linux kernel implementation in WSL, which WSL2 avoids by using an actual Linux kernel. The generally good advice of filing a new bug if your situation doesn't match exactly applies here I think. I'm closing this as a dup of #2245 |
I just updated to the release version of the May 2020 update with WSL2, installed Ubuntu 20.04 and immediately attempted to install rustup. It failed with the following output
|
@Nejat you need to explicitly opt into WSL 2 befire you create your distro, using this command:
It is not enough to just have the update. |
@Diggsey thanks that worked |
How can I fix this and install Rust? I have the same issue. WSL2+Ubuntu20.04 crash in the cargo installation step. |
I believe the |
@Charlie96D Again, are you absolutely sure you're using WSL2? You probably have a WSL1 instance, in which case your solution is to actually use WSL2, which will fix this, or an older glibc, which will also fix this. See the bug that this is a duplicate of. |
Sorry, I had no idea that windows 20.04 comes with wsl2 disabled by default. Everything is ok. |
i also have WSL2 with ubuntu. And the issue persists |
This issue only occurs on wsl1 @steelx run |
@Diggsey I fixed mine with this.
|
@steelx Thx! |
sorry, where are people running the
Edit: this looks relevant, and like I may need to update my Windows version, so I'm trying that first. https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2 |
@EMCain It is just inside the default windows shell. |
Thanks, it worked and Rust became installed on my WSL 2 Ubuntu PS C:\Users\Ivan Boginski> wsl --list -v
|
Problem
Install crashes with a panic on Ubuntu 20.04 in Windows Subsystem for Linux (Version 1)
Steps
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Full log:
Full backtrace from
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | RUST_BACKTRACE=full sh
:The text was updated successfully, but these errors were encountered: