Cannot install Ubuntu 20.04 LTS on windows server 2019

Gerard Forcada Bigas 21 Reputation points
2022-09-05T15:22:01.097+00:00

The "Windows Server Installation Guide" refers to "Manual installation steps for older versions of WSL" section "Downloading distributions" which links to some DistrubutionXX.AppxBundle files which cannot be installed in my server "Microsoft Windows Server 2019 ( 1809 OS Build 17763.3287)"

Leads to "Please ensure that you have the correct MaxVersionTested" error.

Using on decompressed file:
Add-AppxPackage .\Ubuntu_2204.0.10.0_x64.appx

Raises:

 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 104, 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/windo  
    error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 104, 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] 9179292a-c12e-0001-eb47-79912ec1d801 in the Event Log or use the command line Get-AppPackageLog -ActivityID 9179292a-c12e-0001-eb47-79912ec1d801  

Using:
Add-AppxProvisionedPackage -PackagePath C:\Users\adminquopiam\Downloads\Ubuntu2204-220620.AppxBundle -SkipLicense -Online
Raises:

error C00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 104, 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.  

Referred url's:

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

https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions

Thanks

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,448 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,105 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Selim Abdelsattar 10 Reputation points
    2024-02-21T13:19:23.76+00:00

    you need to rename the appropriate package which ends with x64 again to .zip then extract it again to have the ubuntu.exe then run it and it will install , the manafist file resides inside each package 1- Rename the downloaded file Ubuntu2204.appx to Ubuntu2204_.zip, then extract this archive. Inside there are different appx files for different platforms. Choose the one for your platform, e.g. Ubuntu_2204.1.7.0_x64.appx. 2 - Rename the appx file for your platform again to Ubuntu2204.zip and extract this archive. 3- Extract the files in Ubuntu2204.zip to the target location where you would like your linux distro to reside. 4- Open the target location folder with the files of Ubuntu2204.zip extracted and run the file ubuntu.exe, which is located inside the folder. This will install the distribution

    User's image

    2 people found this answer helpful.

  2. Dave Patrick 426.1K Reputation points MVP
    2022-09-05T15:29:30.16+00:00

    Are you installing a virtual machine? Looks to be supported.
    https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/supported-ubuntu-virtual-machines-on-hyper-v

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Stephane BARIZIEN 0 Reputation points
    2023-04-07T12:58:56.0466667+00:00

    With CanonicalGroupLimited.Ubuntu20.04LTS_2004.5.11.0_neutral_~_79rhkp1fndgsc.appxbundle (pulled from the Microsoft Store) I still get: 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 104 Where have you found CanonicalGroupLimited.UbuntuonWindows_2004.2021.825.0.AppxBundle ?

    0 comments No comments