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

Error: 0x8007005 when Installing Ubuntu #2940

Closed
acash opened this issue Feb 12, 2018 · 18 comments
Closed

Error: 0x8007005 when Installing Ubuntu #2940

acash opened this issue Feb 12, 2018 · 18 comments

Comments

@acash
Copy link

acash commented Feb 12, 2018

  • Your Windows build number:
    OS Name: Microsoft Windows 10 Pro
    OS Version: 10.0.16299 N/A Build 16299
    [Version 10.0.16299.125]

  • What you're doing and what's happening:
    Enabled WSL
    Restarted computer

PS C:\Users\acash> Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
FeatureName : Microsoft-Windows-Subsystem-Linux
DisplayName : Windows Subsystem for Linux
Description : Provides services and environments for running native user-mode Linux shells and tools on Windows.
RestartRequired : Required
State : Enabled
CustomProperties :

Downloaded and Installed Ubuntu from the Microsoft Store

Entered new UNIX username and get
Error: 0x8007005

Have uninstalled and reinstalled - still same error.

  • What's wrong / what should be happening instead:
    Expect to be able to use bash

  • Strace of the failing command, if applicable:

@WSLUser
Copy link

WSLUser commented Feb 12, 2018

See #651.

@acash
Copy link
Author

acash commented Feb 13, 2018

@DarthSpock I am not seeing what it is I should do to resolve my issue in the referenced issue.

@WSLUser
Copy link

WSLUser commented Feb 13, 2018

This comment specifically. Here @benhillis says it's fixed with FCU. The last comment should alleviate whatever remaining symptoms you have.

@benhillis
Copy link
Member

@DarthSpock - 16299 is FCU, so this is something else.

@acash - Could you collect logs?
https://github.com/Microsoft/WSL/blob/master/CONTRIBUTING.md#8-detailed-logs

@acash
Copy link
Author

acash commented Feb 14, 2018

@benhillis - thank you,
acash_lxcore_logs.zip
here are the logs.

@acash
Copy link
Author

acash commented Feb 15, 2018

@benhillis wondering if the logs I attached provided any insight?

@benhillis
Copy link
Member

benhillis commented Feb 15, 2018

Unfortunately there is no silver bullet in the logs. I see that attempting to create establish a connection to the service is failing with access denied, but there are no relevant events in the service that would explain why this is happening. Do you see any interesting errors in the Windows Event Viewer?

@cdenneen
Copy link

cdenneen commented Mar 1, 2018

@benhillis #2938 help?

@acash
Copy link
Author

acash commented Mar 21, 2018

@benhillis The Windows Event Viewer shows
EventID=1092
... ran WSL.EXE, which attempted to access LXSSMANAGERPROXYSTUB.DLL, violating the rule "IDS_AP_RULE_PREVENT_WSL_EXECUTION:IDS_BLADE_NAME_SPB", and was blocked. For information about how to respond to this event, see KB85494.

@chrisjbreisch
Copy link

chrisjbreisch commented Apr 5, 2018

I have this same issue, and I don't even have the lxss folder referenced in #651 .

UPDATE: McAfee Endpoint Security appears to be causing this. I have the same event in the event viewer that acash has and that's the Source. How irritating.

@ghost
Copy link

ghost commented Apr 9, 2018

After attempting to install another ubuntu instance (after nuking my previous install by deleting the dir containing the previous rootfs etc) I had exactly the same McAfee errors "ran bash.exe, which attempted to access LXSSMANAGERPROXYSTUB.DLL...".

I managed to fix it after seeing this comment: #449 (comment)

I downloaded the ubuntu package from here: https://github.com/x-distro/x.distro/releases

Ran ubuntu.exe - same error 0x8007005 (grr...)
Ran ubuntu.exe clean
Then re-ran ubuntu.exe, and it worked!!!

@chrisjbreisch
Copy link

@rpeach - I can (apparently) successfully install using the method you described above.

However, I still can't launch my shell once I have it installed. Same error 0x80070005.

@chrisjbreisch
Copy link

I never followed up on this. This is still an issue, but I don't see how Microsoft can resolve it and this should probably be closed.

What's causing this is, as I said, McAfee Endpoint Security. In particular, it's the Access Protection rule "Executing Windows Subsystem for Linux", which is turned on by default. It appears to me that the only way to install WSL if you have McAfee Endpoint Security running is to have your administrator disable this rule.

McAfee does list this as a "known issue" on their site as of the 10.6 release, but no "fix" is currently planned. It doesn't seem like to me that it's an issue at all, but rather a deliberate rule put in place to prevent installation of WSL.

See here: https://kc.mcafee.com/corporate/index?page=content&id=KB82450&actp=null&viewlocale=en_US&showDraft=false&locale=en_US
And here: https://docs.mcafee.com/bundle/endpoint-security-10.6.0-threat-prevention-client-product-guide-windows/page/GUID-44A82DB9-8B4F-4C30-A604-B44E88A33083.html

Recommend that this be documented somewhere obvious, and this issue be closed as unable to fix.

@lewisdonofrio
Copy link

@chrisjbreisch just remember the golden rule:
"Dear WSL fans, despite the perf impact of Defender (which we are working to address), THIS is why we DO NOT recommend excluding folders from or disabling Defender"
defender-wsl-good
(https://twitter.com/richturn_ms/status/1095207032292929536)

@chrisjbreisch
Copy link

@chrisjbreisch just remember the golden rule:
"Dear WSL fans, despite the perf impact of Defender (which we are working to address), THIS is why we DO NOT recommend excluding folders from or disabling Defender"

Thanks, @lewisdonofrio. However, I'm not recommending any of this. McAfee isn't reporting a malicious file, it's not even checking. The setting mentioned above blocks any WSL process from executing by default. You could (I would hope) change this setting without disabling McAfee completely in WSL folders.

@lewisdonofrio
Copy link

What are you talking about I'm not even the OP of that twitter @bitcrazed that posted that. I was just so no-one else does what @ghost steps. They are dangerous and should never be done.

@lo-w
Copy link

lo-w commented Dec 30, 2019

try below WA:
1)download lxrun from below url
https://github.com/DDoSolitary/LxRunOffline/releases
2)install subsystem linux from microsoft store.
3)execute below command to install your linux in your dir as administrator .
PS C:\Users*> C:\Users*\Downloads\LxRunOffline-v3.4.0\LxRunOffline.exe install -n -d 'dir which you want to installed' -f 'C:\Program Files\WindowsApps\install.tar.gz'
example:
PS C:\Users\test> C:\Users\test\Downloads\LxRunOffline-v3.4.0\LxRunOffline.exe install -n ubuntu1804 -d 'C:\subsystem\ubuntu1804' -f 'C:\Program Files\WindowsApps\CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2019.522.0_x64__79rhkp1fndgsc\install.tar.gz'
4)then you can use bash/wsl to login your subsystem with root user. then uninstall subsystem linux from microsoft store, you don't need it anymore.

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
Projects
None yet
Development

No branches or pull requests

7 participants