The module 'PowerShellGet' cannot be installed because the catalog signature in 'PowerShellGet.cat' does not match the hash generated from the module.
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.exeand tried multiple times - I'm following these instructions
Install-PackageProvider -Name NuGet -Forcewas successful
I've also started getting this error in an Azure DevOps YAML pipeline when attempting to run
Install-Module -Name PowerShellGet -Force