-
Notifications
You must be signed in to change notification settings - Fork 847
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
Switching to WSL 2 fails with The request is not supported. #4840
Comments
I just tried to install Ubuntu (it will not allow me to install a 2nd version of 18.04???) and got : Installing, this may take a few minutes... |
I removed all WSL installations of linux, rebooted and tried to install Ubuntu-18.04 and all I get is: Thank you Microsoft |
Its been a long day, discovered the online ENGLISH WSL documentation, it mentioned virtual machine, I turned it on and installed another Ubuntu-18.04 and this one worked. It was version 2 but when I compiled the code that took three minutes to compile and link with WSL 1 with WSL 2 it now took 30~45. |
I ran into this error after installing Windows 10 v2004 build 19041.21 in order to get WSL2. I then tried to update the version of my original Ubuntu WSL1 distro which failed with the error below. I unregistered Ubuntu and reinstalled Ubuntu 18.04 LTS from the Windows Store. This took a little while to install but seemed to work. Then, trying to change it to WSL2 it failed again.
|
I solved this by ensuring that Virtual Machine Platform was installed/ticked in Turn Windows features on or off. |
Hopefully this is a related issues. In my case, I am trying to install Ubuntu-20.04 and set the version in WSL 2 to that version.
But Ubuntu tells me I am running the previous version. |
I also had to enable Hyper-V and Hypervisor Plateform in Turn windows feature on/off, after rebooting it finally worked. |
@brucedkyle Your default distributions seems to be 16.04 (asterisk on the left side). Try running wsl with |
Sadly, it seems when the Virtual Machine Platform is enabled, VMware Workstation guests no longer start. Apparently WSL2 and VMWare Workstation cannot coexist on the same host. |
I can confirm that if you remove VMWare Workstation the issue with converting the version in WSL goes away. |
try |
This solution finally seems to have fixed my issue after ages trying to figure out what was wrong. My issue was with WSL2, Ubuntu 20.04.1 LTS, and Cisco Anyconnect |
For those of you wanting to continue to use vmware or other hypervisor technologies that are not hyper-v, just make sure that your wsl settings are configured to use version 1 rather than version 2. Run the below command to determine what version of wsl your machine is configured to use:
You will see something like this most likely: Take note of the default version. If it is 2, then that is why you are getting the error. Just set it to 1, and the problem goes away. This is due to the additional requirements needed to run v2 wsl distributions. To set the status to one, run the below command:
Any new distributions that you install on your system will be installed using version 1 of wsl. For the distributions that already exist on your system, you will need to convert them to version 1. You do this by running the below command:
Hope this helps. |
My WSL stopped working a while ago.
error when trying to launch it from the App Store (do we really need this app store thing?!...). I enabled I tried reinstalling WSL by following the Microsoft guide for manual installation, first with Still no luck. Anything else to try? What does EDIT: Just tried un- and reinstalling as in https://pureinfotech.com/uninstall-wsl2-windows-10/ without success. |
@axsk . Have you tried the steps that I mentioned in my post that is located litteraly right above yours? It details how you can configure wsl to deploy version 1 distributions instead of version 2. That will more likely than not fix your issue. In the event that it does not, I know that another issue that can occur with WSL is when you have compressed the files on your computer. In the event that you have compressed the files on your computer, open windows run prompt and type below command:
This will open windows explorer to the directory you need to look in. Find the folder which contains the distribution you are trying to install, right click the folder, select properties > Advanced Button. In the dialog that pops up, if the check box next to "Compress Contents to save disk space" is checked, then uncheck it and apply those settings to the folder and all files and subdirectories. That should solve that problem |
The good news: WSL1 works Still better then before, thanks. |
Have same question! Resolved:
|
I tried the following procedures but it didn't work for me. down are the screenshot. |
Can you use Your problem is upgrade wsl to wsl2.
Perhaps you can search 0x80041002. |
I have the same issue |
@carsonpowers Thanks mate, nothing else on this thread worked until I found your post. |
I faced the same issue too and I was about to give up. But as mentioned above, there some windows features that must be enabled for anyone wishing to upgrade to wsl 2. Here are these features |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
C:>ver Microsoft Windows [Version 10.0.19546.1000]
I had installed WSL 1 with Ubuntu-18.04 then I joined insiders and it finished installing this morning. I surfed around for a while to find how to get WSL 2 running and found a command line from PS:
PS C:\WINDOWS\system32> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
It finished and I restarted.
From an Admin command prompt I tried:
wsl --set-version Ubuntu-18.04 2
and got the 'Request is not supported' message.
I tried:
PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Path :
Online : True
RestartNeeded : False
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
PS C:\WINDOWS\system32> wsl --set-version Ubuntu-18.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The request is not supported.
The text was updated successfully, but these errors were encountered: