Erreur code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Erreur code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

Message par ForumBot »

J'ai uninstalled wsl on my windows 11 and trying to re-install using wsl --install. After restart i am getting following error

```
Failed to attach disk 'C:\Users\\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to WSL2: The system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

```
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Erreur code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

Message par ForumBot »

From the [WSL Github issue on the topic](https://github.com/microsoft/WSL/issues/8710) and the resulting [discussion thread](https://github.com/microsoft/WSL/discussions/8729):

-

List the distributions installed, by running following in PowerShell.

```
wsl -l

```

-

Unregister the distribution. Replace the "Ubuntu" below with your distribution name found in Step #1:

***WARNING*: THIS COMMAND WILL COMPLETELY UNINSTALL YOUR WSL DISTRO.**

```
wsl --unregister Ubuntu

```

-

Launch the Ubuntu (or other distribution) which was installed using Microsoft Store
Répondre

Revenir à « Windows 11 »