wsl --import failing "The system cannot find the path specified"

estoces 0 Reputation points
2024-09-10T22:36:46.93+00:00

I'm trying to import an image in a disconnected environment, but it fails. I have Hyper-V, Virtual Machine Platform, and Windows Subsystem for Linux enabled. I disabled/enabled Hyper-V. Rebooted many times. Reinstalled wsl.2.2.4.0.x64.msi.

wsl --import Ubuntu22 c:\users\estoces\wsldistrostorage\ubuntu22 .\ubuntu22.tar --version 2

User's image

User's image

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue-MSFT 40,746 Reputation points Microsoft External Staff
    2024-09-11T00:55:44.68+00:00

    Hello estoces,

    Thanks for your post.

    Please try unregistering and uninstalling Ubuntu from WSL first

    wsl --unregister Ubuntu
    

    Then install it again by running

    wsl --install Ubuntu
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.