Skip to content
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

Network not working #5569

Closed
lukee1234 opened this issue Jul 9, 2020 · 4 comments
Closed

Network not working #5569

lukee1234 opened this issue Jul 9, 2020 · 4 comments

Comments

@lukee1234
Copy link


name: Bug report
about: Report a bug on Windows Subsystem for Linux
title: 'Network not working'
labels: 'bug'
assignees: ''


Environment

Windows build number: Microsoft Windows [Version 10.0.19041.329]
Your Distribution version: Debian GNU/Linux 10 \n \l
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.19.104-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Feb 19 06:37:35 UTC 2020
Same problem in WSL 1 and WSL 2

Steps to reproduce

I just do sudo apt update

Expected behavior

Get packages updates

Actual behavior

After waiting for network timeouts, more or less 10 seconds, this is the output for sudo apt update:

luke@DESKTOP-U264O87:~$ sudo apt update
Err:1 http://deb.debian.org/debian buster InRelease
  Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org/debian-security buster/updates InRelease
  Temporary failure resolving 'security.debian.org'
Err:3 http://ftp.debian.org/debian buster-backports InRelease
  Temporary failure resolving 'ftp.debian.org'
Err:4 http://deb.debian.org/debian buster-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/buster-backports/InRelease  Temporary failure resolving 'ftp.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
luke@DESKTOP-U264O87:~$

Obviously with this fail, sudo apt upgrade returns nothing to upgrade.

What I already tried

  1. Deleted symlink in /etc/resolv.conf pointing to that in /run/resolvconf/resolv.conf

  2. Created /etc/wsl.conf file to stop auto-generation of /etc/resolv.conf which i edited putting only nameserver 8.8.8.8

  3. Set up eth0 interface by getting gateway ip from vEthernet(WSL) card by this PowerShell script:

$gateway_ips = Get-NetIPAddress -InterfaceAlias "vEthernet (WSL)" | select IPAddress
$gateway_ip = $gateway_ips[1].IPAddress
Write-Output "Gateway (local WSL adapter) IP is: $gateway_ip"

because with my default network gateway at 192.168.1.1 it didn't work.
and then I configured eth0 interface with:
sudo ip a add 172.23.64.1/255.255.240.0 dev eth0
sudo ip route add default via 172.23.64.1 and
ip link set dev eth0 up

so that now ip r returns:

default via 172.23.64.1 dev eth0
172.23.64.0/20 dev eth0 proto kernel scope link src 172.23.64.1

but Internet is still not working.

@therealkenc
Copy link
Collaborator

/dupe #5256

@ghost
Copy link

ghost commented Jul 9, 2020

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost added the duplicate label Jul 9, 2020
@lukee1234

This comment has been minimized.

@lukee1234
Copy link
Author

Same problem as #5437
Disabling swap workaround just works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants