-
Notifications
You must be signed in to change notification settings - Fork 835
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
"An address incompatible with the requested protocol was used" error when trying to upgrade distro to WSL2 #5215
Comments
Try If it doesn't work then something networking related is impeding WSL2 to run. That error is often related to IPv6 addresses when expecting IPv4. Some AV/Firewall solution or some hosts file entry could be the reason. I'd also try to open network adapter "vEthernet (WSL)" Properties and untick IPv6 protocol. |
More information has been provided through the feedback hub: https://aka.ms/AA8hnlm |
Hi @onomatopellan, thank you for your feedback. Sadly, a This is an entirely fresh v2004 install and I have no entries in my hosts file. I'm just running the standard Microsoft Security suite. You mention the "vEthernet (WSL)" adapter. I'm not able to find named anything remotely similar to this anywhere on my system. |
It looks like Hyper-V didn't create the virtual network adapter. Also look if there is some error in Event Viewer -> Applications and Services -> Microsoft -> Windows -> HyperV-VmSwitch-> Operational |
Hi @onomatopellan I think you're on to something here. The listed adapters shown via the PowerShell command is as I wrote in my last post. The output is:
Looking at the list of activated features I see that none of the Hyper-V components are added. However, are they required? I thought that WSL2 was run of off the VirtualMachinePlatform component instead? |
I've added the Hyper-V feature. Almost needless to say, but there's no warnings in Event Viewer for HyperV-VmSwitch.
|
Sorry, I just checked and indeed "vEthernet (WSL)" exists during the entire session but after restarting Windows it disappears and it's created again when installing/launching a WSL2 distro. So it's normal it doesn't appear yet in your list of network adapters. I don't know why would it show that 0x8007273f error in a fresh install. Let's wait for the team to see something on the logs. I do know some user had problems with intel WIFI Nic though. Make sure you have the latest driver available. #4253 |
Hi @onomatopellan, thank you for checking. That might solve the mystery of the missing NIC. I did actually have a pending driver update to my Intel NIC. A small one. I've installed it and I'm now on 21.80.2.1 which should be the latest available. All the issues I've reported up until now are still there and behaving exactly like before. Thanks for taking your time to help with this. |
Just a quick update. Did a fresh install of v2004 after it went live. Followed the guide once again. Again, I manage to add WSL and the VirtualMachinePlatform features without any issues. The kernel update also installs just fine. This time, with no installed distros beforehand, the
So it's reproducible even after reinstalling Windows. |
I am stuck with the same issue, but with Hyper-V, let's see if Docker team has a solution for this. @chraaroe just one question, which computer are you running Docker on? I have a Dell Latitude 5400. |
Hi @dyxypyxy, I believe my issue is with Hyper-V as well. Potentially. I'm on an aging Dell XPS 15 9530. |
Closing this issue. Just did a fresh install today with the latest updates incorporated. It seems I'm now able to use all distros with WSL2 now. I have no idea what caused the original issue just as I have no idea what has made the issue disappear. I've done nothing different with this install. |
Hi guys Out of nowhere I've got exactly the same issue with WSL2. First the bash was not found, after that I tried to install a new distro and since then I've got the following error message: WslRegisterDistribution failed with error: 0x8007273f Unfortunately you don't know how it disappeared :D Now I've got no idea how to fix it... I opened a new Issue :) #7183 |
Same issue. But it helped: #7183 (comment) |
This is an issue and should not have been closed. WSL2 is really broken for some reason and need to be fixed. Either there are a Windows update that did break it, or it is the WSL2 it self that is broken. |
Same issue. WSL2 is broken. |
same error. fresh installed windows, fresh installed distro. |
Same error, |
Same error, after update windows. |
WSL2 is broken for me as well |
For me too. Thanks @fschramka for opening a new issue! |
Same here |
Same error, after update windows. |
Same error, didn't find the effective solution |
Issue is there on a fresh install of Windows 10 LTSC 2021 too. |
I was able to resolve this issue on my end! Had this same error, so I wiped my laptop clean of WSL and Ubuntu. Reinstalled both and ensured Hyper-V was installed on my corporate Windows 10 laptop (see doc): Restarted laptop. As suggested above, I then ran netsh winsock reset from elevated PowerShell before installing any WSL2 distro: Closed out of all Ubuntu instances, then reopened Ubuntu and it was in working order! Not sure which part was the fix - I tried many other solutions to no avail (reinstalled many times, upgraded wsl version, etc.) - but the workflow above seemed to help me get it back to working condition. |
Your Windows build number:
Microsoft Windows [Version 10.0.19041.264]
What you're doing and what's happening:
I followed the guide to upgrading to WSL2. No errors observed in following the official guide.
I now have an Ubuntu distro which I want to upgrade to WSL2. By Issuing the
wsl --set-version Ubuntu 2
command I immediately receive the following error:The distro works just fine. No issues to report on that front.
I have set the WSL default version to 2. If I then try to register a new distro, e.g. Alpine WSL from the Microsoft Store, I get the following error:
If I switch the default version back to 1 and try to register Alpine again I get the following:
Before being allowed to set up my user.
What's wrong / what should be happening instead:
Unable to upgrade current distros to WSL2 nor install new distro with default version set to 2. Running current WSL1 distros works just fine as well as registering new distro with version 1.
For WSL launch issues, please [collect detailed logs]:
I'm unable to attach any detailed logs - all of the 3 commands to start the logging return the following error:
I've made sure to check it in both PowerShell and a old-school cmd prompt. I'm sure that they are both run with administrator privileges.
The text was updated successfully, but these errors were encountered: