Failed to register distribution
sudo-kraken opened this issue · 4 comments
Not sure what is happening here it makes the file in that location then as it completed the extract and starts the import it fails.
[Distrod] Choose a linuxcontainers.org image from the list above.
[Distrod] Type the name or the index of your choice.
[Default: ubuntu]: archlinux
[Distrod] Fetching from linuxcontainers.org...
[1] current
[Distrod] Choose a version from the list above.
[Distrod] Type the name or the index of your choice.
[Default: current]:
[Distrod] Fetching from linuxcontainers.org...
[Distrod] Downloading 'https://images.linuxcontainers.org/images/archlinux/current/amd64/default/20220525_04:18/rootfs.tar.xz'...
[00:00:01] [#################################################] 146.42MiB/146.42MiB (86.70MiB/s, 0s)
[Distrod] Download done.
[Distrod] Unpacking and merging the given rootfs to the distrod rootfs. This may take a while...
[Distrod] Now Windows is installing the new distribution. This may take a while...
Unspecified error
[Distrod][ERROR] Failed to register the distribution.
Caused by:
Failed: cmd.exe /C wsl --import Distrod %LocalAppData%\Distrod "C:\\Users\\jphadmin\\AppData\\Local\\Temp\\.tmpQVfSkF\\install.tar.gz"
Identical as above;
Installation as Admin or regular user behaves the same.
wsl --version
WSL version: 0.60.0.0
Kernel version: 5.10.102.1
WSLg version: 1.0.34
MSRDC version: 1.2.2924
Direct3D version: 1.601.0
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22000.739
--snip--
[6] kinetic
[Distrod] Choose a version from the list above.
[Distrod] Type the name or the index of your choice.
[Default: focal]: 6
[Distrod] Fetching from linuxcontainers.org...
[Distrod] Downloading 'https://images.linuxcontainers.org/images/ubuntu/kinetic/amd64/default/20220621_07:42/rootfs.tar.xz'...
[00:00:02] [#####################################################################################################################] 102.78MiB/102.78MiB (47.68MiB/s, 0s)
[Distrod] Download done.
[Distrod] Unpacking and merging the given rootfs to the distrod rootfs. This may take a while...
[Distrod] Now Windows is installing the new distribution. This may take a while...
Import in progress, this may take a few minutes.
Unspecified error
[Distrod][ERROR] Failed to register the distribution.
Caused by:
Failed: cmd.exe /C wsl --import Distrod %LocalAppData%\Distrod "C:\\Users\\danny\\AppData\\Local\\Temp\\.tmpuPtERr\\install.tar.gz"
Checking if the tmp dir actually exists; answer is nope.
PS C:\Users\danny> dir C:\\Users\\danny\\AppData\\Local\\Temp\\.tmpuPtERr\\
dir : Cannot find path 'C:\Users\danny\AppData\Local\Temp\.tmpuPtERr\' because it does not exist.
At line:1 char:1
+ dir C:\\Users\\danny\\AppData\\Local\\Temp\\.tmpuPtERr\\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\danny\...emp\.tmpuPtERr\:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
dir C:\\Users\\danny\\AppData\\Local\\Temp\\.tmp*
Returns blank...
Target path .\AppData\Local\Distrod\
is created but remains empty.
may be virtual disk limitation error..
First, try to disable windows file compression for "%LocalAppData%Distrod" folder,
then reinstall.
https://www.makeuseof.com/how-disable-file-compression-windows-10/
@nicks515 I have checked this setting and it wasn't enabled. Do you have any other ideas?
@Joeharrison94 @dfroberg Updating WSL with the msi file here solved this exact same issue for me: https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package