PowerShellGallery icon indicating copy to clipboard operation
PowerShellGallery copied to clipboard

The module 'PowerShellGet' cannot be installed because the catalog signature in 'PowerShellGet.cat' does not match the hash generated from the module.

Open spottedmahn opened this issue 5 years ago • 1 comments

I'm getting the following error:

Install-Module -Name PowerShellGet -Force WARNING: The version '1.4.6' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications. PackageManagement\Install-Package : The module 'PowerShellGet' cannot be installed because the catalog signature in 'PowerShellGet.cat' does not match the hash generated from the module. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21

  • ... $null = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    • FullyQualifiedErrorId : InvalidCatalogSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cm dlets.InstallPackage

$PSVersionTable Name Value PSVersion 5.1.18362.752 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.18362.752 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1


  • I've closed all instances of powershell.exe and tried multiple times
  • I'm following these instructions
  • Install-PackageProvider -Name NuGet -Force was successful

spottedmahn avatar Apr 22 '20 19:04 spottedmahn

I've also started getting this error in an Azure DevOps YAML pipeline when attempting to run Install-Module -Name PowerShellGet -Force

bnippercg avatar Apr 28 '20 21:04 bnippercg