Share via

Problemi con Linux SubSystem for Windows(11)

Anonymous
2023-03-21T09:50:31+00:00

Ciao a tutti,

Fino a qualche mese fa ho usato il Linux SubSystem for Windows e funzionava tutto correttamente, ma da qualche mese che mi da qualche errore che non capisco bene, cosa devo fare/installare?

Se apro Ubuntu mi dice:

Failed to attach disk 'C:\Users\paolo\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to WSL2: Impossibile trovare il file specificato.

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

Failed to attach disk 'C:\Users\paolo\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to WSL2: Impossibile trovare il file specificato.

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

Failed to attach disk 'C:\Users\paolo\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to WSL2: Impossibile trovare il file specificato.

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

Press any key to continue...

Se invece dall'App(di MS Store) "Linux Subsystem for Windows" scrivo un comando come un semplice sudo apt-get update mi dice:

Ign:1 http://http.kali.org/kali kali-rolling InRelease

Ign:1 http://http.kali.org/kali kali-rolling InRelease

Ign:1 http://http.kali.org/kali kali-rolling InRelease

....eccetera

Ho provato oggi a disinstallare Ubuntu e Kali, e re-installarli dal MS Store. Kali non me lo lascia installare, mi dice "si è verificato un errore con il server".

Come posso risolvere questi problemi e far funzionare tutto correttamente?

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2023-03-21T16:53:50+00:00

Vai in

C:\Users<tuo_username>\AppData\Local\Packages

ed elimina manualmente la cartella

KaliLinux.54290C8133FEE_ey8k8hqnwqnmg

Dopodiché riprova, fammi sapere se l'errore è lo stesso.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-03-21T13:41:49+00:00

    Prova sempre da powershell a disinstallarlo e reinstallarlo

    wsl --unregister kali-linux

    wsl --install -d kali-linux

    Se ti da qualche output strano fammi sapere

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-03-21T16:24:15+00:00

    wsl --unregister kali-linux

    Unregistering.

    The operation completed successfully.

    wsl --install -d kali-linux

    Installing: Kali Linux Rolling

    An error occurred while deleting the package's previously existing application data.

    Error code: Wsl/InstallDistro/0x80073d05

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-03-21T12:34:14+00:00

    Grazie della risposta,

    Per quanto riguarda i file, tutte le cartelle se le provo ad aprire dal Esplora File risultano vuote...

    Ah ok, adesso re installando Ubuntu funziona bene, forse era perchè avevo 2 versioni di Ubuntu, e facevano qualche conflitto ?

    Debian funziona perfettamente

    Però Kali continuo proprio a non riuscire a re installarlo...

    Il comando  wsl --list mi da:

    Windows Subsystem for Linux Distributions:

    kali-linux (Default)

    docker-desktop

    rancher-desktop-data

    docker-desktop-data

    rancher-desktop

    Debian

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-03-21T12:04:53+00:00

    Ciao Paolo,

    qui Daniele, bentrovato nella community Microsoft,

    dall'errore sembra che il file della virtual machine sia sparito o sia inaccessibile. Se così fosse in questi casi di solito basta reinstallare Ubuntu dallo store. L'errore te lo da sia con Ubuntu che con Kali o solo con Kali?

    Quel file nella directory indicata è presente?

    Se da powershell scrivi wsl --list che ti da come output?

    Was this answer helpful?

    0 comments No comments