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

can't connect to kali servers after updating wsl to v2 #5634

Closed
Fighteros opened this issue Jul 22, 2020 · 8 comments
Closed

can't connect to kali servers after updating wsl to v2 #5634

Fighteros opened this issue Jul 22, 2020 · 8 comments

Comments

@Fighteros
Copy link

Microsoft Windows [Version 10.0.19041.388]

i installed kali linux on WSL version 1 it was working and every thing was so good
i then updated my WSL to version 2
and used this command to change the kali to be working on WSL 2
wsl --set-version kali-linux 2
and then it went successfully i tried to do sudo apt-get update
and oops timeout
i check internet nothing is working though my windows is connected correctly i hope u help me please

@therealkenc
Copy link
Collaborator

Call this /dupe #4183 which is close enough for a still-open landing zone. Tangentially similar #4223 #4171, others.

@ghost
Copy link

ghost commented Jul 22, 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 22, 2020
@Fighteros
Copy link
Author

i tried all the solutions mentioned and nothing fixed my problem
i can ping any ip any website
image

@Fighteros
Copy link
Author

image
image
image

@Fighteros
Copy link
Author

i tried all the solutions and nothing fixed my problem
i can do ping for any ip and any website
and nslookup also
but can't do apt uipdate
or curl or wget
image

@Fighteros
Copy link
Author

this took me days searching trying installing and reinstalling i could finally fix this by using these commands in power shell
wsl --shutdown netsh winsock reset netsh int ip reset all netsh winhttp reset proxy ipconfig /flushdns
and rebobted then went to avast firewall allow all inboud and outbound connection and it worked for me

@starling-21
Copy link

starling-21 commented Aug 1, 2020

this took me days searching trying installing and reinstalling i could finally fix this by using these commands in power shell
wsl --shutdown netsh winsock reset netsh int ip reset all netsh winhttp reset proxy ipconfig /flushdns
and rebobted then went to avast firewall allow all inboud and outbound connection and it worked for me

Thanks. It worked for me too.
I had similar issue when tried to run docker pull <some image>, docker login or docker-compose up. I've been got timeout everytime I run any of those commands:

Service '******' failed to build: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.65.3:58971->192.168.65.1:53: i/o timeout.

Nslookup, ping and curl were working with no issues.

@psytran
Copy link

psytran commented Jan 15, 2022

┌──(pnvs㉿LAPTOP-0TJ1JHA7)-[~]
└─$ sudo apt update
[sudo] password for pnvs:
Ign:1 http://http.kali.org/kali kali-last-snapshot InRelease
Ign:1 http://http.kali.org/kali kali-last-snapshot InRelease
Ign:1 http://http.kali.org/kali kali-last-snapshot InRelease
Err:1 http://http.kali.org/kali kali-last-snapshot InRelease
Temporary failure resolving 'http.kali.org'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://http.kali.org/kali/dists/kali-last-snapshot/InRelease Temporary failure resolving 'http.kali.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

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

4 participants