Skip to content

Can't install System.Management.Automation from NuGet/MyGet: NU3008: The package integrity check failed #7674

@Dennis-Petrov

Description

@Dennis-Petrov

Greetings.
Can't install System.Management.Automation 6.0.4 both from MyGet and NuGet package sources.

Steps to reproduce:

  1. Ensure, that System.Management.Automation is not in local package cache.
  2. Create new .NET Core 2.1 Class Library project. I'm using VS 2017 15.8.2.
  3. Open "Manage Packages for Solution" tab, and select required package source (either default NuGet or https://powershell.myget.org/F/powershell-core/api/v3/index.json).
  4. Browse for System.Management.Automation.
  5. Check project and click Install.
  6. Install will fail with "NU3008: The package integrity check failed". It doesn't matter, which package source was selected.

The relevant package manager log part below:

Installing System.Management.Automation 6.0.4.
Signature Hash Algorithm: SHA256
Timestamp: 14.08.2018 7:18:51

Verifying author primary signature's timestamp with timestamping service certificate: 
  Subject Name: CN=Symantec SHA256 TimeStamping Signer - G2, OU=Symantec Trust Network, O=Symantec Corporation, C=US
  SHA1 hash: 625AEC3AE4EDA1D169C4EE909E85B3BBC61076D3
  SHA256 hash: CF7AC17AD047ECD5FDC36822031B12D4EF078B6F2B4C5E6BA41F8FF2CF4BAD67
  Issued by: CN=Symantec SHA256 TimeStamping CA, OU=Symantec Trust Network, O=Symantec Corporation, C=US
  Valid from: 02.01.2017 3:00:00 to 02.04.2028 2:59:59

Signature type: Author
Verifying the author primary signature with certificate: 
  Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  SHA1 hash: F404000FB11E61F446529981C7059A76C061631E
  SHA256 hash: 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE
  Issued by: CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
  Valid from: 26.02.2018 3:00:00 to 27.01.2021 15:00:00

NU3008: The package integrity check failed.
Package restore failed. Rolling back package changes for 'SamplePSCoreCmdlet'.
Time Elapsed: 00:00:26.9286279
========== Finished ==========

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions