-
Notifications
You must be signed in to change notification settings - Fork 821
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 install WSL from the command prompt #9314
Comments
Thank you for reporting this @itsdoble. Does this reproduce consistently ? Based on the output it looks like an intermittent connection issue. |
As an alternative, I installed Ubuntu app from Windows Store and that worked! |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it. Thank you! |
so what happened did anyone got any solution? |
i got the solution. change your ip address for wifi or cable to google ip address(dns) and be sure to change ipv4 and ipv6 both. after that reinstall wsl. |
I literally had a brief internet connection drop that caused this issue. So check your internet. |
One Windows 10, I am finding that DNS Servers include 2 that are ipv6 addresses. I can open https://raw.githubusercontent.com in my browser, and I can curl it from wsl command line, but from WIndows Command Prompt, wsl --install Ubuntu fails with "Failed to fetch the list distribution". I suspect it all has to do with the DNS Name resolinv gto an IPv6 address that curl and the browser can handle but the wsl subsystem cannot? I just performed wsl --update, so I am on the latest WSL 2. |
Right Answer |
@ViratSrivastava Just change the Preferred DNS and Alternate DNS in your Windows Settings for adapters (Jio) to use Google Public DNS (for both IPv4 and IPv6). Check here Configure your network settings to use Google Public DNS |
Can't believe this was the issue. it works! |
yup it is issue with jio network :) |
Getting error like this what can i do Failed to fetch the list distribution from 'https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json'. A connection with the server could not be established |
CHANGE THE NETWORK AND TRY IT , IT IS NOT WORKING ON JIO NETWORK. |
Make sure you've changed ur ipv4 and ipv6 addresses to Google DNS and it will work even on Jio....or else consider using any other network. |
Try changing the network for me I switched to Airtel from Jio and then enabled Hyper-v and Vm under windows features. Problem was solved |
I had the same problem. I am in Bengaluru and I am using Hathway. turned on my OpenVPN connection, and installed WSL (Ubuntu), and disabled VPN. Everything , like apt from inside ubuntu works just fine, without VPN. |
Its not for Indians alone. If anyone is having issues just follow the instruction on how to change your DNS and it will work. I just did that from Nigerian and it worked |
@DhineshAmbrose I did the same and it worked for me as well. |
Potential Solutions to try:
To Reinstall wsl using CLI: |
So this is clearly a bug that lots of people are hitting. What information is required yet?
DNS seems to be working. |
Version
Microsoft Windows [Version 10.0.22621.819]
WSL Version
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
wsl --list --online
Expected Behavior
it should install list the available distributions.
Actual Behavior
Failed to fetch the list distribution from 'https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json'. A connection with the server could not be established Error code: Wsl/WININET_E_CANNOT_CONNECT
Diagnostic Logs
C:\Users\User\Desktop>qq.bat
"WSL version (Might be help text if store WSL is not installed):"
WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.819
Windows features:
FeatureName
Printing-PrintToPDFServices-Features
Printing-XPSServices-Features
LegacyComponents
DirectPlay
MSRDC-Infrastructure
MicrosoftWindowsPowerShellV2Root
MicrosoftWindowsPowerShellV2
NetFx4-AdvSrvs
NetFx4Extended-ASPNET45
WCF-Services45
WCF-TCP-PortSharing45
NetFx3
MediaPlayback
WindowsMediaPlayer
SearchEngine-Client-Package
WorkFolders-Client
Printing-Foundation-Features
Printing-Foundation-InternetPrinting-Client
HNS objects:
'hnsdiag' is not recognized as an internal or external command,
operable program or batch file.
Routing table:
Interface List
24...d4 5d 64 66 4c a8 ......Realtek PCIe GbE Family Controller #2
7...0a 00 27 00 00 07 ......VirtualBox Host-Only Ethernet Adapter
3...0a 00 27 00 00 03 ......VirtualBox Host-Only Ethernet Adapter #3
9...c8 b2 9b 5d 9e be ......Microsoft Wi-Fi Direct Virtual Adapter #3
17...ca b2 9b 5d 9e bd ......Microsoft Wi-Fi Direct Virtual Adapter #4
22...c8 b2 9b 5d 9e bd ......Intel(R) Wireless-AC 9560 160MHz
1...........................Software Loopback Interface 1
IPv4 Route Table
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.29.1 192.168.29.254 36
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
169.254.0.0 255.255.0.0 On-link 169.254.111.98 281
169.254.0.0 255.255.0.0 On-link 169.254.54.106 281
169.254.54.106 255.255.255.255 On-link 169.254.54.106 281
169.254.111.98 255.255.255.255 On-link 169.254.111.98 281
169.254.255.255 255.255.255.255 On-link 169.254.111.98 281
169.254.255.255 255.255.255.255 On-link 169.254.54.106 281
192.168.29.0 255.255.255.0 On-link 192.168.29.254 291
192.168.29.254 255.255.255.255 On-link 192.168.29.254 291
192.168.29.255 255.255.255.255 On-link 192.168.29.254 291
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 169.254.111.98 281
224.0.0.0 240.0.0.0 On-link 169.254.54.106 281
224.0.0.0 240.0.0.0 On-link 192.168.29.254 291
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 169.254.111.98 281
255.255.255.255 255.255.255.255 On-link 169.254.54.106 281
255.255.255.255 255.255.255.255 On-link 192.168.29.254 291
Persistent Routes:
None
IPv6 Route Table
Active Routes:
If Metric Network Destination Gateway
22 51 ::/0 fe80::7297:41ff:fed5:f35e
1 331 ::1/128 On-link
22 51 2405:201:ac09:d079::/64 On-link
22 291 2405:201:ac09:d079:7ce0:f1b5:5d5:4538/128
On-link
22 291 2405:201:ac09:d079:8542:56:858b:e041/128
On-link
7 281 fe80::/64 On-link
3 281 fe80::/64 On-link
22 291 fe80::/64 On-link
22 291 fe80::3ba4:8383:e415:3d9b/128
On-link
3 281 fe80::9a28:d19c:839:c4af/128
On-link
7 281 fe80::cb8f:d634:aa3b:65b2/128
On-link
1 331 ff00::/8 On-link
7 281 ff00::/8 On-link
3 281 ff00::/8 On-link
22 291 ff00::/8 On-link
Persistent Routes:
None
Deleting HNS network
Get-HnsNetwork : The term 'Get-HnsNetwork' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
The Windows Subsystem for Linux service is stopping.
The Windows Subsystem for Linux service was stopped successfully.
Name : HnsPacketCapture
CaptureMode : SaveToFile
LocalFilePath : C:\Users\User\Desktop\packets.etl
MaxFileSize : 250 MB
TraceBufferSize : 0 KB
MaxNumberOfBuffers : 0
SessionStatus : NotRunning
Name : Microsoft-Windows-NDIS-PacketCapture
SessionName : HnsPacketCapture
Level : 5
MatchAnyKeyword : 0xFFFFFFFFFFFFFFFF
MatchAllKeyword : 0x0
CaptureType : BothPhysicalAndSwitch
VmCaptureDirection : IngressAndEgress
MultiLayer : False
LinkLayerAddress : {}
EtherType : {}
IpAddresses : {}
IpProtocols : {}
TruncationLength : 128
Windows Subsystem for Linux has no installed distributions.
Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install ' to install.
Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND
Press Ctrl+C to cancel the stop operation.
100% [>>>>>>>>>>>>>>>>>>>>>>
The text was updated successfully, but these errors were encountered: