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

The Signature for <package> is 'NotSigned. #48

Open
3 tasks done
JustinGrote opened this issue Sep 20, 2023 · 2 comments
Open
3 tasks done

The Signature for <package> is 'NotSigned. #48

JustinGrote opened this issue Sep 20, 2023 · 2 comments

Comments

@JustinGrote
Copy link

JustinGrote commented Sep 20, 2023

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

Attemping to install module jmg.files from the PowerShell Gallery repository. It failed to install saying it was NotSigned. Module is not signed but also has no indicators that it should be (that I can tell).

The module does have Microsoft.Graph dependencies which may be related?

Expected behavior

Installs the module

Actual behavior

install-module jmg.files
Install-PSResource: The signature for 'JMg.Files' is 'NotSigned.
Install-PSResource: Package(s) 'jmg.files' could not be installed from repository 'PSGallery'.
``

Error details

install-module jmg.files
Install-PSResource: The signature for 'JMg.Files' is 'NotSigned.
Install-PSResource: Package(s) 'jmg.files' could not be installed from repository 'PSGallery'.
``

Environment data

❯ gmo Microsoft.PowerShell.PSResourceGet; $PSVersionTable | Format-Table

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     0.9.0      rc1        Microsoft.PowerShell.PSResourceGet  {Find-PSResource, Get-InstalledPSResource, Get-PS…


Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.23545
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


### Visuals

_No response_
@SydneyhSmith
Copy link
Collaborator

Thanks @JustinGrote this looks like an issue with the Compat module translating a change in behavior of PSResourceGet, we should turn off publisher checks in compat as this doesn't translate well

@SydneyhSmith SydneyhSmith transferred this issue from PowerShell/PSResourceGet Sep 25, 2023
@SydneyhSmith SydneyhSmith transferred this issue from PowerShell/PowerShellGetv2 Sep 25, 2023
@SydneyhSmith SydneyhSmith transferred this issue from PowerShell/PSResourceGet Sep 25, 2023
@wrbst
Copy link

wrbst commented Jan 19, 2024

Today I hit the same problem in one Windows 11 VM:

gmo Microsoft.PowerShell.PSResourceGet; $PSVersionTable | Format-Table

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     1.0.1                 Microsoft.PowerShell.PSResourceGet  {Find-PSResource, Get-InstalledPSResource, Get-PSResourceRepository, Get-PSScriptFileInfo…}


Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

As suggested by SydneyhSmith the workaround is to add "-SkipPublisherCheck" as parameter during Install-Module.

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

3 participants