Redth / dotnet-maui-check

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

[BUG] Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: Failed to validate package signing. #134

Open davidbuckleyni opened 2 years ago

davidbuckleyni commented 2 years ago

Getting the following when trying to update to version 9

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.

image

j-v-garcia commented 2 years ago

I have the same error. I even uninstalled all my vs versions and frameworks. Deleted my android and vs folders in my profile to start clean.

.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. × 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\Jovi\AppData\Local\Temp\maui-check-e941d0fb\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.

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.

.

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"

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

.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)
  • 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. × 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): n ─────────────────────────────────────────────────────────────────────────────────────────────

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

ansible42 commented 2 years ago

Same here.

      _   _   _____   _____     __  __      _      _   _   ___
     | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|
     |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |
  _  | |\  | | |___    | |     | |  | |  / ___ \  | |_| |  | |
 (_) |_| \_| |_____|   |_|     |_|  |_| /_/   \_\  \___/  |___|

☼ .NET MAUI Check v0.10.0.0 ☼
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
This tool will attempt to evaluate your .NET MAUI development environment.
If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them
yourself.

Thanks for choosing .NET MAUI!
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
» Synchronizing configuration... ok
» Scheduling appointments... ok

> OpenJDK 11.0 Checkup...
  - 11.0.12 (C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin\..)

> Visual Studio 17.1.0-pre.1.0 Checkup...
  - 17.1.0-pre.2.0 - C:\Program Files\Microsoft Visual Studio\2022\Preview
  - 17.0.4
  - 17.0.4

> Android SDK Checkup...
  - emulator (31.1.4)
  - build-tools;31.0.0 (31.0.0)
  - platforms;android-31 (1)
  - system-images;android-31;google_apis;x86_64 (8)
  - platform-tools (31.0.3)
  - cmdline-tools;5.0 (5.0)

> Android Emulator Checkup...
  - Emulator: pixel_2_pie_9_0_-_api_28 found.

> .NET SDK Checkup...
  - 3.1.302 - C:\Program Files\dotnet\sdk\3.1.302
  - 6.0.101 - C:\Program Files\dotnet\sdk\6.0.101
  - 6.0.200-preview.21617.4 - C:\Program Files\dotnet\sdk\6.0.200-preview.21617.4

> .NET SDK - Workload Deduplication Checkup...

> Edge WebView2 Checkup...
  - Found Edge WebView2 version 96.0.1054.62

> .NET SDK - Workloads (6.0.100) Checkup...
  x android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 31.0.101-preview.10.59) not installed.
  x ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.101-preview.10.251) not installed.
  x maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.101-preview.10.251) not installed.
  x tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.101-preview.10.251) not installed.
  x macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.101-preview.10.251) not installed.
  x maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.101-preview.10.2068) not installed.
  x wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0) not installed.
  - microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0) installed.
! Managing Workload installation from the CLI is NOT recommended.  Instead you should install the latest Visual Studio
preview to automatically get the newest release of .NET MAUI workloads installed.
Are you sure you would like to continue the CLI workload installation? [y/n] (n): y

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

! Attempt to fix? [y/n] (y): y
» Attempting to fix: .NET SDK - Workloads (6.0.100)
SHELL: C:\Program Files\dotnet\dotnet.exe workload install --from-rollback-file "C:\Users\taylo\AppData\Local\Temp\maui-check-910097f3\workload.json" android-aot ios maccatalyst tvos macos maui wasm-tools --source "https://api.nuget.org/v3/index.json"

