Enter new unix username ошибка

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

CasterWx opened this issue

May 21, 2020

· 8 comments

Comments

@CasterWx

Microsoft Windows [Version10.0.19628.1]

WSL 2

After installing Ubuntu18.04, you are prompted for a username, which is invalid。

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: antzuhl
Enter new UNIX username: abcsdasd
Enter new UNIX username: wangssds
Enter new UNIX username: fdfdas

@onomatopellan

Make sure you have this option in Settings -> System -> Storage pointing to the C: system drive. You may need to uninstall the distro and install it again.

Annotation 2020-05-21 132709

@CasterWx

There are these options.

It was unloaded and reloaded many times, There is no problem with the WSL. However, after converting to WSL2, problems arise.

wsl --set-version Ubuntu-18.04 2

@onomatopellan

Is that Windows Chinese version? You have same problem as #4900

Try this from cmd:
wsl.exe -d Ubuntu-18.04 -u root

and from bash:
adduser antzuhl
usermod -aG adm,cdrom,sudo,dip,plugdev antzuhl

@CasterWx

@therealkenc

People seeing this might file an issue with the disto maintainer similar #3273 (message).

@naren3k

hi, I can not follow, how was this fixed ? I am getting same issues with all distros WSL2 on Azure VM. Content is saved to C: where I have full access to.
wsl.exe -d Ubuntu-18.04 -u root
even this didn’t work. Whats the work around ? , thanks

@onomatopellan

@naren3k What’s the Windows version in the Azure VM? What’s your output for wsl.exe -l -v and wsl.exe --status ?

@40rn05lyv

I had the same problem on my laptop. Looks like it was blocked by McAfee, configured with company-wide antivirus policy.
There’s a message about that in McAfee Event Log:
image
So, need to contact guys who are in charge of that.

So, I’ve been using the new(ish) Bash on Ubuntu on Windows (WSL) for a while now and all has been top-notch, until yesterday.

I git-pushed from Bash by accident, so it asked me for my repo-destination account details like normal. I decided to ignore this, terminate Bash and try to just use powershell instead (can’t ever remember passwords!). Terminating Bash however caused the shell to freeze. I forced closed and restarted my comp (I’ve had to force close and restart several times before for various reasons and everything was fine).

After boot up, I just tried to check if Bash was working again, but it wasn’t. It just failed to start with no error message. For example:

PS C:WINDOWSsystem32> bash
PS C:WINDOWSsystem32>

Has anyone else had a similar situation/knows how to help?

EDIT: Only solved through reinstalling bash, using

    lxrun /uninstall /full

then

    lxrun /install 

asked May 18, 2017 at 13:26

oblong's user avatar

oblongoblong

6152 gold badges6 silver badges8 bronze badges

1

I had the same issue but my solution was different. I found that my (Default) WSL distribution was set to docker-desktop-data instead of my Ubuntu distribution, e.g.

In PowerShell (Windows Shell): wslconfig /L

This lists WSL distributions. For me «docker-desktop-data (Default)» was listed as default not my Ubuntu distribution.

To change this:

In PowerShell (Windows Shell): wslconfig /setdefault Ubuntu-20.04

David Buck's user avatar

David Buck

3,72335 gold badges31 silver badges35 bronze badges

answered Jun 25, 2020 at 17:46

Mark's user avatar

MarkMark

5414 silver badges2 bronze badges

0

Came here with a similar issue, but a different solution, so I’ll post in case it helps anyone else.

The difference in my situation was that, when running bash through Command Prompt, it complained about Legacy Mode being enabled.

  1. Open a regular command prompt (win+r then cmd)
  2. Right-click the title bar and select Properties
  3. Deselect «Use legacy console (requires restart)»

Now it should work either by launching the standalone app, or typing bash into a regular cmd window after restarting Command Prompt.

This and other causes can be found in this Github issue.

answered Sep 11, 2017 at 1:19

Dave S's user avatar

Dave SDave S

7881 gold badge11 silver badges30 bronze badges

0

The solutions listed also did not work for me. I found a solution here.

Essentially, navigate to Control Panel > System > Advanced System Settings > Advanced > Settings > Advanced > Virtual memory, Change ..., and set a Custom size for the paging file size: 800 min and 1024 max. Restarted, and the command prompt came back.

answered Sep 30, 2018 at 5:19

Robert Yi's user avatar

Robert YiRobert Yi

1,3851 gold badge13 silver badges18 bronze badges

2

Do a FULL REBOOT. That worked for me. Windows 10 fast boots system to save memory. TO do a Full Reboot Hold Shift and Click on Restart/Shutdown.

answered May 5, 2020 at 10:21

Calvin Gomes's user avatar

0

