Problems reinstalling Bash on Ubuntu on Windows Error: 0x80070002

Old title: Problems reinstalling Bash on Ubuntu on Windows

Hello all,

I had installed Bash on my pc with no problems. I promptly hosed it by messing up my .bashrc. I uninstalled with the intent to start over. Now trying to install it I get the following...

Error: 0x80070002

Has anyone encountered this before, and if so, is there a fix?


Question Info

Last updated January 9, 2019 Views 11,037 Applies to:
A) To fix error 0x80070002 - Make sure the command prompt properties

does not have Use legacy console ticked.

Then rerun in a new command prompt - bash

B) If it still does not work

Then the bash install is corrupt. If you are ok with starting again

and don't have any important data saved in your Linux bash system, then follow these steps.

1. To uninstall the Linux SubSystem in Windows

Right-click command prompt (admin)

lxrun /uninstall /full

type "y" to continue: y

2. To reinstall the Linux SubSystem in windows

Right-click command prompt (admin)

lxrun /install /y

For build 14328 you will need to fix bash to be able to connect to the internet correctly.

Start - Bash on Ubuntu on Windows

Instructions: at bash prompt root@localhost:~#

root@localhost:~# vi /etc/resolv.conf

(press i for insert & type the following two lines)


(press esc)



root@localhost:~# apt-get update

59 people were helped by this reply


Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.