Open NickITGuy opened 4 years ago
After a reboot and a reinstall this issue fixed its self.
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.
I have the same issue
Thanks! reinstalling solved my problem.
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
Writing this to reopen the issue for @PeterWang-dev @ezhupa99 and @VishalSubramanyam :)
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
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.
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>
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?
Your Windows build number: Microsoft Windows 10 Pro Version 10.0.19041.207 (Type
ver
at a Windows Command Prompt)What you're doing and what's happening: Download Ubuntu 20.04 LTS from Microsoft Store, Go to windows start menu and start Ubuntu 20.04 LTS (Or go to command line and type ubuntu2004) (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
What's wrong / what should be happening instead: I get the following error
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.