Linux Distribution should be installed additionally to Windows Subsystem for Linux.
See Install WSL on Windows 10 or Install WSL on Windows Server for detailed steps and explanations. In case mentioned manuals are moved or not available I’ll put below main steps for Windows 10 that helped me:

  1. Open PowerShell as Administrator and run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  2. Restart computer if prompted.
  3. Open PowerShell and run Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
  4. Execute the downloaded Ubuntu.appx.
  5. Enjoy running bash on Windows again.

answered Apr 15, 2019 at 9:49

Viacheslav Shchupak's user avatar

1

I’ve had similar issues. The solution for me was to disable fast startup in powers settings.

answered Jun 11, 2019 at 23:03

BrokenShoebox's user avatar

0

I had the same issue the following fix worked for me:

Fix:

  1. restart by clicking shift + restart button.
  2. it will load recovery options, just click on continue to windows.
  3. once pc starts open the terminal by start search for ubuntu click enter
  4. once terminal gets open it might show cursor blinking and does nothing.
  5. just press cntrl+c or cntrl+z and you will have problem solved.

answered Apr 23, 2020 at 14:28

Neel Ponkia's user avatar

See my comment to original poster.
Your fix did not work for me. here is the PowerShell [as admin] listing:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:WINDOWSsystem32> lxrun /uninstall /full
Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore

This will uninstall Ubuntu on Windows.
This will remove the Ubuntu environment as well as any modifications, new applications, and user data.
Type "y" to continue: y
Uninstalling...
Error: 0x80070002
PS C:WINDOWSsystem32>

I went to https://aka.ms/wslstore

  • chose ubuntu
  • it downloaded
  • clicked ‘pin to start’
  • clicked ‘Launch’

Ubuntu [window]:

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: joe
Enter new UNIX password: joepw202

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: joe
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

joe@joethinks:~$

Please note: BUMMER! None of my shortcuts or installs were moved over from my last version. Here i am running BASH from vscode:

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

joe@joethinks:/mnt/c/1d/TrinitySundayMusicPj$ cdtsm
cdtsm: command not found
joe@joethinks:/mnt/c/1d/TrinitySundayMusicPj$ cd trinitySundayMusic
joe@joethinks:/mnt/c/1d/TrinitySundayMusicPj/trinitySundayMusic$ node wizard.js
The program 'node' is currently not installed. You can install it by typing:
sudo apt install nodejs-legacy
joe@joethinks:/mnt/c/1d/TrinitySundayMusicPj/trinitySundayMusic$

At least it works.

answered May 26, 2018 at 19:29

Love and peace - Joe Codeswell's user avatar

4

Right after Windows Updates KBB4471324 and a reboot, Bash wouldn’t launch. No messages.

In event viewer I saw messages about

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID

I didn’t bother trying to figure out if the SID, CLSID and APPID were associated with bash.

I launched Bash as administrator, which worked, and then bash as a normal user, which worked.
It seems to be fine, now.

answered Dec 15, 2018 at 21:54

user46083's user avatar

Section i: other error messages.

  • This error is closely followed by a second error, code 0x80070057 (see section 2)!

  • This error also manifests as «Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore» by typing Bash at cmd/powershell. Use Section 1 then Section 2.

Section ii: verify your installation and restart.

Be sure that WSL (Windows Subsystem Linux) is checked/installed and your computer had a proper restart: {⊞START} → type «features» (ensure «Turn Windows features on or off» is selected). → {ENTER}. → Turn Windows Subsystem for Linux on. → Press OK. → Restart your computer immediately after the installation has finished.

Section 1a: Install Linux [via the Microsoft Store].

  1. Press {⊞START} on your keyboard.
  2. Type «store» ensure «Microsoft Store» is selected. → {ENTER}}.
  3. {SHIFT}-{TAB} twice (highlight search). → {ENTER}.
  4. type «subsystem«. → {ENTER}.
  5. Select your flavor of Linux (i.e., «Ubuntu LTS 18.04») and click «Install».
  6. {⊞START}. -> Type «ubuntu» (ensure Ubuntu App is selected). → {ENTER}.

Section 1b: Side-load Linux.

*This is a placeholder—you can manually install WLS—https://learn.microsoft.com/en-us/windows/wsl/install-manual. I have not done this, yet. If you have done this, please add instructions by editing my answer; otherwise, I will post this section after performing this operation myself.

Section 2: if launching Ubuntu throws ‘WslRegisterDistribution failed with error: 0x80070057’**

After installing a linux flavor:

  1. {⊞START} → type «features» (ensure «Turn Windows features on or off» is selected). → {ENTER}.
  2. Turn Windows Subsystem for Linux off. → Press OK.
  3. Turn Windows Subsystem for Linux on.
  4. Restart your computer.
  5. {⊞START}. → type «ubuntu» (ensure «Ubuntu App» is selected). → {ENTER}

**This is the most-accepted solution for this issue is the last answer on page two at Microsoft Answers.

answered Jan 4, 2020 at 20:42

Wolfpack'08's user avatar

Wolfpack’08Wolfpack’08

