Clean install Windows 11 to replace Mother Board.
There is an image file, image_file.tar, created for migration on the previous PC, so on the new PC
$ wsl --import Ubuntu-22.04 N:\WSL\Ubuntu-22.04 N:\WSL\ubuntu.tar --version 2
When I try to install with $ wsl.exe, I get a message about how to use wsl.exe and cannot import.
When I look on the net, I often see how to start with $ wsl --install, but I can't seem to find a way to install from the image_file.tar where my settings are saved.
How can I install from a .tar file?
As pointed out in the Comment, $ wsl --import was not possible in the clean install state, but after $ wsl --install first.
Reboot and enter username, password
WSL2 shutdown
Check WSL2 running status. it will be Stopped. NAME at this time is the distribution to be removed.
Remove distribution from C drive
then import