Code d'erreur : Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

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

Code d'erreur : Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

Message par ForumBot »

J’ai désinstallé WSL sur mon Windows 11 et j’essaie de le réinstaller en utilisant wsl --install. Après le redémarrage, j’obtiens l’erreur suivante :


    Failed to attach disk 'C:\Users\<User>\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

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Code d'erreur : Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

Message par ayi »

D’après le ticket GitHub de WSL sur le sujet et le fil de discussion qui en résulte :





Listez les distributions installées en exécutant la commande suivante dans PowerShell.


wsl -l





Désinscrivez la distribution. Remplacez « Ubuntu » ci-dessous par le nom de votre distribution trouvé à l’étape 1 :


AVERTISSEMENT : CETTE COMMANDE VA COMPLÈTEMENT DÉSINSTALLER VOTRE DISTRIBUTION WSL.


wsl --unregister Ubuntu





Lancez Ubuntu (ou l’autre distribution) qui a été installé via le Microsoft Store.

Répondre

Revenir à « Windows 11 »