Skip to content

Can't create a username just after installing Ubuntu and can't switch to WSL 2 #8510

Closed

Description

Version

Edition Windows 10 Pro Version 21H2 Installed on ‎7/‎6/‎2021 OS build 19044.1706 Experience Windows Feature Experience Pack 120.2212.4170.0

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

wsl --install -d ubuntu

Expected Behavior

Ubuntu asks me to create a Username but give me this instead.

adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[_SYSTEM] configuration variable. Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.

Actual Behavior

wsl --install -d ubuntu

Diagnostic Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions