question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PS Core 6.0 RC2 issue with 2.0.0 version not being catalog signed

See original GitHub issue

Environment data

PS version: 6.0.0-rc.2
PSReadline version: 1.2 - but I'm trying to get to 2.0
os: 10.0.16299.15 (WinBuild.160101.0800)
PS file version: 6.0.0

Steps to reproduce or exception report

Install PS Core 6.0 rc2 and execute:

PS C:\Program Files\PowerShell\6.0.0-rc.2> Install-Module psreadline -RequiredVersion 2.0.0-beta1 -AllowPrerelease -Scope CurrentUser

This is what I get:

PackageManagement\Install-Package : The version '2.0.0' of the module 'PSReadLine' being installed is not catalog signed. Ensure that the version '2.0.0' of the module 'PSReadLine' has the catalog file 'PSReadLine.cat' and signed with the same publisher 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' as the previously-installed module 'PSReadLine' with version '1.2' under the directory 'C:\program files\powershell\6.0.0-rc.2\Modules\PSReadLine'. If you still want to install or update, use -SkipPublisherCheck parameter.
At C:\program files\powershell\6.0.0-rc.2\Modules\PowerShellGet\1.6.0\PSModule.psm1:2057 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : ModuleIsNotCatalogSigned,Validate-ModuleAuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

I should probably mention there is a simple workaround, use -SkipPublisherCheck but still, we shouldn’t need a workaround.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mikemaccanacommented, Jun 22, 2018

Ah thanks @rkeithhill that worked perfectly

0reactions
daxian-dbwcommented, Jul 15, 2019

The 2…0.0-beta4 is catalog signed. Closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install powershell modules - Microsoft Q&A
My problem is that I am not able to install modules to my powershell console. Example: Install-module -Name AzureAD. Copy. PS ...
Read more >
PowerShell Core 6.0: Generally Available (GA) and ...
We're currently working through a known issue where powershell-6.0.0 is viewed by package managers as a lower version than powershell-6.0.0-rc2.
Read more >
powershell-core (Install) 6.0.0-alpha14
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages.
Read more >
powershell-core (Install) 6.2.0-rc1
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages.
Read more >
CHANGELOG/6.0.md - PowerShell
Compliance work is required for Microsoft to continue to sign and release packages from the project as official Microsoft packages. Remove ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found