microsoft / WSL

Issues found on WSL

Home Page:https://docs.microsoft.com/windows/wsl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No connectivity from Bash to internet?

robertsmieja opened this issue · comments

Running apt-get update returns the following:

root@localhost:~# apt-get update
Err http://archive.ubuntu.com trusty InRelease

Err http://archive.ubuntu.com trusty-updates InRelease

Err http://security.ubuntu.com trusty-security InRelease

Err http://archive.ubuntu.com trusty Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
  Could not resolve 'security.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Could not resolve 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@localhost:~#

Running curl also doesn't seem to work:

root@localhost:~# curl www.microsoft.com
curl: (6) Could not resolve host: www.microsoft.com

I'm running Bash as an Admin.

My Windows 10 Pro Insider Preview Build Number:
Build 14316.rs1_release.160402-2217

Thank you for reporting. This is probably your /etc/resolv.conf file not being generated correctly. Any chance you can take a look at it's contents and compare the DNS servers with ipconfig /all at the cmd prompt?

Also, a couple of questions:

  1. What is your network connection (wifi / wired)?
  2. Are you on a VPN?

If you're on wifi, can you try and switch to a different network and back? If not, try uninstalling through "lxrun /uninstall" and reinstall in Bash.

Let me know if any of the above work. I will also be writing a bug on our side for this.

I'm on a Wired Connection, without VPN. I do have an IPv6 enabled router/modem, and am using NAT.

vi /etc/resolv.conf results in the following:

nameserver 2601:19c:4500:5e6b::1
nameserver 192.168.1.1

