-
Notifications
You must be signed in to change notification settings - Fork 173
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
"Microsoft.Graph.Authentication being installed is not catalog signed" error #2378
Comments
This is to be expected when installing a version that isn't signed:
Please follow the upgrade instructions at when upgrading from v1.x to v2.x - https://github.com/microsoftgraph/msgraph-sdk-powershell/#1-installation:
|
The error is due to the module rename breaking change that's mentioned in the v2.x upgrade guide at https://github.com/microsoftgraph/msgraph-sdk-powershell/blob/dev/docs/upgrade-to-v2.md#profile-support. In v2.x, the modules are now divided based on the API version (v1.0 and beta). To avoid the error, please install the complete v1.0 and/or beta (non-production use only) versions of the SDK by following the instructions at https://learn.microsoft.com/powershell/microsoftgraph/installation?view=graph-powershell-1.0#installation. Alternatively, you can individually install the beta modules via |
Thanks for the information and guidance. |
Describe the bug
When updating Microsoft.Graph modules receiving the following error:
Install-Package: The version '1.28.0' of the module 'Microsoft.Graph.Authentication' being installed is not catalog signed. Ensure that the version '1.28.0' of the module 'Microsoft.Graph.Authentication' has the catalog file 'Microsoft.Graph.Authentication.cat' and signed with the same publisher 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' as the previously-installed module 'Microsoft.Graph.Authentication' with version '2.8.0' under the directory ...\PowerShell\Modules\Microsoft.Graph.Authentication\2.8.0'. If you still want to install or update, use -SkipPublisherCheck parameter.
To Reproduce
Execute "Get-InstalledModule Microsoft.Graph.Financials | Update-Module"
Execute "Get-InstalledModule Microsoft.Graph.WindowsUpdates | Update-Module"
Execute "Get-InstalledModule Microsoft.Graph.ManagedTenants | Update-Module"
Expected behavior
Successful update to the module without errors or having to specify -SkipPublisherCheck parameter
Debug Output
DEBUG: 00:00:18.6137933 Catalog file 'Microsoft.Graph.Authentication.cat' is not found in the contents of the previously-installed module 'Microsoft.Graph.Authentication' with the same name.
DEBUG: 00:00:18.6146013 Using the previously-installed module 'Microsoft.Graph.Authentication' with version '2.8.0' under '...PowerShell\Modules\Microsoft.Graph.Authentication\2.8.0' for getting the publisher details.
DEBUG: 00:00:18.6151132 Using the '...PowerShell\Modules\Microsoft.Graph.Authentication\2.8.0\Microsoft.Graph.Authentication.psd1' file for getting the authenticode signature.
DEBUG: 00:00:18.7496098 For publisher validation, using the previously-installed module 'Microsoft.Graph.Authentication' with version '2.8.0' under '...PowerShell\Modules\Microsoft.Graph.Authentication\2.8.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Catalog file 'Microsoft.Graph.Authentication.cat' is not found in the contents of the module 'Microsoft.Graph.Authentication' being installed.
DEBUG: 00:00:18.7510299 Using the 'Microsoft.Graph.Authentication.psd1' file for getting the authenticode signature.
DEBUG: 00:00:18.7558906 For publisher validation, current module 'Microsoft.Graph.Authentication' with version '1.28.0' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: For publisher validation, current module 'Microsoft.Graph.Authentication' with version '1.28.0' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: For publisher validation, using the previously-installed module 'Microsoft.Graph.Authentication' with version '2.8.0' under '...PowerShell\Modules\Microsoft.Graph.Authentication\2.8.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
DEBUG: 00:00:18.7579358 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:18.7585333 Current module publisher:
DEBUG: 00:00:18.7590763 Is previously-installed module signed by Microsoft: True
DEBUG: 00:00:18.7595450 Is current module signed by Microsoft: False
Install-Package: The version '1.28.0' of the module 'Microsoft.Graph.Authentication' being installed is not catalog signed. Ensure that the version '1.28.0' of the
module 'Microsoft.Graph.Authentication' has the catalog file 'Microsoft.Graph.Authentication.cat' and signed with the same publisher 'CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' as the previously-installed module 'Microsoft.Graph.Authentication' with
version '2.8.0' under the directory '...PowerShell\Modules\Microsoft.Graph.Authentication\2.8.0'. If you still want
to install or update, use -SkipPublisherCheck parameter.
Module Version
$ Get-Module Microsoft.Graph*
ModuleType Version PreRelease Name ExportedCommands
Script 1.22.0 Microsoft.Graph.Applications {Add-MgApplicationKey, Add-MgApplicationPassword, Add-MgServicePrincipalTokenSigningCertificate, Clear-MgApplicationVerifiedPublisher…}
Script 2.0.0 Microsoft.Graph.Authentication {Add-MgEnvironment, Connect-MgGraph, Disconnect-MgGraph, Get-MgContext…}
Script 1.22.0 Microsoft.Graph.Authentication {Find-MgGraphCommand, Find-MgGraphPermission}
Environment Data
Name Value
PSVersion 7.3.8
PSEdition Core
GitCommitId 7.3.8
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Screenshots
N\A
Additional context
The text was updated successfully, but these errors were encountered: