Skip to content
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

Installer reported failure but user was created #180

Closed
CarlosNihelton opened this issue Apr 26, 2022 · 1 comment · Fixed by #181
Closed

Installer reported failure but user was created #180

CarlosNihelton opened this issue Apr 26, 2022 · 1 comment · Fixed by #181
Assignees

Comments

@CarlosNihelton
Copy link
Collaborator

CarlosNihelton commented Apr 26, 2022

Graphical installer apparently completes its steps but the console shows error 0x80004004 Operation aborted and applies the fallback method, which fails if the username provided is the same previously provided to the GUI because the installer did create the user in the first place.

wsl --status

Distribuição Padrão: UbuntuDev.WslID.Dev
Versão Padrão: 2
WSL1 não é compatível com a configuração atual da máquina.
 Habilite o componente opcional "Windows Subsystem for Linux" para usar WSL1.

Versão do WSL: 0.58.3.0
Versão do kernel: 5.10.102.1
Versão do WSLg: 1.0.33
Versão do MSRDC: 1.2.2924
Versão do Direct3D: 1.601.0
Versão do Windows: 10.0.22598.200

Windows build number

Windows 11 Dev channel (build 22598)

Test Case

  1. Make sure ubuntu-22.04 is not already registered
  2. Run ubuntu2204.exe --ui=gui from command line (to ensure GUI mode will be applied).
  3. Follow the graphical installation steps. Take a note of the username provided.
  4. When allowed click on the "Finish" button.

Actual result

Error message 0x80004004 Operation aborted is displayed, fallback method is applied and it subsequently fails if the same user name is provided because the user was already created by the installer GUI.

Installer did not complete successfully.
Error: 0x80004004 Operation aborted

Applying fallback method.
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: carlo
adduser: The user `carlo' already exists.
Enter new UNIX username:

Expected behavior

No error messages and Linux shell opened with the newly created user logged in.

@CarlosNihelton
Copy link
Collaborator Author

CarlosNihelton commented Apr 26, 2022

This seems only reproducible with the latest Windows 11 build, from insiders program. Failed to reproduce it with a couple of older builds, only succeeding with this one: 22598.200.

CarlosNihelton added a commit that referenced this issue Apr 26, 2022
Windows 11 build 22598 users reported GUI mode failed but worked.
Thus, when applying the fallback with the same username,
The fallback method also failed.
OOBE is returning a failed exit code, but Subiquity concluded its work.
This ensures to return 0 if server-state is successful.
Returns OOBE error code otherwise.

Fixes issue #180
@CarlosNihelton CarlosNihelton self-assigned this Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant