yuk7 / ArchWSL

ArchLinux based WSL Distribution. Supports multiple install.
https://git.io/archwsl
MIT License
6.91k stars 201 forks source link

Can't install from scoop. Scoop package isn't working #273

Closed SonaliBendre closed 2 years ago

SonaliBendre commented 2 years ago

IMPORTANT Please read README and Docs before creating the issue.

Please fill out the below information: Describe the issue A clear and concise description of what the bug is. I tried to install archwsl in wsl2 in Windows 11 with scoop but its not installing To Reproduce Steps to reproduce the behavior:

  1. run scoop install archwsl
  2. Get error in installation
  3. run scoop uninstall archwsl
  4. get error while uninstalling Expected behavior A clear and concise description of what you expected to happen. Install silently Screenshots If applicable, add screenshots to help explain your problem. image

Enviroment:

Additional context Add any other context about the problem here.

Installing 'archwsl' (22.2.10.0) [64bit]
Loading Arch.zip from cache
Checking hash of Arch.zip ... ok.
Extracting Arch.zip ... done.
Linking ~\scoop\apps\archwsl\current => ~\scoop\apps\archwsl\22.2.10.0
Creating shim for 'Arch'.
Creating shortcut for Arch Linux (Arch.exe)
Persisting data
Running post-install script...
ERROR Exit code was 1!
WARN  DO NOT KILL THE PROCESS. Installation is still running!
ERROR Exit code was -2147024452!
ERROR ArchWsl installation failed!
'archwsl' (22.2.10.0) was installed successfully!
Notes
-----
Even when you are logging in as 'root', some operations (like service command) require Windows administrator privileges

scoop uninstall archwsl

Uninstalling 'archwsl' (22.2.10.0).
Running uninstaller script...
ERROR Exit code was 1!
ERROR ArchWsl is not registered!
Removing shim 'Arch.exe'.
Removing shim 'Arch.shim'.
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Arch Linux.lnk
Unlinking ~\scoop\apps\archwsl\current
'archwsl' was uninstalled.
yuk7 commented 2 years ago

Thank you for reporting. But I'm sorry, I'm not the maintainer of the Scoop package, so I'm not sure if I can help.

Could you check if you have enabled WSL and installed the WSL2 kernel package, again? https://aka.ms/wsl2kernel

And If you are using other VM software (VMWare, VBox, etc.), it is possible that the Hyper-V function required by WSL2 cannot be used due to this.

SonaliBendre commented 2 years ago

Thank you for reporting. But I'm sorry, I'm not the maintainer of the Scoop package, so I'm not sure if I can help.

Could you check if you have enabled WSL and installed the WSL2 kernel package, again? https://aka.ms/wsl2kernel

And If you are using other VM software (VMWare, VBox, etc.), it is possible that the Hyper-V function required by WSL2 cannot be used due to this.

Thanks for the fast reply. Updated my issue comment with system details

I run wsl in terminal and its working. I think its wsl2 since my build version is 220000 Yes I use WindowsSubsystemForAndroid

SonaliBendre commented 2 years ago

WSA is official product of microsoft

SonaliBendre commented 2 years ago

Please check Environment. I edited it

SonaliBendre commented 2 years ago

image image

SonaliBendre commented 2 years ago

wsl2 is installed right?

yuk7 commented 2 years ago

Thank you very much for filling environment infos. Your WSL is enabled correctly. thank you. But I'm not sure if your WSL2 is working.

Could you to install this package and try install again? https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

SonaliBendre commented 2 years ago

OK.

BTW I had installed WindowsSubsystemForAndroid from https://github.com/LSPosed/MagiskOnWSA for rooting. Does it cause any problem?

SonaliBendre commented 2 years ago

thank you @yuk7 for the fix, ArchWSL started sucessfully but I got a one line error again :((((( I afraid it may break my WSL setup :(((( I can't see scoop log so no idea what's the error is actually

see

Installing 'archwsl' (22.2.10.0) [64bit]
Loading Arch.zip from cache
Checking hash of Arch.zip ... ok.
Extracting Arch.zip ... done.
Linking ~\scoop\apps\archwsl\current => ~\scoop\apps\archwsl\22.2.10.0
Creating shim for 'Arch'.
Creating shortcut for Arch Linux (Arch.exe)
Persisting data
Running post-install script...
ERROR Exit code was 1!
WARN  DO NOT KILL THE PROCESS. Installation is still running!
'archwsl' (22.2.10.0) was installed successfully!
Notes
-----
Even when you are logging in as 'root', some operations (like service command) require Windows administrator privileges
SonaliBendre commented 2 years ago

image

SonaliBendre commented 2 years ago

FIXED: wsl --update