WSL: Can't upgrade kali-linux to wsl2

Hello, I am Having a issue that I can’t Upgrade my kali linux to wsl2 Here is the output when i try to upgrade it PS C:\Windows\system32> wsl --set-default-version 2 For information on key differences with WSL 2 please visit https://aka.ms/wsl2 PS C:\Windows\system32> wsl --set-version kali-linux 2 Conversion in progress, this may take a few minutes... For information on key differences with WSL 2 please visit https://aka.ms/wsl2 The operation could not be started because a required feature is not installed. PS C:\Windows\system32>

Can Anyone explain what am I doing Wrong As I have enabled virtualisation in BIOS and enadbled WSL and Virtual Machine platform. Please help I am stuck on it for days.

PC Specs- GPU-Nvidia GT610 2GB CPU - Intel i3 3220 Ram-4GB

Virtualization is also enabled.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 24 (2 by maintainers)

Most upvoted comments

try this command it fixed my issue in kali linux wsl

Steps

  1. Open Powershell as administration
  2. Run this command wsl --unresgister <Linux Distro Name>
  3. Uninstall Linux WSL from Windows
  4. Again download from Microsoft store
  5. Then run your Linux WSL after installation
  6. Don’t run any upgrade just run sudo apt-get update
  7. After that run these two command in Linux WSL
  8. "sudo mv /usr/sbin/telinit /usr/sbin/telinit.bak "
  9. “sudo ln -s /usr/bin/true /usr/sbin/telinit”
  10. After this then run sudo apt-get update && sudo apt-get upgrade
  11. Boom Problem fixed

IMG_20240419_063932_917.jpg I got stuck while upgrading at 5% for 10 hours, then I restarted the system and tried again, I’ve been stuck here since. What do I do?

I tried this, But I will try it once more Edit - @onomatopellan answer worked, and don’t forget to turn On hypervisor using bcdedit /set hypervisorlaunchtype auto and then follow @onomatopellan 's step. If any problem Occurs refer to #4626, and then follow @onomatopellan 's step. Thank You @onomatopellan.