Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt-get update && apt-get upgrade fails #130

Closed
hensondeveloper opened this issue Apr 11, 2016 · 2 comments
Closed

apt-get update && apt-get upgrade fails #130

hensondeveloper opened this issue Apr 11, 2016 · 2 comments

Comments

@hensondeveloper
Copy link

Muscle-memory had me entering an

apt-get update && apt-get upgrade

Which had some issues with udev, systemd, and initramfs-tools.

For mitigation, is there a way to reset the bash environment on Windows 10?

@mphaney
Copy link

mphaney commented Apr 11, 2016

Issue #4 ultimately had the commands to completely uninstall Bash (allowing you to reinstall cleanly).

To summarize, as they were spread over a couple comments, you ultimately end up with:

Run the following from an Adminstrator (i.e. "elevated") Command Prompt
lxrun /uninstall /full
sc stop lxssmanager
rmdir /S "\\?\%LOCALAPPDATA%\lxss"

@russalex
Copy link
Contributor

lxrun /uninstall should be enough to get you out of most states.
lxrun /uninstall /full should only be required if you need to uninstall your Linux home directory.

Note that lxrun /uninstall will not work correctly if you have any files open. In that case the sc stop and rmdir will force your system to clean up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants