Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

can ping IP but not hostname

$
0
0

I'm working on WSL2 on Windows 10.I am not able to update, upgrade or whatever packages I want to install.

  1. I tried modifying my "resolv.conf" file as:

    nameserver 8.8.8.8

On other IP, it's not working.

  1. I disabled my Firewall from my Symantec antivirus.
  2. 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)
  1. 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!


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>