PowerShell / PowerShellGallery

228 stars 65 forks source link

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

Open spottedmahn opened 4 years ago

spottedmahn commented 4 years ago

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


bnippercg commented 4 years ago

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