Credence Analytics - WSL 2.0

Install WSL 2.0 on Windows 10

 · 1 min read

WSL 2.0


Run all commands in Windows PowerShell with admin rights

  • Enabling the Virtual Machine Platform
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  • Enabling the Windows Subsystem for Linux
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  • Restart the machine even if it was mentioned /norestart
  • After restart reopen powershell with admin rights
  • Set default WSL version to 2.0
wsl --set-default-version 2
  • It will give you upgrade message like this
WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
  • Download the standalone update from this site
  • Install the update by double click
  • Search for Ubuntu 20 LTS from app store
  • After installation you should be able to see ubuntu in the start menu
  • Clicking it will open a bash shell
  • All your windows drives will be under /mnt/
  • Search for Windows Terminal from app store for better terminal experience and install the same

No comments yet.

Add a comment
Ctrl+Enter to add comment