Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rkeithhill opened this issue Dec 15, 2017 · 6 comments
Closed
Milestone

Comments

@rkeithhill
Copy link
Contributor

rkeithhill commented Dec 15, 2017

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.

@vr8hub
Copy link

vr8hub commented Feb 28, 2018

I ran into this today as well. If you're not going to fix this (until release?), you might at least update the instructions on PowerShell Gallery to include the -SkipPublisherCheck (those instructions also need -Force).

@lzybkr
Copy link
Member

lzybkr commented Feb 28, 2018

@vr8hub - The PowerShell Gallery provides the installation instructions, I could only put a note somewhere, like in the release notes.

You could make suggest the gallery do that automatically for modules that do not include the catalog signature - I think this is the right repo to do that.

@lzybkr lzybkr added this to the 2.0.0-beta2 milestone Mar 20, 2018
@mikemaccana
Copy link

mikemaccana commented Jun 21, 2018

Weird it doesn't seem to install even when skipping the publisher check:

image

(Same with adding -Force)

@rkeithhill
Copy link
Contributor Author

You need to specify the -AllowPrerelease parameter since 2.0.0 hasn't been released yet.

@mikemaccana
Copy link

Ah thanks @rkeithhill that worked perfectly

@daxian-dbw
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants