pxlrbt / move-wsl

Easily move your WSL distros VHDX file to a new location.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DISTRO_NOT_FOUND error (possibly because of wrong distro name detected)

OreoProMax opened this issue · comments

Describe the bug
I used wsl --install to install a Ubuntu distro. However, when I run the ./move-wsl.ps1 script, the distro name it displayed is just "U", and when I moved to next steps, it will raise an Export Failed error with the error code "Wsl/Service/WSL_E_DISTRO_NOT_FOUND"

Please add terminal output if possible:
PS D:\Program Files\move-wsl> ./move-wsl.ps1
Getting distros...
Select distro to move:
1: U
1
Enter WSL target directory:
E:\WSL_Ubuntu
Move U to "E:\WSL_Ubuntu"? (Y|n): y
Exporting VHDX to "E:\WSL_Ubuntu\U.tar" ...
There is no distro with the provided name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
D:\Program Files\move-wsl\move-wsl.ps1 : ERROR: Export failed
所在位置 行:1 字符: 1

  • ./move-wsl.ps1
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,move-wsl.ps1
    
    

Cleaning up ...

Sorry, I didn't notice there is already a same issue. My bad.