Redth / dotnet-maui-check

.NET MAUI Check tool
MIT License
479 stars 79 forks source link

maui-check reports package signature validation error #133

Open alaatm opened 3 years ago

alaatm commented 3 years ago

When running dotnet workload list command I get this message:

Updates are avaliable for the following workload(s): android-aot ios maccatalyst macos maui tvos wasm-tools. Run 'dotnet workload update' to get the latest.

So tried to run maui-check but it didn't do anything so I deleted the metadata/workloads folder as suggested elsewhere then ran maui-check again. I got the following output:

Note: I am running maui-check latest version 0.9.0 as of today and have .net 6 RC2 sdk installed.

> .NET SDK - Workloads (6.0.100-rc.2.21505.57) Checkup...
  - android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 31.0.101-preview.9.16) installed.
  - ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.101-preview.9.31) installed.
  x maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.101-preview.9.1843) not installed.
  - wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0-rc.2.21480.5) installed.
  - microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0-rc.2.21474.1) installed.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Recommendation: Install or Update SDK Workloads
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
» Attempting to fix: .NET SDK - Workloads (6.0.100-rc.2.21505.57)
SHELL: C:\Program Files\dotnet\dotnet.exe workload update --no-cache --disable-parallel --from-rollback-file "C:\Users\alaam\AppData\Local\Temp\maui-check-67681630\workload.json" --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json"

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.
Failed to update the advertising manifest microsoft.net.workload.emscripten: Failed to validate package signing.

Verifying Microsoft.NET.Workload.Emscripten.Manifest-6.0.100.6.0.0-rtm.21514.1

error: NU3004: The package is not signed.

Package signature validation failed.

.
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.100.6.0.0-rtm.21515.15

error: NU3004: The package is not signed.

Package signature validation failed.

