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

Restart required after WSL install #5

Open
risu729 opened this issue Jun 3, 2024 · 2 comments
Open

Restart required after WSL install #5

risu729 opened this issue Jun 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@risu729
Copy link
Owner

risu729 commented Jun 3, 2024

The installer script cannot continue after restarting.

This might work.
https://stackoverflow.com/questions/15166839/powershell-reboot-and-continue-script

@risu729 risu729 self-assigned this Jun 3, 2024
@risu729 risu729 added the bug Something isn't working label Jun 3, 2024
@risu729
Copy link
Owner Author

risu729 commented Sep 20, 2024

Got the log.
The installer script continues without restarting Windows, so the following commands fail.

The requested operation requires elevation.
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
Installing: Ubuntu 24.04 LTS
Ubuntu 24.04 LTS has been installed.
The requested operation is successful. Changes will not be effective until the system is rebooted.
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
Windows Subsystem for Linux has no installed distributions.

Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.

Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND
An unexpected error occurred while executing the command:
exists: The user name or password is incorrect.: "\\wsl.localhost\Ubuntu-24.04\home\W"
Windows Subsystem for Linux has no installed distributions.

Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.

Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND
Set-ItemProperty : Cannot find path 'HKCU:\Software\Microsoft\PowerToys' because it does not exist.
At line:28 char:1
+ Set-ItemProperty -Path HKCU:Software\Microsoft\PowerToys -Name Settin ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (HKCU:\Software\Microsoft\PowerToys:String) [Set-ItemProperty], ItemNotF
   oundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand

@risu729
Copy link
Owner Author

risu729 commented Nov 22, 2024

Need to find something like set -euo pipefail in Powershell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant