-
Notifications
You must be signed in to change notification settings - Fork 859
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
Can't upgrade to WSL2 #4717
Comments
What could prompt the message |
It seems like you're using the version that was shipped back when WSL was just Bash On Ubuntu On Windows. Could you try running |
There are two possible ways.
@sirredbeard Because the "Legacy" distribution uses LxFs i.e. old NTFS extended attributes but the new WSL1 distribution uses WslFs i.e. new NTFS extended attributes. Remember there was an option |
@craigloewen-msft @Biswa96 Ah, the Legacy distribution. Thank you for reminding me about that. |
Thanks so much. The moment I saw anything about WSL I installed it and have been using it ever since. Exactly what I was looking for. Haven't had to change it until now because some Docker madness. I see the export option. Down the rabbit hole.... |
So the export worked. Unregistering Legacy worked. The import failed(twice now) a little while after it starts with the message: "The specified network name is no longer available." I can see it starts to write to a file in the install directory named "ext4.vhdx" but by the time it fails it's deleted it. Thoughts? |
Try to import it as WSL1 with |
I ran it in elevated cmd.exe and it worked :) Thanks though. Let's see how it looks now. |
Anyway, so the cmd.exe install went too fast. I get this when I try to start WSL. The remote procedure call failed. So I unregistered that and tried installing as @Biswa96 suggested. It imported fine -- took much longer, which I interpreted as a good sign.. The upgrade didn't complain. Starting it though failed with the same reason. The remote procedure call failed. I see mention of that error elsewhere, but there doesn't seem to be a fix yet. Any thoughts? |
Downloading the latest Windows build 19033.1 - not sure if it will do anything, but hey, I'm grasping at straws. |
That worked. Thanks all for your help. |
@ctotogo Hello, in order to export user data as well (the ones in Moreover, when importing, does destination distribution need to be initialized? I assume it doesn't. |
In the second question, what do you mean by "initialize"? |
Hello @Biswa96 and thank you for your answer. I'm trying to export all data from Legacy distribution into an Ubuntu one, but my first attempt pruned user folder in About my second question, I'd like to know whether I have to set up the new distribution before importing data or not. |
Interesting... I will try to reporduce that issue. The imported distribution will be as it is before. |
By the way, is there any official guide to migrate from Legacy and keeping all user programs and data? |
Upgrading a distribution is not in WSL realm. I would just move/copy the whole normal user and root user home folder. Then install packages which is previously installed. |
As I stated above, I have to migrate my user from Legacy, not upgrade a distribution. Reinstalling everything is extactly what I don't want to do. |
Not sure if it's still relevant to you, but I also had this issue where the To avoid the disaster of losing all my files I followed this guide to create manual tar archives for my Accidentally, after the export/import/upgrade I've tried to export it again, and this time the |
Correct, export does not traverse mounts and in the Legacy distro the home folder is a separate mount. I suggest backing it up separately. |
@benhillis would be nice if any of the docs re. the |
Followed the wsl import/export approach => home is gone :| |
@black-snow Following https://superuser.com/questions/1185033/what-is-the-home-directory-on-windows-subsystem-for-linux, you can still get your home files in (for initial WSL bash version) For WSL1 distributions installed from the Windows Store: Even after a complete export/import and unregister, I still managed to find my home files (in my case, an old WSL1 bash image) in |
@VonC thanks, but there is no such folder. Nvm, I go from scratch. |
thanks, i had same issue. i did export, then import and it works. it converted into version 2. |
IMO the 2019 @Biswa96 comment above is actively dangerous and should be edited, to warn people should read this entire thread before running the suggested command. :( (Yes, I realize I was probably a fool to run a command with Short version for any remaining Legacy users finding this thread:
|
This left out the home directory for me too. I would've lost all my user data, if it wasn't for @VonC. Can @Biswa96 or @craigloewen-msft PLEASE edit your responses to make a note of this?? Making no mention of this is dangerous. I did verify all my data was exported, but didn't pay attention to the /home folder. Here's what I did to fix it after importing:
|
Hello ---
Have been running WSL for a while. Finally getting around to upgrading to WSL 2 and I'm being told that my distribution doesn't support WSL 2. Here's what I'm seeing.
PS C:\WINDOWS\system32> wsl --list --verbose
NAME STATE VERSION
PS C:\WINDOWS\system32> wsl --set-version Legacy 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 Legacy distribution does not support WSL 2.
Running Ubuntu 19.04 which I upgraded to within Ubuntu itself.
Any ideas on how to move forward -- other than I hope not having to reinstall everything :/ Got it configured just the way I like it.
Thanks so much in advance.
Carlos Abreu
The text was updated successfully, but these errors were encountered: