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

Cannot install WSL on Windows Server 2019 #2045

Open
Tracked by #2051
lukos opened this issue Oct 18, 2024 · 1 comment
Open
Tracked by #2051

Cannot install WSL on Windows Server 2019 #2045

lukos opened this issue Oct 18, 2024 · 1 comment

Comments

@lukos
Copy link

lukos commented Oct 18, 2024

Type of issue

Missing information

Feedback

I have tried to follow the steps in the page here: https://learn.microsoft.com/en-us/windows/wsl/install-on-server#install-wsl-on-previous-versions-of-windows-server

I definitely have a newer build of Server 2019, WSL is installed and Enabled but when I try and run the step to add the app package for the downloaded Ubuntu distro, I get the following error:

Add-AppxPackage: The 'Add-AppxPackage' command was found in the module 'Appx', but the module could not be loaded due to the following error: [Operation is not supported on this platform. (0x80131539)] For more information, run 'Import-Module Appx'.

Page URL

https://learn.microsoft.com/en-us/windows/wsl/install-on-server

Content source URL

https://github.com/MicrosoftDocs/wsl/blob/main/WSL/install-on-server.md

Author

@mattwojo

Document Id

238333c7-116d-2697-702a-58fc7efe3ee9

@lukos
Copy link
Author

lukos commented Oct 18, 2024

I also tried it in an older PS console instead of PS7 and get a different error:

Add-AppxPackage : Deployment failed with HRESULT: 0x80080204, The Appx package's manifest is invalid.
error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 96,
Note: The schema for MaxVersionTested specified does not recognize XML fields with namespace
"http://schemas.microsoft.com/appx/manifest/uap/windows10/10". Please ensure that you have the correct
MaxVersionTested specified. Reason: The attribute
'{http://schemas.microsoft.com/appx/manifest/uap/windows10/10}Parameters' on the element
'{http://schemas.microsoft.com/appx/manifest/foundation/window
error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 96,
Note: The schema for MaxVersionTested specified does not recognize XML fields with namespace
"http://schemas.microsoft.com/appx/manifest/uap/windows10/10". Please ensure that you have the correct
MaxVersionTested specified. Reason: The attribute
'{http://schemas.microsoft.com/appx/manifest/uap/windows10/10}Parameters' on the element
'{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Application' is not defined in the DTD/Schema.
NOTE: For additional information, look for [ActivityId] 52359130-2148-0003-7597-35524821db01 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 52359130-2148-0003-7597-35524821db01
At line:1 char:1
+ Add-AppxPackage .\Ubuntu_2204.1.7.0_x64.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Users\Admini....1.7.0_x64.appx:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

@likh31 likh31 mentioned this issue Nov 2, 2024
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

1 participant