WSL: Unable to upgrade WSL 1 - WSL 2
Environment
Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL]
Whether the issue is on WSL 2 and/or WSL 1: [run `cat /proc/version` in WSL]
Windows - Version10.0.19041 Build 19041 WSL - Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #1-Microsoft Fri Dec 06 14:06:00 PST 2019
Virtualization is enabled via BIOS
Steps to reproduce
$ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Deployment Image Servicing and Management tool
Version: 10.0.19041.329
Image Version: 10.0.19041.450
Enabling feature(s)
[==========================100.0%==========================]
Then restart the the machine
After restart open new power shell as admin
wsl --set-default-version 2
Error: 0x1bc
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
I’m not sure what to do to reset the wsl environment I had it working with wsl 1.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 17
- Comments: 31
I already have installed ubuntu wsl 1 and I wanted to upgrade, so attempting to enter
wsl --set-default-version 2was showing:I attempted upgrading the kernel from https://docs.microsoft.com/en-gb/windows/wsl/wsl2-kernel but the output changed to
basically the same with no error code. The fix I ran the recommended command but for a specific distro like this:
I hope this helps!
Error: 0x1bchere means:WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel. I think your display language or local setting is not English, and that’s why you see the error code other than message itself.It’s easy to verify if kernel exists by command
dir %SystemRoot%\system32\lxss\tools\kernel. If kernel doesn’t exist, please install it byhttps://aka.ms/wsl2kernelIf you download and installed the .msi successfully, but you still didn’t see kernel file in %SystemRoot%\system32\lxss\tools. It’s possible that you didn’t install the .msi with admin. Uninstall it and reinstall it admin permission.Although
wsl --set-default-version 2with this error, actually the default version is changed to 2 already. When you install the distro from store, it will see it’s version 2. Of course, because kernel is missing, you still not able to launch the distro and complete the setup process.For Window 10 (bulid 19042.450)
PS C:\wsl\Ubuntu2004> wsl --set-default-version 2 Error: 0x1bc For information on key differences with WSL 2 please visit https://aka.ms/wsl2 PS C:\wsl\Ubuntu2004> wsl --list --verbose
please refer the MS links and upgrade the WSL kernel then rerun the wsl set-version command should be fine ! https://docs.microsoft.com/ja-jp/windows/wsl/wsl2-kernel
Glad to be heard and feedback -Eric
I have the same problem, here’s my solution:
check if you have one or more versions: On command prompt
Now convert all versions to wsl 2: On command prompt 
wls -l -vwsl --set-version <NAME> 2That works for me.
See ya.
@mastery-shital-pacharne Thanks for the help but I did a reset to my laptop and fixed it.
wsl --set-version Ubuntu-20.04 2 wsl --set-version Ubuntu-18.04 2
just check which version you are installing on and it will work
@richtong: I got the same message without the error code, but when I went and installed Alpine Linux for WSL, it properly set it up as version 2, so I think it worked just fine. My problem is solved. For those who don’t want to manually fix the URL locale, the U.S. English version of Eric’s link is https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
ok i did the kernel upgrade and it now says, the same message but without the error code, so didn’t work for me.
Sent via Superhuman ( https://sprh.mn/?vip=rich@tongfamily.com )
Hello ! It’s clear: a team of incompetents who don’t know how to make a virtual machine and a linux on windows properly. At least, why don’t you answer the questions ?! If you can answer my question, I withdraw my comment: I installed wsl kernel, but when I tell him where it is, he can’t find it:
and I follow all the steps, but when I give wsl --set-default-version 2, I no longer have kali-linux installed. Why is this happening ? And I want to remind you that you may think me wrong: I HAVE ACTIVATED EVERYTHING NECESSARY !!!
@1josh13 the kernel file exists but stil i’m getting this issue( The file path specified does not exisit). Any fixes?
Conversion in progress, this may take a few minutes… For information on key differences with WSL 2 please visit https://aka.ms/wsl2