-
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
No internet connection in linux subsystem #241
Comments
It's not unfixable. ICMP is not implemented in Bash On Windows. Refer to #18 I think they're looking into implementing it because of the popularity. The solution right now is to use curl to check network connectivity |
Apt and curl is saying i don't have the internet. |
Sounds like #5 Open up /etc/resolv.conf and see if there is a ipv6 address before the ipv4 address. Remove it or move it below the ipv4 address can sometimes fix it. The other option people have found success with is disabling ipv6 on their network device. |
For some reason resolv.conf was empty. Silly me, I didn't checked it! Thanks, curl and apt now works. |
I added this in /etc/resolv.conf nameserver 8.8.8.8 And works for me. |
@tacnoman well, I have my own DNS server. Anyway, it was my mistake, not thiers. Or... Maybe it's feature request, to copy DNS settings from Windows? |
Okay, so I used bash on windows before and it worked. But after one update and some trobleshooting my internet connection (DHCP settings was wrong) I got this:
And I cannot fix it. I tried completely reinstall with lxrun /uninstall /full and it didn't fixed it. I tried to turn off and on linux subsystem and it didn't fixed it. Any ideas why? Also, it obviously means I don't have internet connection inside linux subsystem.
The text was updated successfully, but these errors were encountered: