sbhatti
July 1st, 2021, 01:33 PM
I have recently installed Ubuntu wsl following the "Manual Installation Steps" instructions from:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
However, when I try to download and install packages such as volta.sh, I found that I cannot seem to connect from the Ubuntu terminal.
When I try to:
>ping 8.8.8.8
I get:
ping: connect: Network is unreachable
There are some things I already checked and I list them below. I just don't know what more to do and am trying and re-trying the same things for the several days. Would appreciate any help with this.
curl https://get.volta.sh | bash
(6) Could not resolve host: get.volta.sh
ping 8.8.8.8
ping: connect: Network is unreachable
Steps taken, which did not work
Disabled the firewall temporarily.
Re-installed ubuntu
BT (my internet provider), port forwarding:
https://www.bt.com/help/broadband/learn-about-broadband/how-do-i-set-up-port-forwarding-on-my-bt-hub-
Checked Network Connection settings
Ethernet Properties
vEthernet Properties (WSL)
Hyper-V Virtual Ethernet Adapter
Internet Protocol Version 4 (TCP/IPv4) -checked
Internet Protocol Version 6 (TCP/IPv6) -checked
Hyper-V Extensible Virtual Switch -unchecked
Checked Device Manager (View Hidden)
Network adapters > Hyper-V Virtual Ethernet Adapter Properties
Device status - This device is working properly.
Turn Windows features on and off
Uncheck Windows Subsystem for Linux
Windows needs to reboot your PC to finish the requested changes
Recheck Windows Subsystem for Linux
Windows needs to reboot
Change the name server
sudo nano /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/resolv.conf
# [network]
# generateResolvConf = false
nameserver xxx.xx.xx
Change the name server to 8.8.8.8 and save the file. You should now be able to connect to the internet.
-restarted ubuntu, same error after restarting and the nameserver seems to be reset to the default.
Found at https://github.com/microsoft/WSL/issues/5336#issuecomment-653881695
Open Powershell or Cmd as Administrator
and run each of these commands:
wsl --shutdown
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
Hit the Windows Key,
type Network Reset,
hit enter.
You should see this window.
Click "Reset now".
Restart Windows
https://docs.microsoft.com/en-us/windows/wsl/install-win10
However, when I try to download and install packages such as volta.sh, I found that I cannot seem to connect from the Ubuntu terminal.
When I try to:
>ping 8.8.8.8
I get:
ping: connect: Network is unreachable
There are some things I already checked and I list them below. I just don't know what more to do and am trying and re-trying the same things for the several days. Would appreciate any help with this.
curl https://get.volta.sh | bash
(6) Could not resolve host: get.volta.sh
ping 8.8.8.8
ping: connect: Network is unreachable
Steps taken, which did not work
Disabled the firewall temporarily.
Re-installed ubuntu
BT (my internet provider), port forwarding:
https://www.bt.com/help/broadband/learn-about-broadband/how-do-i-set-up-port-forwarding-on-my-bt-hub-
Checked Network Connection settings
Ethernet Properties
vEthernet Properties (WSL)
Hyper-V Virtual Ethernet Adapter
Internet Protocol Version 4 (TCP/IPv4) -checked
Internet Protocol Version 6 (TCP/IPv6) -checked
Hyper-V Extensible Virtual Switch -unchecked
Checked Device Manager (View Hidden)
Network adapters > Hyper-V Virtual Ethernet Adapter Properties
Device status - This device is working properly.
Turn Windows features on and off
Uncheck Windows Subsystem for Linux
Windows needs to reboot your PC to finish the requested changes
Recheck Windows Subsystem for Linux
Windows needs to reboot
Change the name server
sudo nano /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/resolv.conf
# [network]
# generateResolvConf = false
nameserver xxx.xx.xx
Change the name server to 8.8.8.8 and save the file. You should now be able to connect to the internet.
-restarted ubuntu, same error after restarting and the nameserver seems to be reset to the default.
Found at https://github.com/microsoft/WSL/issues/5336#issuecomment-653881695
Open Powershell or Cmd as Administrator
and run each of these commands:
wsl --shutdown
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
Hit the Windows Key,
type Network Reset,
hit enter.
You should see this window.
Click "Reset now".
Restart Windows