I have seen and searched through tons of threads on similar issues, but still couldn't find how to solve mine.
Win10 1709 build 16299.61 (cannot update to newest as updates are controlled by IT) After I enabled WSL and installed Ubuntu 18.04 from MS Store, I couldn't get 'apt update'
and 'ssh'
(along with git clone
) working getting this error message all the time:
user@localhost:~$ sudo apt updatessh: Could not resolve hostname some.remote.repository.com: Temporary Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Temporary failure resolving 'security.ubuntu.com'...user@localhost:~$ ssh my.ssh.server.comssh: Could not resolve hostname my.ssh.server.com: Temporary failure in name resolution...user@localhost:~/worspace/test/$ git pullssh: Could not resolve hostname my.remote.repository.com: Temporary failure in name resolution...
The /etc/resolv.conf
looks good and for other utilities like ping, nslookup, dig work just fine with hostname. The /etc/nsswitch.conf
has hosts: files dns
I tried with my firewall and antivirus switched off with no effect (McAfee).
The weird thing is that I don't have such problem with Ubuntu 16.04 (with both firewall and antivirus enabled), despite intermittent Assertion IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed
errors...
I would kindly appreciate any help/thoughts on the matter.\