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

Installing Oracle Linux 9.1 through WSL fails to install - Error code: Wsl/InstallDistro/0x8007139f #12544

Closed
1 of 2 tasks
someguy916 opened this issue Feb 3, 2025 · 12 comments

Comments

@someguy916
Copy link

Windows Version

Microsoft Windows [Version 10.0.20348.3091]

WSL Version

WSL version: 2.3.26.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

Oracle Linux 9.1

Other Software

No response

Repro Steps

Open Administrative Powershell Shell window
wsl --install -d OracleLinux_9_1

Expected Behavior

I expected Oracle Linux 9.1 to be loaded through WSL without any issues.

Actual Behavior

C:\WINDOWS\system32>wsl --install -d OracleLinux_9_1
Downloading: Oracle Linux 9.1
Installing: Oracle Linux 9.1
Oracle Linux 9.1 has been installed.
Launching Oracle Linux 9.1...
The group or resource is not in the correct state to perform the requested operation.
Error code: Wsl/InstallDistro/0x8007139f

Diagnostic Logs

WslLogs-2025-01-29_10-48-29.zip

Copy link

github-actions bot commented Feb 3, 2025

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
Detected appx version: 2.3.26.0
Found no WSL traces in the logs

@someguy916
Copy link
Author

Copy link

github-actions bot commented Feb 3, 2025

Diagnostic information
Detected appx version: 2.3.26.0
Detected user visible error: Wsl/InstallDistro/0x8007139f

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 4, 2025

Thank you @someguy916. Looking through the logs, it looks like WSL couldn't find the app entrypoint.

Can you try to uninstall the package and run wsl --install <distro> --web-download ?

Uninstall via (elevated powershell):

get-appxpackage -AllUsers | Where-Object { $_.PackageFamilyName.contains("OracleAmericaInc") } | Remove-AppxPackage -AllUsers

?

@someguy916
Copy link
Author

WslLogs-2025-02-04_14-43-50.zip

Thank you OneBlue for reaching out. I used the provided uninstall command for powershell and used the provided wsl command but I'm still getting the same error message.

Image

Copy link

github-actions bot commented Feb 4, 2025

Diagnostic information
Detected appx version: 2.3.26.0
Detected user visible error: Wsl/InstallDistro/0x8007139f

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 4, 2025

Interesting. This is the error causing this:

34	True	Microsoft.Windows.Subsystem.Lxss	LxssVerboseLog	0	02-04-2025 14:44:33.946	"	"	"Code: 	
File: 	C:\__w\1\s\src\windows\common\Distribution.cpp
FunctionName: 	
HRESULT: 	0x8007023E
Line number: 	307
Message: 	""std::exception: directory_iterator::directory_iterator: The system cannot find the path specified.: """"C:\Users\hchan-sa\AppData\Local\Microsoft\WindowsApps\3810OracleAmericaInc.62074632F71C9_dm28ctvqnhe9g""""""
Type: 	2
wslVersion: 	2.3.26.0"				1984	9664	5		8a13e41f-71bf-0002-b101-348abf71db01		

Can you check if C:\Users\hchan-sa\AppData\Local\Microsoft\WindowsApps\3810OracleAmericaInc.62074632F71C9_dm28ctvqnhe9g exists ? I wonder if the application got installed somewhere else

@someguy916
Copy link
Author

I looked at the path but I don't see any files called 3810Oracle...

Image

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 4, 2025

Ok that's most likely the issue. What's the output of:

 get-appxpackage -AllUsers | Where-Object { $_.PackageFamilyName.contains("OracleAmericaInc") }

?

@someguy916
Copy link
Author

I don't get any output when I use the command:

Image

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 5, 2025

Hmm, what if you manually install the distribution package from: https://publicwsldistros.blob.core.windows.net/wsldistrostorage/OracleLinux_9.1-230428.Appx ?

@someguy916
Copy link
Author

someguy916 commented Feb 5, 2025

Hi OneBlue,

Thank you for providing the appx file. I was able to determine the cause of the error because of an applocker policy that prevented me from running the appx file.

Image

I created a GPO that allowed me to open the appx and and I was able to use the "WSL" command to install.

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

No branches or pull requests

2 participants