WSL: WslRegisterDistribution failed with error: 0x80071772 Error: 0x80071772 The specified file is encrypted and the user does not have the ability to decrypt it.
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?
- WSL 2
- WSL 1
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
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 25
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.
its fix for me when i try:
settings->apps->installed apps->ubuntu24.04 click on ... -> move -> select Cand thenwsl --install Ubuntu-24.04or more Safer uninstall it and changesettings->system->storage->advanced storage settings->where new content is saved->new apps will save toTemporarily put it on C until after installing the distro.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
Hi! This happens because the package won’t force to be installed in C:. Remove the WSL app and uninstall wsl (run wsl --uninstall) then change your Windows settings for “Change were new content is saved” (Config -> Systems -> storage -> advanced settings) Make your that new applications install in C: After it is installed you can change it back to your preferred drive. Hope this helps!
It turned out I had a copy of Ubuntu 22.04 under “installed apps”. Deleting that got things working again.
I spent two days troubleshooting the problem, and finally saw your post and restored the installation path to C: drive and solved it in two minutes -_-
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.
Same issue here. I move the default appx install location to
D:\and ubuntu cannot work. Because the folders inWindowsAppsare encrypted. I have no idea how to decrypt this folder.Yeah, This works 😃
This fixed it for me aswell! Thank you!
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. I’ll always install from the command line from now on… no more errors since!