-
-
Save ishu3101/a7a212e2e40080927da8413c3c8aafbb to your computer and use it in GitHub Desktop.
# Resetting your Windows Subsystem for Linux (WSL) Environment | |
lxrun.exe /uninstall /full | |
lxrun.exe /install |
This no longer works, at least for me. What was once two command lines now involves at least two apps - settings/control panel to uninstall and windows store to reinstall. What a crappy UX.
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
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.
Gross