-
Notifications
You must be signed in to change notification settings - Fork 823
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
Unable to upgrade WSL 1 - WSL 2 #5749
Comments
I have the same error, I tried removing WSL, restarting, re-enabling WSL from nothing, upgrade to 2, same error again. |
Same error. I had WSL on my old machine, decided to start fresh on my new laptop (never used WSL at all on it), got the same error, at the same step. |
Hello guys. I tried to install Kali Linux on my laptop (thanks to Microsoft Store), I thought "it will be easier". But isn't HERE THE ERROR ========> The installer encountered an unexpected error while installing this package. This may indicate a problem with this package. The error code is 2502. I didn't mention that I checked the box on Windows Features =====> WSL |
Im not sure but this issue is open for another issue, I would recommend opening another issue. |
A lot of issues... What did you mean? Another task? haha |
I'm saying the issue that we are discussing is not related to your issue and you shouldn't post unrelated issues in this thread. |
Yikes I have the same problem. Googling does not reveal anything more than this issue. Same configuration. haad WSL1 installed as well Virtualization is enabled in BIOS and ran that dism command I have Windows Home on this machine, but the FAQ indicates that is supported Help! |
For Window 10 (bulid 19042.450) PS C:\wsl\Ubuntu2004> wsl --set-default-version 2
please refer the MS links and upgrade the WSL kernel then rerun the wsl set-version command should be fine ! Glad to be heard and feedback |
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 )
|
@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 |
It's easy to verify if kernel exists by command Although |
Installing the kernel worked for me, thanks! Maybe implement that as an error message or at least on the WSL website as an error code that is documented (hence why I chimed in on this post since there was no other documentation for it) Thanks @licanhua |
The kernel install also worked. Thank you! closing this ticket now. |
Agree it's not well documented. This is a bug and I think it is fixed in newest Windows. |
@licanhua Is there a way to check the WSL version just to confirm? Edit: Got it |
Tried re-installing the kernal,it just gives me this message "This update only appiles to machines with the windows subsystem for linux" even tho i have wsl 1 and it's functional. |
I already have installed ubuntu wsl 1 and I wanted to upgrade, so attempting to enter > wsl --set-default-version 2
Error: 0x1bc
For information on key differences with WSL 2 please visit https://aka.ms/wsl2 I attempted upgrading the kernel from https://docs.microsoft.com/en-gb/windows/wsl/wsl2-kernel but the output changed to > wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2 basically the same with no error code. > wsl --set-version ubuntu 2
Conversion in progress, this may take a few minutes... I hope this helps! |
Conversion in progress, this may take a few minutes... |
I am using kali Linux what do I put instead of ubuntu |
The distro name for Kali is
|
I have the same problem, here's my solution: check if you have one or more versions: On command prompt That works for me. See ya. |
@1josh13 the kernel file exists but stil i'm getting this issue( The file path specified does not exisit). Any fixes? |
@nagarajcruze Please create new issue and submit logs. This is a generic error and most of time, it's missing kernel. It's hard to know what's the root cause without log since you already have kernel. |
@licanhua how to take logs? |
@licanhua this link doesn't seems to show ways to generate logs, instead just to screen record? |
For information on key differences with WSL 2 please visit https://aka.ms/wsl2 I downloaded new Ubuntu version from Microsoft Store and installed. That helped me. Please look guide below. ;) |
Hello !
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 ? |
wsl --set-version Ubuntu-20.04 2 just check which version you are installing on |
@mastery-shital-pacharne Thanks for the help but I did a reset to my laptop and fixed it. |
OS: Windows 11 Fixing WSL 1 and Upgrading to WSL 2 It seems if you start with installing a Linux distro in WSL 1 (the default), you need to do some extra steps to clean up. To get things to work: - Download the kernel update libraries from the Microsoft website: After this step, WSL should start working.
To verify that the upgrade was successful, run the following command:
You should see the distro listed with a version of 2. Note: If you prefer to start with a fresh install of Windows and upgrade to WSL v2, that is also an option. |
Environment
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
Then restart the the machine
After restart open new power shell as admin
I'm not sure what to do to reset the wsl environment I had it working with wsl 1.
The text was updated successfully, but these errors were encountered: