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>
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):
-
Create a folder with the name
.torizonat(2):C:\Users\Public -
Create a file called
password.txtat(2):C:\Users\Public\.torizon -
Into the file add the following content(2):
newUser:newPasswordHere you can set the preferred name and password for your new distro login(2).
-
Close VS Code (if not closed yet) and then start the extension installation process again(2).
-
Important: Remove the
password.txtfile 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:
- Checking which version of WSL you are running(3)
- 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).
**
If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.