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

Unable to install v2.0.779 x64 package on MacOS #771

Closed
tillig opened this issue Jun 30, 2022 · 17 comments · Fixed by #778
Closed

Unable to install v2.0.779 x64 package on MacOS #771

tillig opened this issue Jun 30, 2022 · 17 comments · Fixed by #778

Comments

@tillig
Copy link

tillig commented Jun 30, 2022

On trying to install the latest Git Credential Manager (v2.0.779) via Homebrew, I got the message Error - Git Credential Manager can’t be installed on this computer.

The brew output is here:

pwsh> brew install --cask git-credential-manager-core
==> Downloading https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.779/gcm-osx-x64-2.
Already downloaded: /Users/tillig/Library/Caches/Homebrew/downloads/84a1c17bcf802a030d47be9ceb7b322a9c9dc823755b07d9fec713afb0d9e458--gcm-osx-x64-2.0.779.pkg
==> Installing Cask git-credential-manager-core
==> Running installer for git-credential-manager-core; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Error - Git Credential Manager can’t be installed on this computer.
==> Purging files for version 2.0.779 of Cask git-credential-manager-core
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/bin/env LOGNAME=tillig USER=tillig USERNAME=tillig /usr/sbin/installer -pkg /usr/local/Caskroom/git-credential-manager-core/2.0.779/gcm-osx-x64-2.0.779.pkg -target / -allowUntrusted` exited with 1. Here's the output:
installer: Error - Git Credential Manager can’t be installed on this computer.

Thinking it might be a Homebrew problem, I downloaded the gcm-osx-x64-2.0.779.pkg to try manually installing. I got the same error. Note it wasn't related to being blocked by the "Security & Privacy" thing - it would have popped up in there to allow me to approve it.

Screen shot - can't install GCM

Thinking there may have been something mislabeled (since now the OSX package is split between x64 and ARM), I tried downloading the ARM package gcm-arm64-2.0.779.pkg. Trying to install the ARM package gave me the same error. (Was the ARM version put into both packages? 🤷 )

I went back and downloaded the 2.0.696 package, gcmcore-osx-2.0.696.pkg, and it installs just fine. There's something different between the installer there and this new one that's stopping it from getting installed.

  • MacBook Pro 2019
  • macOS Monterey 12.4
  • Intel Core i7

I'd be happy to provide additional logging or details if you let me know where to find them.

@Scrapula
Copy link

I am getting the same error.
Error: Failure while executing; /usr/bin/sudo -E -- /usr/bin/env LOGNAME=danagroulx USER=danagroulx USERNAME=danagroulx /usr/sbin/installer -pkg /usr/local/Caskroom/git-credential-manager-core/2.0.779/gcm-osx-x64-2.0.779.pkg -target / -allowUntrusted exited with 1. Here's the output:
installer: Error - Git Credential Manager can’t be installed on this computer.

I downloaded latest version of XCode and Homebrew.

@objectx
Copy link

objectx commented Jul 1, 2022

Same for me. I've downloaded gcmcore-osx-2.0.692.pkg and it works as expected. But 779 refuses to install 😢

@RobertFloor
Copy link

Same for me both with homebrew and a manual install

@mystix
Copy link

mystix commented Jul 1, 2022

Same for me both with homebrew and a manual install

Ditto for me on an Intel Mac, macOS 12.4.

@danantal
Copy link

danantal commented Jul 1, 2022

Same for me

@nixsiow
Copy link

nixsiow commented Jul 2, 2022

Not working on my system as well. Hopefully, there is a fix soon.
Screen Shot 2022-07-02 at 10 20 46 pm

@WoodyWoodsta
Copy link

WoodyWoodsta commented Jul 3, 2022

Adding my full output for reference:

==> Upgrading 1 outdated package:
microsoft/git/git-credential-manager-core 2.0.696 -> 2.0.779
==> Upgrading git-credential-manager-core
==> Downloading https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.779/gcm-osx-x64-2.0.779.pkg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/158405551/bc011045-bd29-494b-b8c2-e2d9d2794d97?X-Amz-
######################################################################## 100.0%
==> Running uninstall script /usr/local/share/gcm-core/uninstall.sh
Password:
Unconfiguring credential helper...
Unconfiguring component 'Git Credential Manager'...
Unconfiguring component 'Azure Repos provider'...
fatal: Failed to unset Git configuration entry 'credential.https://dev.azure.com.useHttpPath' [1]
git: This shim is internal and must be run via brew.

Deleting symlink...
Removing installation receipt...
Forgot package 'com.microsoft.gitcredentialmanager' on '/'.
Deleting application files...
==> Uninstalling packages; your password may be necessary:
==> Running installer for git-credential-manager-core; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Error - Git Credential Manager can’t be installed on this computer.
==> Purging files for version 2.0.779 of Cask git-credential-manager-core
==> Purging files for version 2.0.779 of Cask git-credential-manager-core
Warning: Reverting upgrade for Cask git-credential-manager-core
==> Running installer for git-credential-manager-core; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install was successful.
Error: microsoft/git/git-credential-manager-core: Failure while executing; `/usr/bin/sudo -E -- /usr/bin/env LOGNAME=woodywoodsta USER=woodywoodsta USERNAME=woodywoodsta /usr/sbin/installer -pkg /usr/local/Caskroom/git-credential-manager-core/2.0.779/gcm-osx-x64-2.0.779.pkg -target / -allowUntrusted` exited with 1. Here's the output:
installer: Error - Git Credential Manager can’t be installed on this computer.

@jminnihan
Copy link

Same error here... 2018 MacBook Pro Core i9 with macOS Monterey 12.4 (21F79)

@jellydn
Copy link

jellydn commented Jul 4, 2022

Same issue here. Just downgraded to previous version by installing pkg file, fyi https://github.com/GitCredentialManager/git-credential-manager/releases/tag/v2.0.696

@rcrooks
Copy link

rcrooks commented Jul 4, 2022

Same here - tried both Homebrew and the package.
2022-07-04_16-01-06

@btorsaldivar
Copy link

Same frustrating experience here with the latest version

 >> brew install --cask git-credential-manager-core
==> Downloading https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.779/gcm-osx-x64-2.0.779.pkg
Already downloaded: /Users/****/Library/Caches/Homebrew/downloads/84a1c17bcf802a030d47be9ceb7b322a9c9dc823755b07d9fec713afb0d9e458--gcm-osx-x64-2.0.779.pkg

==> Installing Cask git-credential-manager-core

==> Running installer for git-credential-manager-core; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Error - Git Credential Manager can’t be installed on this computer.

==> Purging files for version 2.0.779 of Cask git-credential-manager-core
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/bin/env LOGNAME=**** USER=**** USERNAME=**** /usr/sbin/installer -pkg /usr/local/Caskroom/git-credential-manager-core/2.0.779/gcm-osx-x64-2.0.779.pkg -target / -allowUntrusted` exited with 1. Here's the output:
installer: Error - Git Credential Manager can’t be installed on this computer.

