Fail to install MAUI from main branch with error "Package signature validation failed"
See original GitHub issueDescription
After installing the .NET 6.0 SDK, fails to install MAUI from main branch with the following error:
Workload installation failed: One or more errors occurred. (Failed to validate package signing.
Verifying Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.300.Msi.x64.6.0.9
error: NU3004: The package is not signed.
Package signature validation failed.)
Steps to Reproduce
- Install the .NET 6.0 SDK
- Run open up a Windows PowerShell (run as administrator)
- Execute the below command from the script to install the maui workload
dotnet workload install maui ` --from-rollback-file https://aka.ms/dotnet/maui/net6.0.json ` --source https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-6bb76b3f/nuget/v3/index.json ` --source https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-1026ad55/nuget/v3/index.json ` --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json ` --source https://api.nuget.org/v3/index.json
- The error is as shown below:
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK 6.0.400
Did you find any workaround?
No
Relevant log output
PS C:\Windows\system32> dotnet workload install maui `
>> --from-rollback-file https://aka.ms/dotnet/maui/net6.0.json `
>> --source https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-6bb76b3f/nuget/v3/index.json `
>> --source https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-1026ad55/nuget/v3/index.json `
>> --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json `
>> --source https://api.nuget.org/v3/index.json
Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: Failed to validate package signing.
Verifying Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.300.Msi.x64.6.0.9
error: NU3004: The package is not signed.
Package signature validation failed.
.
Failed to update the advertising manifest microsoft.net.workload.emscripten: Failed to validate package signing.
Verifying Microsoft.NET.Workload.Emscripten.Manifest-6.0.300.Msi.x64.6.0.8
error: NU3004: The package is not signed.
Package signature validation failed.
.
Failed to update the advertising manifest microsoft.net.sdk.tvos: Failed to extract information from MSI: C:\Users\v-xinyfe\AppData\Local\Temp\50f2fdd4-cfd1-4388-8bc0-45a143f7ad2d\data\Microsoft.NET.Sdk.tvOS.Manifest-6.0.400.15.4.447-x64.msi.
Failed to update the advertising manifest microsoft.net.sdk.macos: Failed to extract information from MSI: C:\Users\v-xinyfe\AppData\Local\Temp\0ccb676f-aff3-4f7f-a242-6a9938fbfe62\data\Microsoft.NET.Sdk.macOS.Manifest-6.0.400.12.3.447-x64.msi.
Failed to update the advertising manifest microsoft.net.sdk.maui: Failed to extract information from MSI: C:\Users\v-xinyfe\AppData\Local\Temp\0397ec39-62be-41c0-8579-ba17e09f654c\data\Microsoft.NET.Sdk.Maui.Manifest-6.0.400.6.0.507-x64.msi.
Failed to update the advertising manifest microsoft.net.sdk.maccatalyst: Failed to extract information from MSI: C:\Users\v-xinyfe\AppData\Local\Temp\4393ad24-f3d7-4fd2-a8ee-ae2fe38bb474\data\Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.400.15.4.447-x64.msi.
Failed to update the advertising manifest microsoft.net.sdk.ios: Failed to extract information from MSI: C:\Users\v-xinyfe\AppData\Local\Temp\2e727d8c-604d-4bb0-ba2a-2ce8c7a0639e\data\Microsoft.NET.Sdk.iOS.Manifest-6.0.400.15.4.447-x64.msi.
The machine has a pending reboot. Installation will continue, but you may need to restart.
Installing Microsoft.NET.Sdk.Android.Manifest-6.0.400.32.0.455-x64.msi ..... Done
Installing Microsoft.NET.Sdk.Maui.Manifest-6.0.400.6.0.507-x64.msi .... Done
Downloading microsoft.net.workload.mono.toolchain.manifest-6.0.300.msi.x64 (6.0.9)
Workload installation failed. Rolling back installed packs...
Installing Microsoft.NET.Sdk.Maui.Manifest-6.0.400.6.0.486-x64.msi .... Done
Installing Microsoft.NET.Sdk.Android.Manifest-6.0.400.32.0.448-x64.msi .... Done
Workload installation failed: One or more errors occurred. (Failed to validate package signing.
Verifying Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.300.Msi.x64.6.0.9
error: NU3004: The package is not signed.
Package signature validation failed.
)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
NuGet Warning NU3018
Please ensure that the package signature has a valid certificate chain. You can verify the package signature by running the nuget verify ...
Read more >Problem installing Android workload for MAUI Visual ...
error : NU3004: The package is not signed. Package signature validation failed. I have already added this source to Nuget config: https://pkgs.
Read more >Visual Studio fails after upgradeing to 17.1.1.
I was running Visual Studio 2022 ~17.0.6, then decided to update to 17.1.1. The upgrade process appeared normal and seemed to be successful....
Read more >Common Issues
Digital Signature Fails to Verify on PSPDFKit but Adobe Acrobat Is Able to Verify It Correctly. One possible reason for PSPDFKit not being...
Read more >sitemap_2.xml
https://www.mongodb.com/community/forums/t/mongodump-command-is-failing-with-the- ... -thus-i-cant-install-all-mongo-db-package/148147 2022-02-18T11:32:08Z ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Could you try again using the parameter “-skip-sign-check”?
Solved!