Running Ubuntu on WSL and trying to push to github and download new python modules using pip and I get this error.
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d654fe0b8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/tensorflow/
I had a look at the resolv.conf file and maybe its corrupted as it just gives a few lines of @@@. Anyone got any ideas how to fix this?
When I run l
ls -al /etc/resolv.conf
-rw-r--r-- 1 root root 261 Nov 28 12:54 /etc/resolv.conf
Update:
I managed to fix the problem. Needed to edit the file and add a line like this:
nameserver 8.8.8.8
/etc/resolv.conf
it is actually a link to/run/resolvconf/resolv.conf
The file is supposed to be automatically generated by WSL. Maybe you need to recreate the/run/resolvconf/resolv.conf
file with just the line of# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line.
ls -al /etc/resolv.conf
.sudo -H gedit /etc/resolv.conf
), remove everything there, and just enter8.8.8.8
and save the file. Retest. Report back. Start comments to me with @heynnema or I may miss them.