3,91210 gold badges46 silver badges78 bronze badges

What worked for me was to disable and enable WSL feature from control panel:

  1. Control Panel —> Programs and Features —> Turn Windows Feature on or off
  2. Uncheck «Windows Subsystem for Linux»
  3. Uninstall Ubuntu from Windows
  4. Restart
  5. In (1), check «Windows Subsystem for Linux»
  6. Install Ubuntu
  7. Success!

answered May 6, 2021 at 10:24

Orozco's user avatar

OrozcoOrozco

3452 silver badges8 bronze badges

If none of the previuos answers worked for you, try this workaround, after trying different alternatives, this one worked for me.

  1. Run windows + R
  2. type SystemPropertiesAdvanced
  3. click settings in performance group
  4. In advanced tab, deselect the automatically manage paging file size for all drives
  5. Select custom size and enter 800 for initial size, 1024 for maximum size.
  6. Apply changes and restart.

answered May 8, 2021 at 17:02

Adrian Escutia Soto's user avatar

try

wsl --list --verbose

to see a list of all installed distributions and their names
assume you have a result that looks like this

  NAME                   STATE           VERSION
* Ubuntu-22.04           Running         2
  docker-desktop         Running         2
  docker-desktop-data    Running         2

start the Ubuntu distribution, you can run

wsl --distribution Ubuntu-22.04 --verbose

If you want to make sure that the Ubuntu distribution starts automatically when you launch the WSL subsystem

wsl --set-default Ubuntu-22.04

answered May 15 at 1:00

Geronyl Servano Paragoso's user avatar

I am trying to enable WSL with Ubuntu on a VM with Windows Server 2019. I am using the Powershell, running as Admin and following instructions here : https://docs.microsoft.com/en-us/windows/wsl/install-on-server .

After enabling WSL, I restarted and run :

Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

I can status shows as enabled. When I run wsl command I get a access denied message:

PS C:> wsl
Access is denied.

I went ahead and downloaded Ubuntu distro and ran the executable:

PS C:Usersad_svoorakkUbuntu> ./ubuntu1804.exe
Installing, this may take a few minutes...
Access is denied.
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username:

When I enter a username, I see an access denied message and am prompted for username again.

Enter new UNIX username: xxxxxxx
Access is denied.
Enter new UNIX username:

Is there something happening here because this is a VM and there is something I need to do differently? Or does WSL run on VMs at all?

After reinstalling Ubuntu on WSL, you might encounter an issue where Ubuntu fails to boot. You’ll see the following error in the console:

Failed to attach disk 'C:UsersahayaAppDataLocalPackagesCanonicalGroupLimited.Ubuntu_79rhkp1fndgscLocalStateext4.vhdx' to WSL2: The system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND
Failed to attach disk 'C:UsersahayaAppDataLocalPackagesCanonicalGroupLimited.Ubuntu_79rhkp1fndgscLocalStateext4.vhdx' to WSL2: The system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND
Failed to attach disk 'C:UsersahayaAppDataLocalPackagesCanonicalGroupLimited.Ubuntu_79rhkp1fndgscLocalStateext4.vhdx' to WSL2: The system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND
Press any key to continue...

TOC

How to fix it

To fix this problem, you’ll need to carry out the initialization process. Ubuntu on WSL executes this process during its first boot. Unfortunately, this process gets skipped during a reinstallation of Ubuntu as some information remains in the system.

Follow these steps to clear this residual information.

STEP

Press any key to quit if you see an error message.

STEP

Launch the Windows PowerShell.

STEP

Get the registered distributions.

PS C:UsersName> wsl -l
Windows Subsystem for Linux Distributions:
docker-desktop-data (Default)
docker-desktop
Ubuntu

In this example, three distributions are registered.

STEP

Unregister the Ubuntu distribution.

PS C:UsersUser> wsl --unregister Ubuntu
Unregistering.
The operation completed successfully.

STEP

Launch Ubuntu. This triggers the initialization process.

Ubuntu will now perform the initialization process as the previous registration information has been removed from your system. After completing the process, you can create a new account for Ubuntu.

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username:


0

1

Установка Ubuntu 20.04 LTS из Microsoft Store.Шаг 3.

Включил «Подсистема Windows для Linux» и на всякий случай «Платформа виртуальной машины».

Стал создавать учётную запись, но при вводе пароля буквы и числа не вводятся.
При копировании из текстового редактора пароль тоже не вводится.
Смена раскладки клавиатуры с английской на русскую тоже ничего не дала.

Installing, this may take a few minutes…
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: nats2020vtornik
New password:
Retype new password:
No password supplied
New password:

Чё делать то?

  • Enlisted ошибка при запуске easy anti cheat
  • Enlisted не запускается ошибка 10011
  • Enlisted не запускается ошибка 0xc0000142
  • Enlisted не запускается easy anti cheat ошибка
  • Enlisted код ошибки 10011