.
Downloading microsoft.net.sdk.android.manifest-6.0.100.msi.x64 (31.0.101-preview.9.16)
Downloading microsoft.net.sdk.ios.manifest-6.0.100.msi.x64 (15.0.101-preview.9.31)
Downloading microsoft.net.sdk.maccatalyst.manifest-6.0.100.msi.x64 (15.0.101-preview.9.31)
Downloading microsoft.net.sdk.tvos.manifest-6.0.100.msi.x64 (15.0.101-preview.9.31)
Downloading microsoft.net.sdk.macos.manifest-6.0.100.msi.x64 (12.0.101-preview.9.31)
Downloading microsoft.net.sdk.maui.manifest-6.0.100.msi.x64 (6.0.101-preview.9.1843)
Downloading microsoft.net.workload.mono.toolchain.manifest-6.0.100.msi.x64 (6.0.0-rc.2.21480.5)
Downloading microsoft.net.workload.emscripten.manifest-6.0.100.msi.x64 (6.0.0-rc.2.21474.1)
Workload installation failed. Rolling back installed packs...
Downloading microsoft.net.sdk.maui.manifest-6.0.100.msi.x64 (6.0.101-preview.9.1805)
Downloading microsoft.net.workload.emscripten.manifest-6.0.100.msi.x64 (6.0.0-rc.2.21474.1)
Workload update failed: One or more errors occurred. (Failed to validate package signing.

Verifying Microsoft.NET.Workload.Emscripten.Manifest-6.0.100.Msi.x64.6.0.0-rc.2.21474.1

error: NU3004: The package is not signed.

Package signature validation failed.

)
Fix failed - Workload Update failed: `dotnet workload update --no-cache --disable-parallel --from-rollback-file
"C:\Users\alaam\AppData\Local\Temp\maui-check-67681630\workload.json" --source "https://api.nuget.org/v3/index.json"
--source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/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...
alaatm commented 3 years ago

Not sure what happened, I ran VS setup and under VS 2022 Preview uncheck then rechecked Mobile Development with .net then ran maui-check again and got different output. Still fails at the end:

> .NET SDK - Workloads (6.0.100-rc.2.21505.57) Checkup...
  - android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 31.0.101-preview.9.16) installed.
  - ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.101-preview.9.31) installed.
  x maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.101-preview.9.1843) not installed.
  - wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0-rc.2.21480.5) installed.
  - microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0-rc.2.21474.1) installed.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Recommendation: Install or Update SDK Workloads
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
» Attempting to fix: .NET SDK - Workloads (6.0.100-rc.2.21505.57)
SHELL: C:\Program Files\dotnet\dotnet.exe workload update --no-cache --disable-parallel --from-rollback-file "C:\Users\alaam\AppData\Local\Temp\maui-check-9157d991\workload.json" --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json"

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.
Failed to update the advertising manifest microsoft.net.workload.emscripten: Failed to validate package signing.

Verifying Microsoft.NET.Workload.Emscripten.Manifest-6.0.100.6.0.0-rtm.21514.1

error: NU3004: The package is not signed.

Package signature validation failed.

.
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.100.6.0.0-rtm.21515.15

error: NU3004: The package is not signed.

Package signature validation failed.

.
Removing Microsoft.Maui.Controls.Ref.win.6.0.101.1843-x64.msi .... Done
Removing Microsoft.Maui.Controls.Runtime.win.6.0.101.1843-x64.msi .... Done
Removing Microsoft.Maui.Core.Ref.win.6.0.101.1843-x64.msi .... Done
Removing Microsoft.Maui.Core.Runtime.win.6.0.101.1843-x64.msi .... Done
Removing Microsoft.Maui.Essentials.Ref.win.6.0.101.1843-x64.msi .... Done
Removing Microsoft.Maui.Essentials.Runtime.win.6.0.101.1843-x64.msi .... Done

Successfully updated workload(s): android-aot ios maccatalyst macos maui tvos wasm-tools.

SHELL: C:\Program Files\dotnet\dotnet.exe workload install --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/dotnet6/nuget/v3/index.json"

Downloading Microsoft.Maui.Core.Ref.android.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Ref.android.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Runtime.android.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Runtime.android.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Ref.android.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Ref.android.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Runtime.android.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Runtime.android.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Ref.android.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Ref.android.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Runtime.android.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Runtime.android.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.AspNetCore.Components.WebView.Maui.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Dependencies.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Dependencies.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Build.Tasks.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Build.Tasks.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Sdk.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Sdk.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Extensions.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Extensions.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Resizetizer.Sdk.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Resizetizer.Sdk.6.0.101.1805-x64.msi ..... Done
Downloading Microsoft.Maui.Templates.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Templates.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Ref.any.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Ref.any.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Runtime.any.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Runtime.any.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Ref.any.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Ref.any.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Runtime.any.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Runtime.any.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Ref.any.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Ref.any.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Runtime.any.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Runtime.any.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Ref.ios.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Ref.ios.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Runtime.ios.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Runtime.ios.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Ref.ios.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Ref.ios.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Runtime.ios.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Runtime.ios.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Ref.ios.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Ref.ios.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Runtime.ios.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Runtime.ios.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Ref.maccatalyst.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Ref.maccatalyst.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Runtime.maccatalyst.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Runtime.maccatalyst.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Ref.maccatalyst.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Ref.maccatalyst.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Runtime.maccatalyst.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Runtime.maccatalyst.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Ref.maccatalyst.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Ref.maccatalyst.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Runtime.maccatalyst.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Runtime.maccatalyst.6.0.101.1805-x64.msi ..... Done
Downloading Microsoft.Maui.Core.Ref.win.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Ref.win.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Core.Runtime.win.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Core.Runtime.win.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Ref.win.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Ref.win.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Controls.Runtime.win.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Controls.Runtime.win.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Ref.win.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Ref.win.6.0.101.1805-x64.msi .... Done
Downloading Microsoft.Maui.Essentials.Runtime.win.Msi.x64 (6.0.101-preview.9.1805)
Installing Microsoft.Maui.Essentials.Runtime.win.6.0.101.1805-x64.msi .... Done

Successfully installed workload(s) android-aot ios maccatalyst tvos macos maui wasm-tools.

Fix applied.  Checking again...

> .NET SDK - Workloads (6.0.100-rc.2.21505.57) Checkup...
  - android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 31.0.101-preview.9.16) installed.
  - ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.101-preview.9.31) installed.
  - macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.101-preview.9.31) installed.
  x maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.101-preview.9.1843) not installed.
  - wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0-rc.2.21480.5) installed.
  - microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0-rc.2.21474.1) installed.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Recommendation: Install or Update SDK Workloads
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

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

Press enter to exit...
rgunawans commented 3 years ago

I got the same error

! Attempt to fix? [y/n] (y): y » Attempting to fix: .NET SDK - Workloads (6.0.100-rc.2.21505.57) SHELL: C:\Program Files\dotnet\dotnet.exe workload update --no-cache --disable-parallel --from-rollback-file "D:\temp\maui-check-d998e112\workload.json" --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json"

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. Failed to update the advertising manifest microsoft.net.workload.emscripten: Failed to validate package signing.

Verifying Microsoft.NET.Workload.Emscripten.Manifest-6.0.100.6.0.0-rtm.21514.1

error: NU3004: The package is not signed.

Package signature validation failed.

. 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.100.6.0.0-rtm.21518.12

error: NU3004: The package is not signed.

Package signature validation failed.

.

Successfully updated workload(s): android.

SHELL: C:\Program Files\dotnet\dotnet.exe workload install --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/dotnet6/nuget/v3/index.json"

seems the json file is not update with the current version VS2022 preview 6

rgunawans commented 3 years ago

First error using --verbose:

! Attempt to fix? [y/n] (y): y ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Checkup had Error status: androidemulator Checkup had Error status: dotnetworkloads-6.0.100-rc.2.21505.57

androidemulator: Could not find a part of the path 'C:\Program Files (x86)\Android\android-sdk\cmdline-tools\5.0\lib'. dotnetworkloads-6.0.100-rc.2.21505.57: ! There were one or more problems detected. Please review the errors and correct them and run maui-check again.

Press enter to exit...

Has Errors? True

after I'm install cmdline-tools version 5, got next error:

Checkup had Error status: dotnetworkloads-6.0.100-rc.2.21505.57

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

Press enter to exit...

j-v-garcia commented 3 years ago

Same error here. And try to fix doesn't fix it

Comprobando Microsoft.NET.Workload.Emscripten.Manifest-6.0.100.6.0.0-rtm.21514.1

error: NU3004: El paquete no está firmado.

Error de validación de la firma del paquete.

. Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: Failed to validate package signing.

Comprobando Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100.6.0.0-rtm.21518.12

error: NU3004: El paquete no está firmado.

Error de validación de la firma del paquete.