ipconfig /all results in the following (I snipped a bit, let me know if there's something I left out):

...
Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : 50-E5-49-C0-2E-8D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::5d3f:33a2:3c2a:b36%6(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.120(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, April 06, 2016 9:32:39 PM
   Lease Expires . . . . . . . . . . : Thursday, April 07, 2016 9:32:40 PM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 38856009
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-62-CD-F4-50-E5-49-C0-2E-8D
   DNS Servers . . . . . . . . . . . : 2601:19c:4500:5e6b::1
                                       192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
...

Running the following didn't result in any changes:

lxrun /uninstall /full
bash
curl www.microsoft.com

One more "fun" thing to report, here's the output from nslookup www.microsoft.com :

C:\Users\Robert>bash
root@localhost:/mnt/c/Users/Robert# nslookup www.microsoft.com
socket.c:2447: setsockopt(20, SO_TIMESTAMP) failed: Invalid argument
socket.c:2476: setsockopt(20, IPV6_RECVPKTINFO) failed: Invalid argument
socket.c:1915: internal_send: 2601:19c:4500:5e6b::1#53: Invalid argument
socket.c:2447: setsockopt(21, SO_TIMESTAMP) failed: Invalid argument
socket.c:1915: internal_send: 192.168.1.1#53: Invalid argument
socket.c:1915: internal_send: 2601:19c:4500:5e6b::1#53: Invalid argument
socket.c:1915: internal_send: 192.168.1.1#53: Invalid argument
socket.c:1915: internal_send: 2601:19c:4500:5e6b::1#53: Invalid argument
socket.c:1915: internal_send: 192.168.1.1#53: Invalid argument
;; connection timed out; no servers could be reached

Thanks. Sending this off to the dev team to take a look.

@robertsmieja. one more question. Any chance you can send me the rest of your ipconfig /all? If you don't want to post feel free to DM it to @richturn_ms. Just tell him it's for me.

Here's the rest. I think the only identifiable info in it is my MAC address which I already shared. Whoops.

C:\Users\Robert>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : RSMIEJA-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : 50-E5-49-C0-2E-8D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::5d3f:33a2:3c2a:b36%6(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.120(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, April 06, 2016 9:32:39 PM
   Lease Expires . . . . . . . . . . : Thursday, April 07, 2016 9:32:39 PM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 38856009
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-62-CD-F4-50-E5-49-C0-2E-8D
   DNS Servers . . . . . . . . . . . : 2601:19c:4500:5e6b::1
                                       192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:3846:24b0:b6bb:bdbb(Preferred)
   Link-local IPv6 Address . . . . . : fe80::3846:24b0:b6bb:bdbb%11(Preferred)
   Default Gateway . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 117440512
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-62-CD-F4-50-E5-49-C0-2E-8D
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{728EBB16-D2DC-480E-B2FB-9E90BC0AC5D9}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Out-of-the-box I had apt-get update etc working just fine on my machine. No VPN, no wireless, ethernet hardline, but I do have the Hyper-V and VirtualBox virtual bridging interfaces.

Well if I had to take a guess, there's an error creating a socket so I have 0 network connectivity. It could be a "driver" issue where the Ubuntu distro doesn't have the driver for my network card, or something to that effect.

What's suspicious is that it's complaining about "invalid argument" for the setsockopt function call in socket.c, where the call "setsockopt(20, SO_TIMEOUT)" appears to be missing one argument, according to documentation: http://man7.org/linux/man-pages/man7/socket.7.html


Here's the ifconfig and ll /proc/net/ output, which may be useful:

root@localhost:~# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
root@localhost:/proc/net# ll /proc/net
total 0
dr-xr-xr-x 1 root root 0 Apr  7 06:37 ./
dr-xr-xr-x 1 root root 0 Apr  7 06:37 ../
-r--r--r-- 1 root root 0 Apr  7 06:37 if_inet6
-r--r--r-- 1 root root 0 Apr  7 06:37 netlink
-r--r--r-- 1 root root 0 Apr  7 06:37 tcp
-r--r--r-- 1 root root 0 Apr  7 06:37 tcp6
-r--r--r-- 1 root root 0 Apr  7 06:37 udp
-r--r--r-- 1 root root 0 Apr  7 06:37 udp6
dr-xr-xr-x 1 root root 0 Apr  7 06:37 xt_qtaguid/

I have the same problem if I leave the ipv6 nameserver first in /etc/resolv.conf. Removing (or moving it to the last line) makes resolving work for me.

@jernejs good call. My working scenario is IPv4-only, without any IPv6 internet connectivity.

Same problem here, no internet connectivity.

root@localhost:/# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.

Here I'm pinging my gateway:

root@localhost:/# ping 192.168.2.254
ping: icmp open socket: Socket type not supported

I'm on a wired internet connection and disabled the Hyper-V bridge just in case. No VPN.

Here I'm trying to reset the network:

root@localhost:/# service networking restart
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: No such file or directory
 * Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces
 * Reconfiguring network interfaces...
ifdown: failed to open lockfile /run/network/.ifstate.lock: No such file or directory
ifup: failed to open lockfile /run/network/ifstate.lo: No such file or directory

And for the record, I run Ubuntu as well on this machine (dual boot) and it never has problems recognizing my network interface card.

Any suggestions? I'm so happy with this feature. :)

I have same symptoms as @jacqinthebox but I am able to install packages with apt and access internet with links

I got networking working on mine by disabling my AV's firewall. That won't fix all networking applications, but it'll get apt-get working.

I can also confirm that disabling firewall in Bitdefender solved this for me. I tried also with allowing bash.exe through but didn't work so i'm assuming some other services need to be allowed through firewall. So for now have it disabled and using windows firewall and everything ok.

Images from BfW seem to be completely separate from normal Windows processes. They do exist, and they don't show up in the task manager, but you can see them in the resource monitor.

For example, in the below screenshot, you can see an image named http, which shows up when I run apt-get update.


Even more curious:

root@localhost:/mnt/c/Users/-gdude2002# http
The program 'http' is currently not installed. You can install it by typing:
apt-get install httpie

I am running Win10 build 14316 inside VMWare on Ubuntu 15.10 host OS. VMWare networking is configured as Bridged for Win10 guest OS. LAN situation on this PC is ethernet-based.

MS Bash did not correctly generate /etc/resolv.conf, it was totally empty. I had to add a simple nameserver 192.168.1.254 (my home router) in order to get it working. I'm also attaching the output from ipconfig /all (with snipped MAC address) if that helps.
ipconfig-output.txt

Oh, right, I should point out that I'm running bare metal here.

Thanks @thanosk, I can confirm apt-get update is working now as well now after adding the nameserver to /etc/resolv.conf.

The regular Linux network troubleshooting commands I tried result in rather cryptic output in this enviroment, so I was on the wrong track thinking it was a hardware problem.

Same problem here, running on native hardware (thanks thanosk for the vmware users but that did not work here).
Using a "Killer e2200 ethernet" interface, popular amongs gamers. Already had complications with it
and windows.

Nice to see that project btw, will be glad to participate more.

@jolibert Does apt-get update work for you, or does it hang?

My bad, it works with update. Thank you,
cat > /etc/resolv.confseems the solution.

@jolibert It seems that only certain types of sockets are working at the moment, that's why I asked. No ping yet, unfortunately. apt-get seems to be working properly though.

@gdude2002 Linux reflex, if no icmp (or ping) then all is wrong. Thank you.

Same here, no connection to archive.ubuntu.com. Had to remove fritz.box and some 10.xxx.xxx.xxx entries from resolv.conf to make it work.

@poddr Did you try the suggestions in the rest of this issue?

Yes, and worked for me.

So I spent ages investigating this by looking in what turned out to be the wrong direction. DNS lookups using the default BIND tools don't work regardless of the DNS server used. For example:

root@localhost:~# dig archive.ubuntu.com @8.8.8.8
socket.c:2447: setsockopt(20, SO_TIMESTAMP) failed: Invalid argument
socket.c:1915: internal_send: 8.8.8.8#53: Invalid argument
socket.c:1915: internal_send: 8.8.8.8#53: Invalid argument
socket.c:1915: internal_send: 8.8.8.8#53: Invalid argument

Forcing TCP gives a slightly different error:

root@localhost:~# dig +tcp archive.ubuntu.com @8.8.8.8
socket.c:1915: internal_send: 8.8.8.8#53: Invalid argument
;; communications error to 8.8.8.8#53: end of file

So at first this seemed like DNS connections simply wouldn't work at all, even when specifying a known-good DNS server.

But! I eventually noticed that adding the address of my local DNS server to /etc/resolv.conf did work - in the sense that DNS lookups in applications (presumably using the glibc stub resover) would succeed, but BIND tools like host and dig still don't. It took me a while to realise this given that my usual diagnostic tools for DNS issues are the things that are in fact broken.

I did try to investigate a little further, but I didn't get very far. I doubt this is illuminating, but just in case:

root@localhost:~# strace -e trace=network dig -4 +tcp archive.ubuntu.com @8.8.8.8
strace: Test for PTRACE_O_TRACESYSGOOD failed, giving up using this feature.
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 3
getsockname(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
socket(PF_LOCAL, SOCK_STREAM, 0) = 3
socket.c:1915: internal_send: 8.8.8.8#53: Invalid argument
;; communications error to 8.8.8.8#53: end of file
--- SIGTERM {si_signo=SIGTERM, si_code=SI_TKILL, si_pid=1081, si_uid=0} ---
strace: ptrace(PTRACE_SYSCALL,pid:1081,sig:15): Invalid argument
Process 1081 detached

The thing that's confusing me is that AFAICT socket.c:1915 is only reachable as a result of "sendmsg(sock->fd, &msghdr, 0);", if it returns an error - but the strace doesn't show sendmsg being called at all, so I'm not sure what's going on.

Anyway, I'm moving on now, because it turns out there are alternatives: apt-get install knot-dnsutils knot-host replaces the BIND utils with the Knot DNS ones that work.

Last night I tried editing the /etc/resolv.conf but all of my changes were reverted, didn't take effect, or had no impact.

Today I was able to run the following without any error or Windows updates :

lxrun /uninstall /full
bash
curl www.microsoft.com

I'm confident that this issue is now fixed and can be closed.

EDIT: Nevermind, it just broke. I have no idea why it worked temporarily. More interesting output:

root@localhost:/mnt/c/Users/Robert# ping 192.168.1.1
ping: icmp open socket: Socket type not supported

I'm also running into the same issue on build 14316, bash is unable to do any commands that use the internet: curl, git clone, apt-get, etc. I allowed bash through my Bitdefender firewall but that hasn't solved it yet either.

@Gingernaut Allowing bash through the firewall is not good enough, you need to disable it entirely. The bash launcher is not the process that deals with networking, but nobody knows what exactly to allow at the moment.

Big thanks to @thanosk. After adding a nameserver 192.168.0.1 (which is ip of my router), apt-get started to work correctly.
So, I confirm bug with socket.c:1915: internal_send: 8.8.8.8#53: Invalid argument caused by incorrect generation of /etc/resolv.conf

I don't even have a /etc/resolv.conf file at all and running ifconfig gives me this:

root@localhost:/etc# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.

@tommck, have you tried lxrun /uninstall and then lxrun /install?

Turning off the firewall altogether resolved my issues, thanks @gdude2002.

@AndrewAndreev
root@localhost:/etc# lxrun /uninstall
lxrun: command not found

@tommck Do it outside bash, lol. You can't uninstall something you're using.

OK, I have no idea what lxrun is.. I guess it's the linux stuff.. makes sense

OK, tried that.. made no difference

I got the same problem with connectivity. I edit /etc/resolv.conf and added first IP-router and voilá!
Scenario was wired, /etc/resolv.conf created with DNS and local interfaces (HyperV), but not able to connect to internet.
The problem is /etc/resolv.conf is changed during session, and permanent changes are not persisted #93

I even tried lxrun /uninstall /full and reinstalled.. same problem.

Thanks for sharing. We investigated this issue and found that for machines where the first entry on the DNS list was an IPv6 DNS entry that lacked a route DNS lookup fails. Apparently glibc cycles through the first three entries in the resolv.conf file but this is only true when the nameserver returns success but zero records (doesn’t know how to resolve the name). We will work towards a more graceful solution here and post an update when we have a build with the fix released.

The reason manually editing the /etc/resolv.conf does not persist is because we recreate it during instance creation.

I got the same problem with connectivity. My /etc/resolv.conf was empty. Editing it and adding the line "nameserver 192.168.1.1" solved my issues with apt-get not working. Ping still not working.

@boulund Can you please share your ipconfig /all with me? A completely empty resolv.conf indicates a generation bug on our side which is separate from the IPv6 issue I mentioned earlier.

The reason ping is not working is known, we have not yet implemented ICMP sockets. Given the general interest we will certainly look into this.

@dethoma Sure! Here goes:

C:\Users\Fredrik>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Megalith
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : lan

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : 20-CF-30-EC-57-E2
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::55e6:ace1:14d4:dbe7%7(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.139(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : den 10 april 2016 08:58:14
   Lease Expires . . . . . . . . . . : den 11 april 2016 08:58:13
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 52481840
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-12-1D-BA-20-CF-30-EC-57-E2
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6abd:1440:b15:ac07:2e5b(Preferred)
   Link-local IPv6 Address . . . . . : fe80::1440:b15:ac07:2e5b%11(Preferred)
   Default Gateway . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 150994944
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-12-1D-BA-20-CF-30-EC-57-E2
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.lan:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Yeah I noticed ICMP sockets weren't working and saw other people's reports. No biggie for me really, I don't really need them. Ping is one of my first GOTOs for debugging network problems on Linux though :).

On my system which runs bitdefender as AV and firewall it is required to disable the firewall completely to get a network connection from within bash

commented

It is required to disable the Bitdefender firewall in order to get network connection in bash. However, ICMP packets are still not working.

Thanks

I believe ICMP ping won't work because raw sockets aren't supported.

use curl example.com as a better test of network connectivity for now.

Confirmed that if there's a IPv6 address in the first lines of the /etc/resolv.conf file then it doesn't automatically continue to the next DNS host.

Got the same issue with connectivity.

Here is my ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : DESKTOP-5DCIVPU
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : NetFaster.IAD

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : NetFaster.IAD
   Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter
   Physical Address. . . . . . . . . : 00-15-5D-02-49-0F
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::6d5d:39bb:ec37:2388%8(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.2.76(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Δευτέρα, 11 Απριλίου 2016 15:09:28
   Lease Expires . . . . . . . . . . : Πέμπτη, 18 Μαΐου 2152 22:31:09
   Default Gateway . . . . . . . . . : 192.168.2.1
   DHCP Server . . . . . . . . . . . : 192.168.2.1
   DHCPv6 IAID . . . . . . . . . . . : 33559901
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-97-DE-83-00-15-5D-02-49-0F
   DNS Servers . . . . . . . . . . . : 192.168.2.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.NetFaster.IAD:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : NetFaster.IAD
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6abd:1ca1:2b99:a62d:bf71(Preferred)
   Link-local IPv6 Address . . . . . : fe80::1ca1:2b99:a62d:bf71%4(Preferred)
   Default Gateway . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 134217728
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-97-DE-83-00-15-5D-02-49-0F
   NetBIOS over Tcpip. . . . . . . . : Disabled

and the generated resolv.conf was:

nameserver fec0:0:0:ffff::1
nameserver fec0:0:0:ffff::2
nameserver fec0:0:0:ffff::3

When i changed the content of resolv.conf to:

nameserver 192.168.2.1

wget, apt-get started to work but not ping.

For me it was my firewall from GData Antivirus. Just uninstalled, works

Hi, I also got this issue.
Here is my ipconfig /all :

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Luqman-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : 30-85-A9-2B-66-F0
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 1E-85-DE-3A-BD-46
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Qualcomm Atheros AR9485WB-EG Wireless Network Adapter
   Physical Address. . . . . . . . . : DC-85-DE-3A-BD-46
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::4009:7825:43cf:8d29%6(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.100.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Selasa, 12 April 2016 10.29.08
   Lease Expires . . . . . . . . . . : Jumat, 15 April 2016 10.29.08
   Default Gateway . . . . . . . . . : fe80::1%6
                                       192.168.100.1
   DHCP Server . . . . . . . . . . . : 192.168.100.1
   DHCPv6 IAID . . . . . . . . . . . : 81561054
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-9B-32-26-30-85-A9-2B-66-F0   DNS Servers . . . . . . . . . . . : fe80::1%6
                                       192.168.100.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : DC-85-DE-3C-43-E6
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{3CD99C90-6949-4D0B-8315-F0E822B787E7}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:2828:333d:98d0:78b8(Preferred)
   Link-local IPv6 Address . . . . . : fe80::2828:333d:98d0:78b8%7(Preferred)
   Default Gateway . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 503316480
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-9B-32-26-30-85-A9-2B-66-F0   NetBIOS over Tcpip. . . . . . . . : Disabled

and here is the generated /etc/resolv.conf on my machine :

nameserver fe80::1
nameserver 192.168.100.1
nameserver fec0:0:0:ffff::1
nameserver fec0:0:0:ffff::2
nameserver fec0:0:0:ffff::3
nameserver fec0:0:0:ffff::1
nameserver fec0:0:0:ffff::2
nameserver fec0:0:0:ffff::3
nameserver fec0:0:0:ffff::1
nameserver fec0:0:0:ffff::2
nameserver fec0:0:0:ffff::3

I manage to get it to work by removing anything but the nameserver 192.168.100.1 line.

Hope this help :)

commented

Similar issue for me. Running Ubuntu 15.10 on hardware. I have windows 10 running in a virtualbox VM (VB Version 5.0.14) using a NAT for networking. Installed the latest build via the fast ring. Installed Bash. But Bash had no network access. I had no entries in my /ect/resolv.conf. I manually added our internal DNS servers and Bash was happy. Have since restarted windows and bash shell and nameserver stay in /ect/resolv.conf.

Here is my ipconfig /all from my VM. (As a note I have IPv6 turned off on the NIC in the VM since we don't use it internally on our network anywhere)

Windows IP Configuration
   Host Name . . . . . . . . . . . . : <removed>
   Primary Dns Suffix  . . . . . . . : <removed>
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : <removed>
Ethernet adapter Ethernet:
   Connection-specific DNS Suffix  . : <Removed>
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-B7-CD-38
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, April 12, 2016 2:00:28 PM
   Lease Expires . . . . . . . . . . : Wednesday, April 13, 2016 2:00:28 PM
   Default Gateway . . . . . . . . . : 10.0.2.2
   DHCP Server . . . . . . . . . . . : 10.0.2.2
   DNS Servers . . . . . . . . . . . : 10.0.2.3
   NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.<removed>:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : <removed>
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

I originally had this issue and it was caused by a bogus list of resolvers in /etc/resolv.conf, as @russalex states. Deleting the erroneous entries fixed DNS resolution.

Not being able to use standard tools like dig, ping or ip makes troubleshooting basic issues like this very frustrating.

There are two separate issues we found

  1. IPv6 entries persisting on top of /etc/resolv.conf that did not have a working route
  2. Single DNS entries that were lost when we wrote /etc/resolv.conf out to file due to an "off by one" error on our part. This resulted in /etc/resolv.conf files with zero entries.

We are working on addressing both these issues in a future insider release.

I guess my problem must be something different, since nothing I do to resolv.conf has any effect at all

@tommck changes you make to resolv.conf don't persist since we overwrite it on next instance launch.

@dethoma that was not the issue. I actually just got it to work..

I had uninstalled/reinstalled MANY times with lxrun /uninstall (sometimes with /full) and /install, but this time I:

  • opened up "Turn Windows Features on & off"
  • and unchecked the "Windows Subsystem for Linux (Beta)"
  • rebooted
  • re-checked "Windows Subsystem for Linux (Beta)"
  • rebooted
  • ran "bash"
  • added valid entries to resolv.conf

This is actually working for me now

Had the same issue with network connection not working. But adding my routers ip to /etc/resolv.conffixed that. So now apt-get and curl works. Ping still doesn't.

@dethoma my resolv.conf does persist. I tried both closing down bash and even rebooting windows, still works fine. My file was empty from the start, no ipv6 address there from the beginning if that is any help.

Thanks for the explanation @afridlund85. The reason it is persisting for you is because we could not write anything to it thanks to the "off by one" bug I mentioned before. Our design currently is to overwrite it whenever we receive a network change notification event.

I had the same issue in a virtualbox VM. I changed the network adapter from NAT to bridged, set /etc/resolv.conf to:
nameserver 8.8.8.8

And it works for me now.

commented

For me deactivating antivirus software helped.

Also having networking issues. apt-get, curl, and wget work fine. However, when running airmon-ng I am getting no results:

root@localhost:~# airmon-ng


Interface       Chipset         Driver


root@localhost:~#

And when running ifconfig I receive the following:

root@localhost:~# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
root@localhost:~#

ping also does not work.

From lspci I'm getting:

root@localhost:~# lspci
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
root@localhost:~#

I commented out the first line referencing an IPV6 address in my /etc/resolv.conf and was able to run apt-get just fine.

Had a blank /etc/resolv.conf get generated. Adding nameserver xxx.xxx.xx.xx fixed it for me, where the x's are simply the DNS nameserver entry from ipconfig in the normal Windows command prompt.

@kazi11 - Sorry about the inconvenience caused by empty resolv.conf. We have hardened our logic to generate a more sane resolv.conf and that change is making its way up to the flighting. Keep the feedback coming!

@sunilmut - Excellent!

Unrelated, but is there any chance you can get X forwarding to work with ssh (#187)? All I get is Error: Can't open display: :0.0. That's my real motivation here... takes the fun out of having bash on Windows if I can't ssh -X 😞

commented

You need a local X server running as a target for X forwarding.

I also have Bitdefender and it works when I disable its firewall just adding a rule for bash.exe doesn't do the trick unfortunately.

Does bitdefender allow you to open up specific ports? The actual process doing the network communication won't be bash.exe it will be the lightweight ELF process.

Bitdefender firewall does allow to open up specific ports. Question is which ports are required?

Yes it is Bitdefender. But how can we solve this problem. But if you disable the firewall you can connect but you get this: WARNING: The following packages cannot be authenticated!.

I just wanted to throw my two cents in from what I've experienced so far.

  • I couldn't ping/ifconfig/wget/apt-get or anything after first enabling bash
  • I added an entry into /etc/resolv.conf (it had nothing it in), this didn't resolve the issue at all
  • I disabled local Windows Firewall, this didn't resolve the issue at all
  • I got a coffee, came back and I could use apt-get, ping/ifconfig still come up with the errors below

My errors on ping/ifconfig:

root@localhost:/mnt/c# ping 8.8.8.8
ping: icmp open socket: Socket type not supported
root@localhost:/mnt/c# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.

My ipconfig /all:

Windows IP Configuration

Host Name . . . . . . . . . . . . : ANBERG
Primary Dns Suffix . . . . . . . : local.nictitate.net
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : local.nictitate.net

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : local.nictitate.net
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 60-A4-4C-AF-43-52
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6439:a4ee:9b7b:5e72%7(Preferred)
IPv4 Address. . . . . . . . . . . : 10.0.0.110(Preferred)
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Lease Obtained. . . . . . . . . . : Sunday, 17 April 2016 1:31:25 PM
Lease Expires . . . . . . . . . . : Monday, 25 April 2016 1:31:25 PM
Default Gateway . . . . . . . . . : 10.0.0.1
DHCP Server . . . . . . . . . . . : 10.0.0.18
DHCPv6 IAID . . . . . . . . . . . : 257991756
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-55-82-4F-60-A4-4C-AF-43-52
DNS Servers . . . . . . . . . . . : 10.0.0.18
NetBIOS over Tcpip. . . . . . . . : Enabled

Just a note, generally when I do a ping, I ping 8.8.8.8 and not a hostname, because I always like to check internet before DNS configuration (then I know exactly what the issue is)

I got my network worked. Here are the workaround steps:

  1. Disable IPv6 in network adapter property
  2. Set my DNS to 210.22.70.225(China Cnicom), you can use your own
  3. open cmd, input lxrun /uninstall /full) && bash

I have the same issue on Windows 10 VM running on W10 Hyper-V.

I had the exact same issue.

After following some advice in this thread I noticed my resolv.conf was completely empty and adding my default gateway as a nameserver solved the issue completely so I guess for some reason, the installation did not configure my network setup correctly.

Here is my "ipconfig /all" output:

Windows IP Configuration

Host Name . . . . . . . . . . . . : AndersPC
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Ethernet Connection (2) I219-V
Physical Address. . . . . . . . . : 30-5A-3A-E2-47-26
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::b430:d81a:e681:a42f%13(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : den 18 april 2016 08:04:12
Lease Expires . . . . . . . . . . : den 19 april 2016 08:04:12
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 53500474
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-D7-D7-62-30-5A-3A-E2-47-26
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:24ba:29f6:ab27:9d5(Preferred)
Link-local IPv6 Address . . . . . : fe80::24ba:29f6:ab27:9d5%9(Preferred)
Default Gateway . . . . . . . . . : ::
DHCPv6 IAID . . . . . . . . . . . : 117440512
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-D7-D7-62-30-5A-3A-E2-47-26
NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{D9CE7CDF-005A-44AC-8696-7B1B30F3CC81}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

I found a post on the ubuntu forums on this issue which solved it by uncommenting a line which gives preference to IPv4 address. It solved my issue for apt-get: http://askubuntu.com/questions/574569/apt-get-stuck-at-0-connecting-to-us-archive-ubuntu-com

In the file /etc/gai.conf uncomment line ~54 which is precedence ::ffff:0:0/96 100

I can now apt-get update/install; however, ping still does not work

Off of clean install apt-get was working for me.
Hibernated & day later broken.

Reboot & relaunch bash shell worked for me.

Alright guys, this is getting a little spammy; people are just commenting here and re-iterating most of the rest of the thread.

It may be better to simply use the GitHub Reactions system to support comments that match your experience instead.

@ltd65 @felschr @TheNoim @benhillis I also have bitdefender and solved my issue(s). Under Adapters, I set my network(s) to type 'trusted'. I also have Stealth Mode On but tbh, I don't even know what it does.

hi, I curl www.microsoft.com successful.
root@localhost:/mnt/c/Users/litian# curl www.microsoft.com

<title>Microsoft Corporation</title>

Your current User-Agent string appears to be from an automated process, if this is incorrect, please click this link:United States English Microsoft Homepage

but, I do these failed root@localhost:/mnt/c/Users/litian# df df: cannot read table of mounted file systems: No such file or directory root@localhost:/mnt/c/Users/litian# ifconfig Warning: cannot open /proc/net/dev (No such file or directory). Limited output. root@localhost:/mnt/c/Users/litian# ping www.google.com ping: icmp open socket: Socket type not supported

I had tried lxrun /uninstall and then lxrun /install, but it is still the same issue.
how can I do?

@litianZ - Network tools such as ping\ifconfig not working is a known issue\limitation at the moment, unfortunately. The failure in these tools is not an indication of lack of network. See #66. If your network is working, you should be able to still apt-get packages and work with them.

@Palmer11 great tip. Works for me too.

Editing /etc/resolv.conf, removing everything and adding Google's nameserver 8.8.8.8 worked for me.

Before installing Bitdefender I had to do the following to get apt-get to work: apt-get update (it looks like the default target URLs were screwed.

After installing Bitdefender nothing worked any more, but the solution from @Palmer11 worked for me:

  • close bash, open Bitdefender: you only see one adapter
  • close Bitdefender, open bash, open Bitdefender: you see a second adapter
  • set this to "trusted" and everyting works

fix seems to be
edit /etc/resolv.conf
and add nameserver x.x.x.x
where x.x.x.x is IP from ipconfig /all and search for DNS Servers.......

Using Win 10 Build 14328.rs1_release.160418-1609.
Having the

root@SERGE-PCI7:~# ping 192.168.1.1
ping: icmp open socket: Socket type not supported

192.168.1.1 is my DHCP server and default gateway.

Have tried uninstalling linux sub system and installing it again, but no luck.
Modified /etc/resolv.conf, no luck.
apt-get is not working.

The original issue for me was fixed with the latest build and Bash version. It might be wise to just close this issue and make new ones.

Going to close this one out.

@robertsmieja saw this issue resolved on our last build. We just put out build 14332 where resolv.conf should be greatly improved.

Ping not working is being tracked with #18, nslookup in #66, additional sockets in #69.

I updated to the build 14332 and still the same problem:
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
This is resolv.conf that i found in after the installation :
sudo nano /etc/resolv.conf
search home
nameserver 8.8.8.8
nameserver 8.8.4.4

@amine-sahli:/proc/net/dev is not implemented but your resolv.conf looks good to me. Did you try apt-get?

@amine-sahli Why do you have a DNS entry named "search home"? Last time I checked that isn't a valid IP address.

@Sn0wflake - That is a dns search, so it should not be an IPADDR. Search is used for suffixes. He probably has a domain or workgroup called home, and is correct.

Examples: mycomputer.home myserver.home.

@NeoShader Okay. My experience with resolv.conf is near null so can't argue with that. Looking at the problem from a Windows bash perspective I don't think "search home" will be of any use in the foreseeable future because that is too big a problem to tackle currently when a simple DNS configuration file causes problems for so many people. That's why I recommend removing the "search home" line just like removing IPv6 entries solved the problem for many others like me.

Always the problem of ifconfig

amine@DESKTOP-PRGNCUF:~$ sudo -i
root@DESKTOP-PRGNCUF:~# apt-get update
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://archive.ubuntu.com trusty InRelease
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://security.ubuntu.com trusty-security/main amd64 Packages [458 kB]
Hit http://archive.ubuntu.com trusty Release.gpg
Get:4 http://archive.ubuntu.com trusty-updates/main amd64 Packages [756 kB]
Get:5 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [127 kB]
Get:7 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,982 B]
Get:8 http://security.ubuntu.com trusty-security/main Translation-en [252 kB]
Get:9 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Get:10 http://security.ubuntu.com trusty-security/multiverse Translation-en [2,570 B]
Get:11 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [359 kB]
Get:12 http://security.ubuntu.com trusty-security/restricted Translation-en [3,206 B]
Get:13 http://security.ubuntu.com trusty-security/universe Translation-en [74.9 kB]
Get:14 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]
Get:15 http://archive.ubuntu.com trusty-updates/main Translation-en [378 kB]
Get:16 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7,227 B]
Get:17 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3,699 B]
Get:18 http://archive.ubuntu.com trusty-updates/universe Translation-en [188 kB]
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 2,788 kB in 11s (235 kB/s)
Reading package lists... Done

root@DESKTOP-PRGNCUF:~# nano /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

root@DESKTOP-PRGNCUF:~# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.

@amine-sahli ifconfig doesn't work yet. Your connection is fine

There is a problem i can't switch back from Microsoft Account to Local Account.

In /etc/resolv.conf I put nameserver 8.8.8.8 and works.

Hello guys, I detected some problems.
After I installed apache2 when i start apache2 server i got 2 warnings:
root@DESKTOP-TOO0OC6:~# service apache2 restart

  • Restarting web server apache2 [Wed May 11 14:01:25.710370 2016] [core:crit] pid 724Invalid argument: AH00069: make_sock: for address [::]:80, apr_socket_opt_set: (IPV6_V6ONLY)
    [Wed May 11 14:01:26.011045 2016] [core:warn] pid 724Invalid argument: AH00076: Failed to enable APR_TCP_DEFER_ACCEPT
    [ OK ]
    root@DESKTOP-TOO0OC6:~#

Another issue: SSH server
I started the ssh server but i'm not able to connect using : localhost:22 or any other ports, i tried many settings on sshd_config with no luck.

Another issue: I go to ......lxss\rootfs\etc\ssh with Windows Explorer and edit sshd_config with Notepad++ from Windows, after I edited and I closed the bash and cmd, when i start again the cmd + bash this files disappear only from bash "ls -a" i can't see sshd_config (in this example). I also tryed to vim or nano this file but its open an empty file. This happen with any file from "bash" environment, with files from /mnt/... it works fine. Is very hard to edit large configuration files like apache2.conf or php.ini from command line....

This repo's name is a little too "on the nose". Just updated to 14342 and still no fix for ifconfig, ping, nslookup, etc. Bash on Windows? Don't mind if I do ...

root@USERPC1:~# iwconfig
eth0 no wireless extensions.
wifi0 no wireless extensions.
wifi1 no wireless extensions.
eth1 no wireless extensions.
eth2 no wireless extensions.
wifi2 no wireless extensions.
wifi3 no wireless extensions.
eth3 no wireless extensions.
l0 no wireless extensions.

VMware Network Adapter
Wifi USB
Wifi internal on my laptop
etc...
try to install usb wifi TP-Link
https://www.youtube.com/watch?v=-wGsOCSIQEM