Skip to content
Discussion options

You must be logged in to vote

This typically has to do with connection to your lab / corporate VPN causing the virtual machine to be unable to reach a domain name server (DNS)

On WSL2, first try disconnecting from the VPN. Then in the command window, enter

ping google.com

If you receive a response, you should be able to clone the repository now. If not, enter in the command window

sudo nano /etc/resolv.conf

Change the IP address after nameserver to 8.8.8.8

Save and close the file. This should correct the issue and you should be able to clone the repository

Replies: 1 comment

Comment options

AAndersn
Feb 4, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by AAndersn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant