I'm working on WSL2 on Windows 10.I am not able to update, upgrade or whatever packages I want to install.
I tried modifying my
"resolv.conf"file as:nameserver 8.8.8.8
On other IP, it's not working.
- I disabled my Firewall from my Symantec antivirus.
- Inside the wsl shell, I edit /etc/wsl.conf file as root and insert these 2 lines :
[boot] systemd=true
I can now ping DNS but still got theses errors when trying to install a package:
W: Failed to fetch security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::19)- I tried changed the Ubuntu Server switching between the main to the Us one.
It works on a Virtual Machine launched with VMware just not with WSL2.
Any idea how to fix it? Looking forward to hearing from you!