microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.57k stars 823 forks source link

WSL2 WSLRegisterDistribution Error 0x80071772 #5127

Open NickITGuy opened 4 years ago

NickITGuy commented 4 years ago

Ubuntu2004 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.

Annotation 2020-04-24 113255

NickITGuy commented 4 years ago

After a reboot and a reinstall this issue fixed its self.

VishalSubramanyam commented 1 year ago

Can this be reopened? I have this on Windows 11. This happens when I try to install Ubuntu on a non-system drive. @NickITGuy probably managed to get it working because after a restart and reinstall, MS Store installs the distro back on C: (instead of D: for some reason). This is a consistent behavior that I have replicated on my machine a few times.

ezhupa99 commented 1 year ago

I have the same issue

DDLdancer commented 1 year ago

Thanks! reinstalling solved my problem.

PeterWang-dev commented 1 year ago

Can this be reopened? I have this on Windows 11. This happens when I try to install Ubuntu on a non-system drive. @NickITGuy probably managed to get it working because after a restart and reinstall, MS Store installs the distro back on C: (instead of D: for some reason). This is a consistent behavior that I have replicated on my machine a few times.

Exactly, the problem is still here. If you move Ubuntu to C:\ and run installation, it works but vhd is in C:\ even you migrate Ubuntu to D:\ via Windows setting. @NickITGuy

NickITGuy commented 1 year ago

Writing this to reopen the issue for @PeterWang-dev @ezhupa99 and @VishalSubramanyam :)

snl60 commented 9 months ago

I had this same error and finally fixed it after hours of trying to figure out which directory was encrypted or why my admin acct didn't have the right permissions. Hopefully this saves some one some time.

Uninstalling wsl via 'Add or remove programs' and then running Ubuntu again without reinstalling wsl worked for me. It appears I had 2 versions of wsl installed somehow. I kept the one with 'Upgrade' at the end. My guess is upgrading wsl didn't remove the old version, which was causing some conflicts. ymmv

MarkLFT commented 1 month ago

I am still having this issue. Is there a solution yet? I only have one WSL installed. It is the latest version on Windows 11. I used the Windows Store to install Ubuntu 24.01, then, using the Apps form, moved the location to D:. Always get the 80071772 error. I tried the restart options, still the same.

If wsl cannot run the distributions from a drive other than c:, why offer the Move option? And forcing us to run in on C: is very poor, as many people are limited on space on C: but usually have spare space on other drives.

trivalik commented 1 month ago

I used this: https://craigloewen-msft.github.io/WSLTipsAndTricks/tip/install-different-drive.html

After export I unregistrer the original instance for reuse the name and free the space (I hope it does). Attention the export instruction is wrong, please look at the wsl command help.

Here the fixed:

wsl --export <DistroName> <FileName>
wsl --unregister <DistroName>
wsl --import <DistroName> <InstallLocation> <FileName>
sageikosa commented 1 month ago

Since my install was already going to another drive other than "C:", I used the "move" command in the "Apps > Installed Apps" for Ubuntu to repoint it to "C:", then retried "wsl --install" and experienced joy at last.

Honestly, what's with the "C drive" fetish that Microsoft has...lazy coding leftover from the 1980s?