microsoft / microsoft/WSL

No Internet on WSL

Open
#13,114 7 comments 2 reactions 0 assignees View on GitHub
network
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Yesterday, I installed WSL with Ubuntu and it was working perfectly fine and today i tried to install few modules for python but it was stuck and then nothing so i though python pip was a problem so i tried to reinstall it but **sudo apt install python3-pip** was not working, tried ping google.com nothing just stuck even though i have a good internet connection.

I tied many solution from deleting the **/etc/resolv.conf** and then making a new add dns of google 8.8.8.8 and cloudflare 1.1.1.1 and then tried ping same problem nothing and then tried
```bash
sudo mkdir -p /etc/wsl
echo -e "[network]\ngenerateResolvConf = false" | sudo tee /etc/wsl/wsl.conf
```
and then tried this
```
dig google.com
;; communications error to 8.8.8.8#53: timed out
;; communications error to 8.8.8.8#53: timed out
;; communications error to 8.8.8.8#53: timed out
```
Can someone help me solve this issue

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure in WSL Ubuntu with `sudo apt install python3-pip`, `ping google.com`, and `dig google.com`. Review the reported `/etc/resolv.conf` and `/etc/wsl/wsl.conf` changes; the issue is done when the WSL instance can resolve domains and reach package repositories.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python, ubuntu
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.