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

Opening Bash as Administrator returns error 0x80070005 #3101

Closed
techracer opened this issue Apr 13, 2018 · 16 comments
Closed

Opening Bash as Administrator returns error 0x80070005 #3101

techracer opened this issue Apr 13, 2018 · 16 comments
Labels
failure-to-launch failure to launch

Comments

@techracer
Copy link

This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what's up. Please fill out ALL THE FIELDS!

If you have a feature request, please post to the UserVoice.

If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.

Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to secure@microsoft.com, referencing the GitHub bug number. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    10.0.16299.371

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
    2018-04-13_16-32-35
    2018-04-13_16-35-13

  • What's wrong / what should be happening instead:
    I used to be able to open the bash shell as administrator, now i cannot

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here)

lxcore_trace.zip.zip

See our contributing instructions for assistance.

@techracer
Copy link
Author

I've tried that, several times actually

@voidsteed
Copy link

doesn't work, install and uninstall so many times

@ghost
Copy link

ghost commented Apr 17, 2018

try installing in windows store instead bash.exe or /lxrun

@voidsteed
Copy link

I tried from windows store, doesn't either.

error message:

Installing, this may take a few minutes...
Installation Failed!
Error: 0x80070005
Press any key to continue...

@phelix001
Copy link

phelix001 commented Apr 24, 2018

Error: 0x80070005 When I click on Ubuntu icon I get this error. No recent updates to uninstall. Just started as of yesterday. Was originally installed from WIndows Store. Windows Debian works.

Yesterday, I did mistakenly start running a windows command that would hide folders in my Ubuntu filesystem. I hit cancel.

@ghost
Copy link

ghost commented Apr 24, 2018

Try Repair on "Add Or Remove Programs" then click advanced options. but this methods only works in ubuntu from microsoft store

2018-04-25 2

@ghost
Copy link

ghost commented May 7, 2018

Same issue...hitting Repair (and Reset) from "Add/Remove Programs" did nothing.

@phelix001
Copy link

phelix001 commented May 8, 2018 via email

@ghost
Copy link

ghost commented Jun 1, 2018

Please help fix this!

@raghav710
Copy link

I am facing this issue as well. Is there any timeline for a fix?

@onomatopellan
Copy link

I had the exactly opposite problem. Error 0x80070005 appeared unless I launched the distro in Elevated shell (open as Admin). It was a permissions issue. This is what I did to fix it.

  • open elevated cmd.exe.
  • cd to the distro executable location folder. (in my case cd G:\WSL\Alpine)
  • type icacls.exe . /grant "%username%:(OI)(CI)(F)"
    After that I can install the distro without launching it as Admin.

So if you have problems with opening bash as Admin you should first locate the distro executable and update the permissions of that folder for Administrators user.
icacls.exe . /grant "Administrators:(OI)(CI)(F)"

@voidsteed
Copy link

Hi all, I resolved my problem with this solution: #3020 (comment)

@dominik-ba
Copy link

I have the same issue and #3020 did not help. I don't have such a file in CodeIntegrity

@melanie-idl
Copy link

melanie-idl commented Nov 7, 2018

Having the same issue after finding myself in a reboot loop after installing Node.

Nothing but Error 0x80070005 displayed in terminal on startup when it was working before this. Have uninstalled & reinstalled several times from both command line and add & remove route. Have tried #3020 workaround but don't have the file mentioned. Have tried running as admin. Accessing using WSL, Ubuntu & Bash shells all show the same error. Log files are attached. will be emailed.

@melanie-idl
Copy link

melanie-idl commented Nov 7, 2018

Okay, I'm up and running again. Ironically I've been working on this for hours but it's fixed 20 minutes after I actually post 😒 I can't say for sure that these are replicable steps but the only things I did between my post and things working again were:

  • Turning off my logging so I could bundle my logs to email
  • I followed the post that I linked above regarding a reboot loop, which led me down a rabbit hole and I ended up at this issue. Turns out my UAC settings had been changed by this bug earlier today, I returned them to the default.
  • Rebooted my PC

This feels much more like a fluke than a solution but hopefully it might help someone else.

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

No branches or pull requests

8 participants