I've just formatted my PC and tried to reinstall my Debian distro.
Before formatting, I ran wsl --export
to get a TAR file for Debian. After installing Windows again, I enabled WSL in the Option Features GUI, rebooted, and then ran wsl --import
.
Now, it seems like the imported distro isn't properly recognised.
PS C:\Users\username> wsl -l -v
NAME STATE VERSION
* Debain Stopped 2
docker-desktop-data Stopped 2
docker-desktop Running 2
PS C:\Users\username> wsl --unregister debian
Unregistering.
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
PS C:\Users\username> wsl --unregister Debian
Unregistering.
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
PS C:\Users\username> wsl
Failed to attach disk 'E:\vm\wsl\debian\ext4.vhdx' to WSL2: The system cannot find the path specified.
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_PATH_NOT_FOUND
I've tried rebooting Windows in between too. I've also tried just unchecking the WSL box in Optional Features, rebooting Windows, rechecking it, and then rebooting Windows again. Nothing helps.
System info (ThinkPad E14, Gen 4):
Device name [REDACTED]
Processor 12th Gen Intel(R) Core(TM) i7-1260P 2.10 GHz
Installed RAM 24.0 GB (23.7 GB usable)
Device ID [REDACTED]
Product ID [REDACTED]
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 11 Pro
Version 22H2
Installed on 12/02/2023
OS build 22621.1105
Experience Windows Feature Experience Pack 1000.22638.1000.0