I am using Ubuntu on my Windows 10 host machine and lately needed to change WSL version from 1 to 2 (using command wsl --set-version
).It looks like after that operation my Ubuntu lost network connection. My /etc/resolve.conf
file looks correct.
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:# [network]# generateResolvConf = falsenameserver 172.28.80.1
Any ideas on what might have caused that and how to fix it?
EDIT:I tried changing resolv.conf
with correct wsl.conf
configuration (generateResolvConf = false
). I have compression of Packages folder turned off as someone mentioned. None of the solutions helped.