Created
July 22, 2016 23:38
-
-
Save ishu3101/a7a212e2e40080927da8413c3c8aafbb to your computer and use it in GitHub Desktop.
Resetting your Windows Subsystem for Linux (WSL) Environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Resetting your Windows Subsystem for Linux (WSL) Environment | |
lxrun.exe /uninstall /full | |
lxrun.exe /install |
In wsl2 there is a way to repair or reset the distro (possibly a Ubuntu only option) without wiping wsl2. Not what quite what you asked for but quicker, I suspect.
For example if you've installed ubuntu from windows store then go to 'add/remove programs' then find 'Ubuntu' and then go to advanced options - you then have the option of repair/reset/terminate/uninstall
Doesn't work for me. The Windows Subsystem for Linux instance has terminated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In wsl2 there is a way to repair or reset the distro (possibly a Ubuntu only option) without wiping wsl2. Not what quite what you asked for but quicker, I suspect.
For example if you've installed ubuntu from windows store then go to 'add/remove programs' then find 'Ubuntu' and then go to advanced options - you then have the option of repair/reset/terminate/uninstall