Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
I’m sorry to hear you’re having trouble installing Torizon WSL2 with Visual Studio Code. Let’s work through this together.
-
Install a WSL Distribution:
- Your error log indicates that no WSL distributions are installed. To resolve this, open a Command Prompt or PowerShell window and execute:
wsl --install
- This command installs the default Linux distribution, usually Ubuntu. If you prefer a different distribution, list available options with:
wsl --list --online
- Then, install your chosen distribution using:
wsl --install -d <DistributionName>
- After installation, ensure the distribution is set to WSL version 2 by running:
wsl --set-version <DistributionName> 2
- Your error log indicates that no WSL distributions are installed. To resolve this, open a Command Prompt or PowerShell window and execute:
-
Correct PowerShell Command Syntax:
- The errors in your logs suggest issues with file paths containing spaces. In PowerShell, ensure paths with spaces are enclosed in quotes. For example:
rm "C:\Users\MY PC.torizon*.tar"
- Similarly, for the
cd
andMove-Item
commands, use quotes around paths:cd "C:\Users\MY PC.torizon" Move-Item -Path "c:\Users\MY PC\AppData\Roaming\Code\User\globalStorage\toradex.apollox-vscode\file-downloader-downloads\torizon-wsl2.zip\wsl-amd64-0-0-18.img.tar" -Destination "C:\Users\MY PC.torizon"
- The errors in your logs suggest issues with file paths containing spaces. In PowerShell, ensure paths with spaces are enclosed in quotes. For example:
-
Verify Installation:
- Once the WSL distribution is installed and the PowerShell commands are corrected, try reinstalling the Torizon Development Environment for WSL 2 through Visual Studio Code.
- Ensure that Visual Studio Code is opened from within the WSL environment to properly connect to the WSL distribution.
By following these steps, you should be able to resolve the installation issues and proceed with your development using Torizon on your Verdin AM62 SOM.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem: