Torizon IDE Installation Wizard for Windows

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


I can help you resolve this Torizon WSL 2 user creation issue. Based on the error message you’re seeing, this is a known issue that can be fixed with a specific command.

Fix for “Error: user not created” Issue

If you were affected by this issue, run the following in a Windows side terminal(1):

wsl sudo -E /opt/updater/updater.ps1 -User <distro_user>

(1)

Where <distro_user> must be the login name that you register on your Torizon Development Environment for WSL 2 distro(1). This should fix the issue(1).

Alternative Solution Using Password File

If the above doesn’t work, there’s an alternative workaround(2):

  1. Create a folder with the name .torizon at(2):

    C:\Users\Public
    

    (2)

  2. Create a file called password.txt at(2):

    C:\Users\Public\.torizon
    

    (2)

  3. Into the file add the following content(2):

    newUser:newPassword
    

    (2)

    Here you can set the preferred name and password for your new distro login(2).

  4. Close VS Code (if not closed yet) and then start the extension installation process again(2).

  5. Important: Remove the password.txt file as soon as the distro configures the new user(2).

This is a mechanism that exists to automate tests(2).

Prerequisites Check

Before proceeding, ensure you have WSL 2 properly installed(3). You can verify this by:

  1. Checking which version of WSL you are running(3)
  2. If WSL 1 is installed, upgrade version from WSL 1 to WSL 2(3)

The Torizon IDE Extension requires WSL 2 to function properly(3).

**


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.