Moves all Ubuntu distros to the tar-based format#14463
Moves all Ubuntu distros to the tar-based format#14463OneBlue merged 2 commits intomicrosoft:masterfrom
Conversation
We backported the build pipeline so all current LTSes come out in the new tar-based format
All WSL users can run tar-based distros by now, right? There is no benefit in maintaining both formats.
There was a problem hiding this comment.
Pull request overview
Updates the WSL distribution manifest to prefer tar-based (“modern”) Ubuntu LTS installations over legacy Store/Appx-based installs, aiming for consistent installation behavior across Ubuntu LTS versions.
Changes:
- Added
Ubuntu-22.04andUbuntu-20.04entries underModernDistributionswith tar-based.wslURLs and SHA-256 hashes. - Removed legacy
Distributions(Store/Appx) entries forUbuntu-20.04,Ubuntu-22.04, andUbuntu-24.04from the manifest.
| "Amd64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/KaliLinux_1.13.1.0.AppxBundle", | ||
| "Arm64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/KaliLinux_1.13.1.0.AppxBundle", | ||
| "PackageFamilyName": "KaliLinux.54290C8133FEE_ey8k8hqnwqnmg" | ||
| }, | ||
| { | ||
| "Name": "Ubuntu-20.04", | ||
| "FriendlyName": "Ubuntu 20.04 LTS", | ||
| "StoreAppId": "9MTTCL66CPXJ", | ||
| "Amd64": true, | ||
| "Arm64": true, | ||
| "Amd64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/Ubuntu2004-230608_x64.appx", | ||
| "Arm64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/Ubuntu2004-230608_ARM64.appx", | ||
| "PackageFamilyName": "CanonicalGroupLimited.Ubuntu20.04LTS_79rhkp1fndgsc" | ||
| }, | ||
| { | ||
| "Name": "Ubuntu-22.04", | ||
| "FriendlyName": "Ubuntu 22.04 LTS", | ||
| "StoreAppId": "9PN20MSR04DW", | ||
| "Amd64": true, | ||
| "Arm64": true, | ||
| "Amd64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/Ubuntu2204LTS-230518_x64.appx", | ||
| "Arm64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/Ubuntu2204LTS-230518_ARM64.appx", | ||
| "PackageFamilyName": "CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc" | ||
| }, | ||
| { | ||
| "Name": "Ubuntu-24.04", | ||
| "FriendlyName": "Ubuntu 24.04 LTS", | ||
| "StoreAppId": "9NZ3KLHXDJP5", | ||
| "Amd64": true, | ||
| "Arm64": true, | ||
| "Amd64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/Ubuntu2404-240425.AppxBundle", | ||
| "Arm64PackageUrl": "https://publicwsldistros.blob.core.windows.net/wsldistrostorage/Ubuntu2404-240425.AppxBundle", | ||
| "PackageFamilyName": "CanonicalGroupLimited.Ubuntu24.04LTS_79rhkp1fndgsc" | ||
| }, | ||
| { |
|
@CarlosNihelton: One side effect of doing this is that old Windows builds that don't have tar based distribution support will fail if the user runs: Since 'ubuntu' is the default. These builds are technically out of support, but I would still like to avoid hard-breaking them. I can think of two solutions:
|
Hi @OneBlue ! Thanks for the quick notice! If I got you correctly, we should be fine as the unversioned Ubuntu appx is preserved as is (no breaking changes for Let me rephrase my PR description, as I'm only touching the versioned apps. Yet, it's worth raising the question: until when do we believe the appx will still be necessary? |
We can discuss this topic later if there is no clear answer as of now. |
Ah indeed I misread the diff and assumed that all the appx ubuntu distros were being moved. If we're keeping the default unversionned appx, then I'm not worried about this.
That's a great question ! I don't have a clear answer to it right now. If this ever become a problem to maintain on the Ubuntu side, we should probably discuss this with @craigloewen-msft |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Summary of the Pull Request
This PR aims to move all Ubuntu LTSes to the new tar-based format, removing support for the versioned appx based distros.
The existing instances will continue working as expected, but new installations shouldn't fetch appx's from Microsoft Store. Instead, new installations are going to leverage the new tar based format, bringing consistency to all Ubuntu LTSes on WSL.
The default unversioned Ubuntu appx is preserved as is, for backwards compatibility, ensuring that the "Default" field works on both modern and legacy WSL setups.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed
Used the resulting
DistributionInfo.jsonas a replacement manifest by writing its path in the registry keyHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\LxssDIstributionListURLvalue, then installedUbuntu-22.04andUbuntu-20.04.