Manually installed the previous version for now to unblock:
https://github.com/GitCredentialManager/git-credential-manager/releases/tag/v2.0.696

@GyroJoe
Copy link
Contributor

GyroJoe commented Jul 5, 2022

The pkg seems to have the wrong xml script in it:

    <options customize="never" hostArchitectures="arm64"/>

I think the problem may be this:

Building for runtime 'osx-x64'
[51] src/osx/Installer.Mac/dist.sh: line 73: [: missing `]'

@denniscote
Copy link

Same error here. I ran into this several days ago and tried again today to see if there had been a fix released yet. Full log from brew:

==> Upgrading 1 outdated package:
microsoft/git/git-credential-manager-core 2.0.696 -> 2.0.779
==> Upgrading git-credential-manager-core
==> Downloading https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.779/gcm-osx-x64-2.
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/84a1c17bcf802a030d47be9ceb7b322a9c9dc823755b07d9fec713afb0d9e458--gcm-osx-x64-2.0.779.pkg
==> Running uninstall script /usr/local/share/gcm-core/uninstall.sh
Password:
Unconfiguring credential helper...
Unconfiguring component 'Git Credential Manager'...
Unconfiguring component 'Azure Repos provider'...
fatal: Failed to unset Git configuration entry 'credential.https://dev.azure.com.useHttpPath' [1]
git: This shim is internal and must be run via brew.

Deleting symlink...
Removing installation receipt...
Forgot package 'com.microsoft.gitcredentialmanager' on '/'.
Deleting application files...
==> Uninstalling packages; your password may be necessary:
==> Running installer for git-credential-manager-core; your password may be necessary.
Package installers may write to any location; options such as --appdir are ignored.
installer: Error - Git Credential Manager can’t be installed on this computer.
==> Purging files for version 2.0.779 of Cask git-credential-manager-core
==> Purging files for version 2.0.779 of Cask git-credential-manager-core
Warning: Reverting upgrade for Cask git-credential-manager-core
==> Running installer for git-credential-manager-core; your password may be necessary.
Package installers may write to any location; options such as --appdir are ignored.
installer: Package name is Git Credential Manager
installer: Installing at base path /
installer: The install was successful.
Error: microsoft/git/git-credential-manager-core: Failure while executing; /usr/bin/sudo -E -- /usr/bin/env LOGNAME=dennis USER=dennis USERNAME=dennis /usr/sbin/installer -pkg /usr/local/Caskroom/git-credential-manager-core/2.0.779/gcm-osx-x64-2.0.779.pkg -target / -allowUntrusted exited with 1. Here's the output:
installer: Error - Git Credential Manager can’t be installed on this computer.

@gojira
Copy link

gojira commented Jul 8, 2022

Note this fails on M1 Mac as well. Brew downloads the gcm-osx-x64-etc-etc.pkg on M1 and it also fails.

@cpach
Copy link

cpach commented Jul 11, 2022

GCM 2.0.785 works fine on my Intel Mac. Thank you @GyroJoe and @mjcheetham!

@gojira
Copy link

gojira commented Jul 11, 2022

I can confirm GCM 785 also works on M1 Mac. Thanks!

@ghost

This comment was marked as spam.

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

Successfully merging a pull request may close this issue.