Skip to content

Instantly share code, notes, and snippets.

@JimmyJames404
Last active August 30, 2021 02:31
Show Gist options
  • Save JimmyJames404/a1e490d2506a111572e34e8cb0943adf to your computer and use it in GitHub Desktop.
Save JimmyJames404/a1e490d2506a111572e34e8cb0943adf to your computer and use it in GitHub Desktop.
WSL 2 intallation is incomplete
If in windows
run powershell as administrator
write this command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
if you wish to only install WSL 1,
you can now restart your machine and go to line -----------------
else
To update to WSL 2,restart your machine
Check requirements for running WSL 2
Before installing WSL 2, you must enable the Virtual Machine Platform optional feature.
//Your machine will require virtualization capabilities to use this feature.
run powershell as administrator
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
download https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi & install
Set WSL 2 as your default version in powershell as admin
wsl --set-default-version 2
#############################################################
If this error is for DOCKER the nextlines are optional
######################################################
Now Open the Microsoft Store and select your favorite Linux distribution
From the distribution's page, select "Get".
The first time you launch a newly installed Linux distribution, a console window will open and you'll be asked to wait for a minute or two for files to de-compress and be stored on your PC. All future launches should take less than a second.
You will then need to create a user account and password for your new Linux distribution.
@JimmyJames404
Copy link
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment