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?

Answer
Answer
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)

nameserver 8.8.8.8
nameserver 8.8.4.4

(press esc)

:w

:q

root@localhost:~# apt-get update

59 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

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

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated February 2, 2021 Views 12,990 Applies to: