Enter new unix username ошибка

Environment Windows build number: Microsoft Windows NT 10.0.19041.0 Your Distribution version: Debian Kali Linux v1.1.4.0 Whether the issue is on WSL 2 and/or WSL 1: I have wsl2 as default, ubuntu ...

Environment

Windows build number:  Microsoft Windows NT 10.0.19041.0
Your Distribution version: Debian Kali Linux v1.1.4.0
Whether the issue is on WSL 2 and/or WSL 1: I have wsl2 as default, ubuntu returns "Linux version 4.19.104-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Feb 19 06:37:35 UTC 2020" but I can't access Kali's terminal ;-;

Steps to reproduce

On a fresh install of windows 10 version 2004, following microsoft’s wsl2 installation guide, I managed to set wsl2 as my default and tried installing Kali Linux from the Microsoft store, after going through the store’s own hell of bugs I got Kali linux to download all good till now..

Once I launched Kali from the start menu live tile it started installing.
couple of minutes passed and I got promoted to create a UNIX user account, and here is where it happened.. no matter what I enter, I always get There is no distribution with the supplied name.

I tried installing Ubuntu, seemed to run fine it installed and I got to create a new user account there so the problem really is from Kali only, or unless it’s Microsoft store issue which I believe it’s unlikely to be the reason.

Expected behavior

Create a new UNIX account and password, Tried a couple hundred username ngl, It also blocks installation so I couldn’t even do anything terminal related for Kali Linux.

Actual behavior

Installing, this may take a few minutes...
There is no distribution with the supplied name.
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: klox
There is no distribution with the supplied name.
Enter new UNIX username: uh
There is no distribution with the supplied name.
Enter new UNIX username: please work?
There is no distribution with the supplied name.
Enter new UNIX username: somelongname
There is no distribution with the supplied name.
Enter new UNIX username: smolnme
There is no distribution with the supplied name.
Enter new UNIX username: yeah this isn't going to work lol
There is no distribution with the supplied name.
Enter new UNIX username:

Also

Hey! you guys are truly amazing, being part of this tools development is like writing history, keep going and I wish you have a hella awesome day! <3

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

5952 gold badges5 silver badges8 bronze badges

2

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,67235 gold badges33 silver badges35 bronze badges

answered Jun 25, 2020 at 17:46

Mark's user avatar

MarkMark

5414 silver badges2 bronze badges

4

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 badge12 silver badges30 bronze badges

1

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,2071 gold badge12 silver badges18 bronze badges

3

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,84410 gold badges45 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

3352 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

I am trying to set up Windows Subsystem for Linux on my Surface Laptop running Windows 10 Version 1909 (Build 18363.836). I am encountering an issue when attempting to create a user account. I have tried multiple distros such as Kali Linux, Ubuntu, and Debian. Here is what I get on every distro:

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 create a user account, I get the error Access Denied:

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: test
Access is denied.
Enter new UNIX username:

This goes on in an infinite loop. I have tried the following:

  • Reinstalling the distro from the Microsoft Store.
  • Resetting the app from Windows Settings.
  • Repairing the app from Windows Settings.
  • Turning of Windows Defender Application Control in Group Policy Editor.
  • Installing a different distro.

I have also noticed that when I open PowerShell, CMD, or Windows Terminal and I type bash, I get access denied. I have also tried running bash as an administrator from Run, File Explorer, and from Windows Search. I have made sure that I have permission to execute bash.exe. I have also tried making myself the owner of bash.exe.

Does anyone know what’s going on? Thanks!

EDIT:
Here is the screenshot requested by Ramhound.
enter image description here

EDIT:

I was referring to this post which described another way to restart the LxssManager.

I ran into an error while doing this. I see that I do not have permission to restart the service properly.

Here is the output of sc stop LxssManager which was used in order to try and restart LxssManager. (This was done in an elevated command prompt.)


C:WINDOWSsystem32>sc stop LxssManager                                                                                                                                                                                                         

SERVICE_NAME: LxssManager                                                                                                       

TYPE               : 30  WIN32                                                                                          

STATE              : 3  STOP_PENDING                                                                                                            

(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)                                                 

WIN32_EXIT_CODE    : 0  (0x0)                                                                                           

SERVICE_EXIT_CODE  : 0  (0x0)                                                                                           