Failed to update the advertising manifest microsoft.net.sdk.macos: microsoft.net.sdk.macos.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Failed to update the advertising manifest microsoft.net.sdk.android: microsoft.net.sdk.android.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Failed to update the advertising manifest microsoft.net.sdk.tvos: microsoft.net.sdk.tvos.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Failed to update the advertising manifest microsoft.net.sdk.maccatalyst: microsoft.net.sdk.maccatalyst.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Failed to update the advertising manifest microsoft.net.sdk.ios: microsoft.net.sdk.ios.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Failed to update the advertising manifest microsoft.net.sdk.maui: microsoft.net.sdk.maui.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Failed to update the advertising manifest microsoft.net.workload.emscripten: microsoft.net.workload.emscripten.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: microsoft.net.workload.mono.toolchain.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
Downloading microsoft.net.sdk.android.manifest-6.0.200.msi.x64 (31.0.101-preview.10.59)
Workload installation failed. Rolling back installed packs...
Downloading microsoft.net.sdk.android.manifest-6.0.200.msi.x64 (31.0.101-preview.12.146)
Installation rollback failed: One or more errors occurred. (microsoft.net.sdk.android.manifest-6.0.200.msi.x64::31.0.101-preview.12.146 is not found in NuGet feeds https://api.nuget.org/v3/index.json".)
Workload installation failed: One or more errors occurred. (microsoft.net.sdk.android.manifest-6.0.200.msi.x64::31.0.101-preview.10.59 is not found in NuGet feeds https://api.nuget.org/v3/index.json".)
Description:
  Install one or more workloads.

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

Arguments:
  <WORKLOAD_ID>  The NuGet package ID of the workload to install.

Options:
  --configfile <FILE>      The NuGet configuration file to use.
  -s, --source <SOURCE>    The NuGet package source to use during the restore. To specify multiple sources, repeat the option.
  --skip-manifest-update   Skip updating the workload manifests.
  --include-previews       Allow prerelease workload manifests.
  --temp-dir <temp-dir>    Specify a temporary directory for this command to download and extract NuGet packages (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 <LEVEL>  Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
  -?, -h, --help           Show command line help.

Fix failed - Workload Install failed: `dotnet workload install --from-rollback-file
"C:\Users\taylo\AppData\Local\Temp\maui-check-910097f3\workload.json" android-aot ios maccatalyst tvos macos maui
wasm-tools --source "https://api.nuget.org/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...
Failed to update the advertising manifest microsoft.net.sdk.macos: microsoft.net.sdk.macos.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json"..
jayaleshwari commented 2 years ago

Hi Team,

I am also getting the same error.

limeniye commented 2 years ago
PS C:\WINDOWS\system32> dotnet workload install maui

Failed to update the advertising manifest microsoft.net.workload.emscripten: microsoft.net.workload.emscripten.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json, C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\, https://nugets.c4portal.com/v3/index.json, https://nugets.gamanet.com/v3/index.json"..
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.maui.
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.tvos.
Installing pack Microsoft.Maui.Core.Ref.android version 6.0.200-preview.12.2516...
Workload installation failed. Rolling back installed packs...
Rolling back pack Microsoft.Maui.Core.Ref.android installation...
Workload installation failed: microsoft.maui.core.ref.android::6.0.200-preview.12.2516 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\;https://nugets.c4portal.com/v3/index.json;https://nugets.gamanet.com/v3/index.json".
Description:
  Install one or more workloads.

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

Arguments:
  <WORKLOAD_ID>  The NuGet package ID of the workload to install.

Options:
  --configfile <FILE>      The NuGet configuration file to use.
  -s, --source <SOURCE>    The NuGet package source to use during the restore. To specify multiple sources, repeat the
                           option.
  --skip-manifest-update   Skip updating the workload manifests.
  --include-previews       Allow prerelease workload manifests.
  --temp-dir <temp-dir>    Specify a temporary directory for this command to download and extract NuGet packages (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 <LEVEL>  Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal],
                           d[etailed], and diag[nostic].
  -?, -h, --help           Show command line help.

PS C:\WINDOWS\system32>
mark74 commented 2 years ago

Same error here

dotnet workload install maui

Failed to update the advertising manifest microsoft.net.workload.emscripten: microsoft.net.workload.emscripten.manifest-6.0.200 is not found in NuGet feeds https://api.nuget.org/v3/index.json, C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\"..

Installation rollback failed: One or more errors occurred. (microsoft.maui.core.ref.maccatalyst.msi.x64::6.0.200-preview.14.2935 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\".) Workload installation failed: One or more errors occurred. (microsoft.maui.core.ref.maccatalyst.msi.x64::6.0.200-preview.14.2935 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\".)

nonoc commented 10 months ago

check your pending reboot, or open VS like Administrator