System details:
- Windows 11 Pro
- Official ISO image from Microsoft's website + Christitus WinUtil to create a custom image (used to remove bloatware)
Problem details, to summarize the problem here are commands and their respective responses in the terminal:
ping google.com
:
Temporary failure in name resolution
ping 1.1.1.1
:
ping: connect: Network is unreachable
sudo apt update
:
Ign:1 http://security.ubuntu.com/ubuntu jammy-security InReleaseIgn:3 (link for Ubuntu archive) jammy-updates InReleaseIgn:4 (link for Ubuntu archive) jammy-backports InReleaseErr:2 (link for Ubuntu archive) jammy InRelease Temporary failure resolving '(link for Ubuntu archive)'Err:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Temporary failure resolving 'security.ubuntu.com'Err:3 (link for Ubuntu archive) jammy-updates InRelease Temporary failure resolving '(link for Ubuntu archive)'Err:4 (link for Ubuntu archive) jammy-backports InRelease Temporary failure resolving '(link for Ubuntu archive)'Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneAll packages are up to date.W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com'W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com'W: Some index files failed to download. They have been ignored, or old ones used instead.
What I have tried:
- changed
/etc/resolv.conf
and/etc/wsl.conf
- made
etc/resolv.conf
immutable - reset network settings
- unregistered Ubuntu and disabled Hyper-V, Virtual Machine Platform and WSL multiple times (rebooted after every single disable and enable)
Results: None, nothing worked, nothing fixed the problem
Edit 1: The Ubuntu distribution version I using is 22.04 LTS
and I think I found the origin of the problem, at least for now.In my network adapters Hyper-V didn't create a virtual switch that will allow wsl to access my other network adapters through it, so the problem lies there I think... I tried to create a virtual switch using Hyper-V manager, but so far no success yet...
Edit 2: After uninstalling and reinstalling multiple times, neither WSL nor Ubuntu seem to properly install anymore apparently, as far as I understand.
This is the output of the function wsl --version
as of my current situation:
WSL version: 2.1.5.0Kernel version: 5.15.146.1-2WSLg version: 1.0.60MSRDC version: 1.2.5105Direct3D version: 1.611.1-81528511DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hypWindows version: 10.0.22631.3235
When trying to launch ubuntu now this is what I get:
Launching Ubuntu...Installing, this may take a few minutes...WslRegisterDistribution failed with error: 0x80070002Error: 0x80070002 The system cannot find the file specified.Press any key to continue...
I have tried to download the update manually from Microsoft's website: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi\but in vain... now I can't even install Ubuntu anymore, and yes the same happens when I try to download other specific versions of the Ubuntu distro such as 22.04, 20.04, etc...
Note:
Well, however right before breaking it so it doesn't want to install anymore this time, I reckon that I got my first problem because there was no virtual switch adapter to allow wsl and distros to connect to the network I am using.Typically the name for this adapter is vEthernet, and is managed by hyper-v. I tried to create one manually through hyper-v manager, but, in vain...