CHECKPOINT         : 0x2                                                                                                

WAIT_HINT          : 0xea60

Here is the output when done in a regular Command Prompt (not elevated).

C:Usersaadit>sc stop LxssManager
[SC] OpenService FAILED 5:

Access is denied.

I am trying to add a new user when first installing Ubuntu 18.04 LTS and I get this:

Enter new UNIX username: rob
groupadd: /etc/group.5: lock file already used
groupadd: cannot lock /etc/group; try again later.
adduser: `/usr/sbin/groupadd -g 1000 rob' returned error code 10. Exiting.

It is very similar to this question, however I don’t think the problem is precisely the same as I get this right after download and launch. I have been doing everything as the root user and I know this is bad practice.

asked Jul 5, 2019 at 23:29

9thWave's user avatar

You did something, as root, that created a lock file, in order to gain exclusive access, but whatever it was didn’t release the lock, either because it’s still running or it aborted.

Check to see if it’s still open:

sudo lsof /etc/group.5

If so, deal with the process that has it open.

If not, simply rm /etc/group.5

In either case, check /etc/group — your last changes may have been lost.

answered Jul 6, 2019 at 0:06

waltinator's user avatar

waltinatorwaltinator

34.3k19 gold badges57 silver badges92 bronze badges

Рекомендуем: Как запускать приложения Linux GUI  в Windows 10.

Что такое Bash Linux 

Для тех, кто не знает, Bash или Bourne Again Shell является стандартной программой GNU Linux Shell. Согласно Википедии, Bash — оболочка командного языка Unix для проекта GNU в качестве бесплатной замены программного обеспечения для оболочки Bourne, он был широко распространен в качестве оболочки для операционной системы GNU, и в качестве оболочки по умолчанию на Linux и OS X. 

Начиная с обновления Windows 10 Anniversary, вы можете использовать подсистему Linux в Windows, Bash может быть очень полезен, но для большинства пользователей, работа только с командной строкой может быть слишком скучной. В последних сборках нет необходимости включать режим разработчика, Bash работает прекрасно и без этой опции. 

Как запустить Bash в Windows 10 

Шаг 1: Откройте приложение «Параметры» и перейдите «Приложения» →«Приложения и возможности»  прокрутите страницу в низ до раздела «Сопутствующие параметры» и нажмите на ссылку — «Программы и компоненты».  

 «Сопутствующие параметры»

Шаг 2: В левой части окна нажмите «Включение или отключение компонентов Windows»  и выберите в диалоговом окне —  «Подсистема Windows для Linux». Нажмите кнопку «OK».  (см. картинку)

Выберите " Подсистема Windows для Linux ". Нажмите кнопку OK.

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

Шаг 3: Перезагрузите ваше устройство.

Шаг 4: Откройте Магазин Windows и введите в строку поиска «Ubuntu»

(Вы также можете установить вместо Ubuntu SUSE linux или OpenSUSE)

Шаг 5: В результатах поиска, выберите нужный компонент, в нашем случае это Ubuntu для Windows, и установите приложение.

установите приложение

Шаг 6: После установки запустите Убунту, вы можете это сделать, нажав на кнопку «Запустить» непосредственно в магазине, с помощью ярлыка в меню «Пуск» или введя в командной строке «Bash».

«Запустить» непосредственно в магазине, с помощью ярлыка в меню «Пуск» или введя в командной строке «Bash»

Шаг 7: После открытия «Ubuntu для Windows», установка подсистемы продолжится. Будет выполнена установка среды Ubuntu в Windows. Она предоставляется Canonical и лицензирована в соответствии с условиями компании, с которыми можно ознакомиться здесь: https://aka.ms/uowterms

Установка займет некоторое время, так что будьте терпеливы. В процессе вам потребуется создать новое имя пользователя UNIX и пароль.

оздать новое имя пользователя UNIX и пароль

Шаг 8: После запроса Enter new UNIX username: Введите новое имя пользователя

Шаг 9: После запроса Enter new UNIX password: Введите желаемый пароль

Обратите внимания при заполнении поля Enter new UNIX password — символы пароля не отображаются на экране.

Подтвердите введенный пароль.

Установка Bash успешно завершена!Все!  Установка Bash успешно завершена!

Теперь вы можете запустить Bash скрипты, Linux утилиты командной строки, непосредственно в Windows, и даже Linux-инструменты разработки, оболочки, системы и сервисы. Также  можете получить доступ к файловой системе Windows, внутри Bash.

  • утилиты командной строки apt, sed, grep, awk, top, tmux, ssh, scp и другие;
  • инструменты разработки: Vim, Emacs, nano, Git, GDB и др.;
  • оболочки bash, zsh, fish и др.;
  • системы и сервисы: sshd, Apache, lighttpd, nginx, MySQL, PostgreSQL .
  • платформы и языки: Node.js и npm, Ruby и Gems, Java и Maven, Python и Pip, C/C++, C# и .NET Core и NuGet, Go, Rust, Haskell, Elixir/Erlang и другие;

Windows  Subsystem for Linux одно из самого интересного, что случилось с Windows, в последнее время.

Рекомендуем: Как запустить Linux с графической оболочкой рабочего стола используя WSL 2 в Windows 10

Дистрибутивы Ubuntu, openSUSE Leap, SUSE Linux Enterprise Server из Магазина Microsoft в Windows 10.

We need to enable Windows Subsystem for Linux (Beta) which is basically Ubuntu linux on Windows.

1. Before installing the Linux Subsystem, you have to have:

  • Windows 10 (Anniversary update or later version)
    64-bit installation (can’t run on 32-bit systems)

2. Go to Windows Settings and click on pushbutton to Enable developer mode. It may take 30min or so to install packages. It failed once and retry was successful.

3. Next go to Programs and Features->Turn Windows features on or off. Click the Windows Subsystem for Linux (Beta). Go ahead and reboot if it asks.

Alternatively you can Enable the “Windows Subsystem for Linux” optional feature from command line:

  1. Open Windows PowerShell as Administrator and run:

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

4. Fall Creators Update and later: Install from the Microsoft Store as given in the instructions in https://docs.microsoft.com/en-us/windows/wsl/install-win10

Open the Microsoft Store and choose your favorite Linux distribution.
Here are links directly to the store installers:

  • Ubuntu
  • OpenSUSE
  • SLES

After Launch of the install it will take about 30min and give you a prompt as below:

Installing, this may take a few minutes…
Installation successful!
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: root

Enter new Unix password:

Retype new UNIX password:
passwd: password updated successfully
Default UNIX user set to: root
root@:~#

—————————————————————————————–

Note: If using earlier version of Windows 10 then after the reboot open a Windows command prompt and type bash and type “y” to continue. Chose root as the initial linux userid when prompted.

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:Users>bash
— Beta feature —
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms

Type “y” to continue: y
Downloading from the Windows Store… 100%
Extracting filesystem, this will 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: root
Found UNIX user: root
Installation successful!
The environment will start momentarily…
Documentation is available at: https://aka.ms/wsldocs
root@localhost:/mnt/c/Users/#

—————————————————————————————————

5. Bash on Ubuntu on Windows app will show up in Windows Start. Click on it. You will get a bash terminal and Ubuntu will be up and running now.

6. Check the Linux version:

$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 16.04.2 LTS

Release: 16.04

Codename: xenial

Note the windows drives are mounted in the Subsystem inside the /mnt directory

cd into your Windows user’s Documents directory:

$cd /mnt/c/Users/youruserid/Documents/

You will now have a running Ubuntu on Windows where you can install any Ubuntu packages. And it takes only couple of GB of space and little bit of cpu so wont slow down your laptop like running a Linux VM on Windows.

You can access this Ubuntu server on Windows using Mobaxterm terminal as below:

Download Mobaxterm if you dont have it and install it and must be version 10.5 or higher. Click on the Session icon and then click on Shell icon. Then select Terminal shell dropdown as Ubuntu Bash (WSL). Select any Startup directory such as c: and click ok. Thats all you should be able to see a terminal session on your Ubuntu server to work with just like Putty. For more info see the blog:   https://blog.mobatek.net/post/mobaxterm-new-release-9.3/

Published
November 21, 2017May 6, 2018

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Eos webcam utility error
  • Eos failed to init platform mortal online 2 как исправить
  • Eos err 1603 эпик геймс как исправить
  • Eos 32 bosch ошибка
  • Eolo mythos 24 ошибка е44

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии