Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'
- On wsl2 sudo apt update will fail when connected to Cisco Anyconnect VPN but without vpn it works fine. The problem is when you are connected to anyconnect, wsl fails to resolve the DNS.
Connect Cisco Anyconnect VPN, then open up powershell as Admin
and run the following commands to get the all the available DNS/nameservers. Take note of the DNS/namservers will need later.