WSL: "An address incompatible with the requested protocol was used" error when trying to upgrade distro to WSL2
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:
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
An address incompatible with the requested protocol was used.
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:
Temporary directory: C:\Users\CHRIST~1\AppData\Local\Temp\wsl_Alpine_setup
Downloading : http://dl-cdn.alpinelinux.org/alpine/v3.11/releases/x86_64/alpine-minirootfs-3.11.4-x86_64.tar.gz
To local file : install.tar.gz
The current working directory is: C:\Users\CHRIST~1\AppData\Local\Temp\wsl_Alpine_setup
Error deleting file: No such file or directory
Status code : 32
Finding resource...
Connecting...
Sending request...
Mime type available
Begin download
Cache filename available
100% [====================]
End download
Downloaded OK
Hash of file install.tar.gz is: 47210239fcdd9a1dca72238f13912187cbcf0898fda2d12d4b583781279791e0
Verifying Hash: OK
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007273f
WslRegisterDistribution failed
Error: 0x8007273f An address incompatible with the requested protocol was used.
If I switch the default version back to 1 and try to register Alpine again I get the following:
Temporary directory: C:\Users\CHRIST~1\AppData\Local\Temp\wsl_Alpine_setup
Downloading : http://dl-cdn.alpinelinux.org/alpine/v3.11/releases/x86_64/alpine-minirootfs-3.11.4-x86_64.tar.gz
To local file : install.tar.gz
The current working directory is: C:\Users\CHRIST~1\AppData\Local\Temp\wsl_Alpine_setup
File successfully deleted
Mime type available
Begin download
Cache filename available
100% [====================]
End download
Downloaded OK
Hash of file install.tar.gz is: 47210239fcdd9a1dca72238f13912187cbcf0898fda2d12d4b583781279791e0
Verifying Hash: OK
Installing, this may take a few minutes...
Executing bugfixing command: /bin/chmod 755 /
Executing bugfixing command: /sbin/apk --no-cache add shadow
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
(1/2) Installing linux-pam (1.3.1-r1)
(2/2) Installing shadow (4.7-r1)
Executing busybox-1.31.1-r9.trigger
OK: 8 MiB in 16 packages
Executing bugfixing command: /bin/sed -i 's/^export PATH/#export PATH/' /etc/profile
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
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:
D:\>logman.exe create trace lxcore_service -p "{B99CDB5A-039C-5046-E672-1A0DE0A40211}" -ft 1:00 -rt -o .\lxcore_service.etl -ets
Error:
Type mismatch.
Try running this command as an administrator.
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.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 26
Same error, after update windows.
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):
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -AllRestarted laptop.
As suggested above, I then ran netsh winsock reset from elevated PowerShell before installing any WSL2 distro:
netsh winsock resetClosed 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.
Hi @dyxypyxy, I believe my issue is with Hyper-V as well. Potentially.
I’m on an aging Dell XPS 15 9530.