Back to DevOps Series

Advanced / Troubleshooting (Only If wsl --install Fails)

Advanced / Troubleshooting (Only If wsl --install Fails)

Advanced / Troubleshooting (Only If wsl --install Fails)

Method 2: Install WSL Manually (If Above Fails)

Step 1: Enable WSL Feature

Open PowerShell (Admin):
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Step 2: Enable Virtual Machine Platform

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Step 3: Restart System


Step 4: Set WSL 2 as Default

wsl --set-default-version 2

Step 5: Install Ubuntu

Open Microsoft Store → Search Ubuntu → Install → Launch

Check Linux Version Inside WSL

lsb_release -a
This confirms Linux is working properly.

Common Errors & Fixes

Error: WSL is not recognized

✅ Fix:
  • Update Windows
  • Restart system
  • Run command as Administrator

Error: WSL version is 1

✅ Fix:
wsl --set-version Ubuntu 2

Error: Virtualization Not Enabled

✅ Fix:
  • Restart PC
  • Enable Virtualization in BIOS
    • Intel: VT-x
    • AMD: SVM