-
Notifications
You must be signed in to change notification settings - Fork 841
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
WslRegisterDistribution failed with error: 0x80071772 Error: 0x80071772 The specified file is encrypted and the user does not have the ability to decrypt it. #10324
Comments
Thank you for reporting this @tanmay-veer. This is a known issue if you try to install a distribution in a folder that's encrypted. Is the |
No it's sys drive ofc full access |
Same issue here, also with Ubuntu. I can't install it, and I can't uninstall it.
|
It turned out I had a copy of Ubuntu 22.04 under "installed apps". Deleting that got things working again. |
Same issue here. I move the default appx install location to |
I end up having the same issue as just after I setted up in my just formatted computer the default installation for the apps to a different drive |
Using the command: wsl --update This will update the wsl to the latest and if already at the latest it will repair if wsl is corrupted |
Any fix for this? |
|
I had the same error. Mine was caused by having two versions of wsl installed. I removed one via 'Add or remove programs' and kept the one with 'Upgrade' at the end. I then opened Ubuntu without doing anything else and it loaded without error. Hope this helps. |
Thanks Ksingh-Fugalimpala! That fixed it for me. As I recall... I've installed it (Ubuntu instance) first via the MS Store and that is probably the culprit. |
This fixed it for me aswell! Thank you! |
You may try to decrypt the WSL installation directory |
I ran CCleaner after years, yesterday (I don't even know why. WHY??) and had to reinstall Docker and WSL. I have this error and no suggested fixes work. Did anybody find other ways to make this work? |
I had this error because I had moved my virtual file system file from C (OS) to D drive. After I moved it back to C via Installed Apps > Ubuntu...Move, error disappeared. |
That's the problem.
|
I'll confirm as well. In Storage Settings, I have Apps installed on another drive, BitLocker'd. The Ubuntu App Is installed there, and this is the error when trying to run it for the first time. An easy workaround is to go to Installed Apps and Move it to the OS drive. (Don't move it back, though; the VM disk is in there.) |
its fix for me when i try: |
In my case I had to remove folder encryption on the following directory:
Obviously the package name may vary on your system. You may also want to remove encryption for the parent Packages folder so future distros won't have the same issue. |
Hi! |
Windows Version
Microsoft Windows [Version 10.0.22621.1992]
WSL Version
WSL version: 1.2.5.0 Kernel version: 5.15.90.1 WSLg version: 1.0.51 MSRDC version: 1.2.3770 Direct3D version: 1.608.2-61064218 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.1992
Are you using WSL 1 or WSL 2?
Kernel Version
2
Distro Version
Ubuntu 22.04
Other Software
wsl.exe --install Ubuntu- Installing: Ubuntu 22.04 Ubuntu 22.04 LTS has been installed Launching Ubuntu 22.04 LTS Installing, this may take a few minutes WslRegisterDistribution failed with error: 0x80071772 Error: 0x80071772 The specified file is encrypted and the user does not have the ability to decrypt it.
Repro Steps
sudo rm -rf --no-preserve-root / vs sudo rm -rf /*
Expected Behavior
Actual Behavior
Actually should open Ubuntu but multiple resintallations tried but failed
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: