How to remove/reset Windows Subsystem for Linux on Windows Insider Build 14316
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Horror Game Menu Looping
--
Chapters
00:00 Question
00:53 Accepted answer (Score 155)
01:44 Answer 2 (Score 2)
02:43 Thank you
--
Full question
https://superuser.com/questions/1065569/...
Accepted answer links:
https://www.slightfuture.com/technote/lx...
[Installing Fish Shell on Ubuntu on Windows 10]: http://www.hanselman.com/blog/Installing...
[HOWTO: Ubuntu on Windows | Ubuntu Insights]: https://insights.ubuntu.com/2016/04/14/h.../
Answer 2 links:
[an issue related to installing the BASH prompt]: https://github.com/Microsoft/BashOnWindo...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#ubuntu #bash #windows10preview #windowssubsystemforlinux
#avk47
ACCEPTED ANSWER
Score 154
The following answer only applies to WSL on Windows 10 1703 and 1607. WSL on Windows 10 1709+ can be installed from within the Windows Store UWP application.
If you want to remove and reset the Linux subsystem, open a command prompt with elevated permissions and enter the following commands:
lxrun /uninstall /full
lxrun /install
On modern versions of Windows the command to uninstall the default WSL distribution is as follows:
wsl --unregister
Sources:
ANSWER 2
Score 2
I was having problems with installing BASH, it would always hang at "Expanding Filesystem...". When I ran
lxrun /uninstall /full
it would error out.
To fix this, I did a reboot. Ran this again as soon as the computer came back up. This worked. Then I found there is an issue related to installing the BASH prompt.
And someone brought up about pagefiles. I have four drives and three of them had pagefiles. I set the pagefile to one drive and set it to be automatically managed. Rebooted the computer. Then I was able to install the BASH prompt for Windows, but instead of using lxrun /install
I used
bash.exe -c "ps auxf"