Skip to content

Add-AppxPackage : Deployment failed with HRESULT: 0x80080204, The Appx package's manifest is invalid.Β #9721

Closed
@Martin-Suska

Description

@Martin-Suska

Windows Version

Microsoft Windows [Version 10.0.17763.3887]

WSL Version

N/A

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

N/A

Distro Version

Ubuntu 22.04 LTS

Other Software

No response

Repro Steps

I followed the instructions from https://learn.microsoft.com/en-us/windows/wsl/install-on-server

I downloaded Ubuntu2204-221101.AppxBundle which is downloaded, when clicked on a link from https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions from a browser.

Instructions says it should be with suffix .appx, but it's only when downloaded via command (Invoke-WebRequest/curl.exe, which I tried too - same file is downloaded).

Those 2 pages contains different instructions, but I tried both:

  • Add-AppxPackage .\Ubuntu2204-221101.AppxBundle
  • Add-AppxPackage .\Ubuntu_2204.1.7.0_x64.appx
    • where Ubuntu_2204.1.7.0_x64.appx is extracted from Ubuntu2204-221101.AppxBundle

Expected Behavior

I expected it would work - install Ubuntu.

Actual Behavior

It failed with an error instead:

PS C:\download\Ubuntu> Add-AppxPackage .\Ubuntu_2204.1.7.0_x64.appx
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] 5a67827c-4ccc-0005-bf89-675acc4cd901 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 5a67827c-4ccc-0005-bf89-675acc4cd901
At line:1 char:1
+ Add-AppxPackage .\Ubuntu_2204.1.7.0_x64.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\msuska\downl....1.7.0_x64.appx:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

I'm on Windows Server 2019 Datacenter, version 1809 (which is 1709+ as mentioned on webpage).

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions