question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maui: Workload installation failed: The transaction has aborted

See original GitHub issue

hello I have problem with workload install maui I’ve tried to fix it but all my attempts were failed same problem appears with maui-check command or dotnet workload install maui command I need your help

Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.0-preview.7.21377.19… Workload installation failed: The transaction has aborted.

this what appears exactly

! Attempt to fix? [y/n] (y): y » Attempting to fix: .NET SDK - Workloads (6.0.100-preview.7.21379.14) SHELL: C:\Program Files\dotnet\dotnet.exe workload repair --source “https://api.nuget.org/v3/index.json” --source “https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-preview.7.21379.14-shipping-1/nuget/v3/index.json

Repairing workload installation for workloads: Garbage collecting for SDK feature bands …

Successfully repaired worklods:

SHELL: C:\Program Files\dotnet\dotnet.exe workload update --sdk-version 6.0.100-preview.7.21379.14 --no-cache --disable-parallel --from-rollback-file “C:\Users\halis\AppData\Local\Temp\maui-check-dotnet-work-dir\workload.json” --source “https://api.nuget.org/v3/index.json” --source “https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-preview.7.21379.14-shipping-1/nuget/v3/index.json

No workloads installed for this feature band. To update from the previous SDK, include the --from-previous-sdk option. Updated advertising manifest microsoft.net.sdk.android. Updated advertising manifest microsoft.net.sdk.ios. Updated advertising manifest microsoft.net.sdk.maccatalyst. Updated advertising manifest microsoft.net.sdk.macos. Updated advertising manifest microsoft.net.sdk.maui. Updated advertising manifest microsoft.net.sdk.tvos. Updated advertising manifest microsoft.net.workload.emscripten. Updated advertising manifest microsoft.net.workload.mono.toolchain. Installing workload manifest microsoft.net.sdk.android version 30.0.100-preview.7.110. Installing workload manifest microsoft.net.sdk.ios version 15.0.100-preview.7.230. Installing workload manifest microsoft.net.sdk.maccatalyst version 15.0.100-preview.7.230. Installing workload manifest microsoft.net.sdk.tvos version 15.0.100-preview.7.230. Installing workload manifest microsoft.net.sdk.macos version 12.0.100-preview.7.230. Installing workload manifest microsoft.net.sdk.maui version 6.0.100-preview.7.1345. Installing workload manifest microsoft.net.workload.mono.toolchain version 6.0.0-preview.7.21377.19. Installing workload manifest microsoft.net.workload.emscripten version 6.0.0-preview.7.21377.2. No workloads installed for this feature band. To update from the previous SDK, include the --from-previous-sdk option. Garbage collecting for SDK feature bands …

Successfully updated workload(s): .

SHELL: C:\Program Files\dotnet\dotnet.exe workload install --sdk-version 6.0.100-preview.7.21379.14 --no-cache --disable-parallel android-aot ios maccatalyst tvos macos maui wasm-tools --skip-manifest-update --source “https://api.nuget.org/v3/index.json” --source “https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-preview.7.21379.14-shipping-1/nuget/v3/index.json

Installing pack Microsoft.Android.Sdk version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Sdk version 30.0.100-preview.7.110… Installing pack Microsoft.Android.Sdk.BundleTool version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Sdk.BundleTool version 30.0.100-preview.7.110… Installing pack Microsoft.Android.Ref version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Ref version 30.0.100-preview.7.110… Installing pack Microsoft.Android.Runtime.android-arm version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Runtime.android-arm version 30.0.100-preview.7.110… Installing pack Microsoft.Android.Runtime.android-arm64 version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Runtime.android-arm64 version 30.0.100-preview.7.110… Installing pack Microsoft.Android.Runtime.android-x86 version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Runtime.android-x86 version 30.0.100-preview.7.110… Installing pack Microsoft.Android.Runtime.android-x64 version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Runtime.android-x64 version 30.0.100-preview.7.110… Installing pack Microsoft.Android.Templates version 30.0.100-preview.7.110… Writing workload pack installation record for Microsoft.Android.Templates version 30.0.100-preview.7.110… Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm version 6.0.0-preview.7.21377.19… Workload installation failed, rolling back installed packs… Uninstalling workload pack Microsoft.Android.Sdk version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.Android.Sdk.BundleTool version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.Android.Ref version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.Android.Runtime.android-arm version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.Android.Runtime.android-arm64 version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.Android.Runtime.android-x86 version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.Android.Runtime.android-x64 version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.Android.Templates version 30.0.100-preview.7.110. Uninstalling workload pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.0-preview.7.21377.19. Rolling back pack Microsoft.Android.Sdk installation… Rolling back pack Microsoft.Android.Sdk.BundleTool installation… Rolling back pack Microsoft.Android.Ref installation… Rolling back pack Microsoft.Android.Runtime.android-arm installation… Rolling back pack Microsoft.Android.Runtime.android-arm64 installation… Rolling back pack Microsoft.Android.Runtime.android-x86 installation… Rolling back pack Microsoft.Android.Runtime.android-x64 installation… Rolling back pack Microsoft.Android.Templates installation… Rolling back pack Microsoft.NETCore.App.Runtime.Mono.android-arm installation… Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-arm version 6.0.0-preview.7.21377.19… Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.0-preview.7.21377.19… Workload installation failed: The transaction has aborted. install Install a workload.

Usage: dotnet [options] workload install [<WORKLOAD_ID>…]

Arguments: <WORKLOAD_ID> The NuGet Package Id of the workload to install.

Options: –sdk-version <VERSION> The version of the SDK. –configfile <FILE> The NuGet configuration file to use. -s, --source <SOURCE> The NuGet package source to use during the restore. –skip-manifest-update Skip updating the workload manifests. –from-cache <from-cache> Complete the operation from cache (offline). –download-to-cache <download-to-cache> Download packages needed to install a workload to a folder which can be used for offline installation. –include-previews Allow prerelease workload manifests. –temp-dir <temp-dir> Configure the temporary directory used for this command (must be secure). –disable-parallel Prevent restoring multiple projects in parallel. –ignore-failed-sources Treat package source failures as warnings. –no-cache Do not cache packages and http requests. –interactive Allows the command to stop and wait for user input or action (for example to complete authentication). -v, --verbosity <d|detailed|diag|diagnostic|m|minimal|n|normal|q|quiet> Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. -?, -h, --help Show help and usage information

Fix failed - Workload Install failed: dotnet workload install --sdk-version 6.0.100-preview.7.21379.14 --no-cache --disable-parallel android-aot ios maccatalyst tvos macos maui wasm-tools --skip-manifest-update --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-preview.7.21379.14-shipping-1/nuget/v3/index.json" ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! There were one or more problems detected. Please review the errors and correct them and run maui-check again.

Press enter to exit…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:33 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
sfoslundcommented, Aug 26, 2021

Thanks for providing the info, @StevenTCramer! Is @mattleibow’s observation relevant to you as well? Are you physically located far away from Redmond, WA?

0reactions
dsplaistedcommented, Sep 20, 2021

@jonlipsky Great, then it seems likely that #21102 will fix this for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Better handling of package signature failures during install ...
If package signature validation fails, check for a properly signed version of the package in other specified feeds before aborting workload ...
Read more >
Net MAUI app not building due to missing workload but ...
I installed .net maui through visual studio 2022 and created a new project. The template is there, it all looks fine. Until I...
Read more >
ASP.NET Core updates in .NET 6 Preview 5
Note: There is a known issue with installing optional SDK workloads using the .NET 6 Preview 5 SDK included with Visual Studio 2022...
Read more >
Troubleshoot known issues - .NET MAUI
The solution to this issue on Windows is to uninstall the .NET MAUI workloads through the CLI, uninstall any .NET SDKs in Control...
Read more >
Build message for MAUI workload results in error
NET team if the "To install these workloads, run the following command:" message can be improved.".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found