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

Problem installing Git Credential Manager Core (Ubuntu 22.04.lts) #56

Closed
CornaSn opened this issue Mar 27, 2024 · 8 comments
Closed

Problem installing Git Credential Manager Core (Ubuntu 22.04.lts) #56

CornaSn opened this issue Mar 27, 2024 · 8 comments
Assignees

Comments

@CornaSn
Copy link

CornaSn commented Mar 27, 2024

https://github.com/upleveled/system-setup/blob/main/linux.md
Tried this comment:

curl -L https://aka.ms/gcm/linux-install-source.sh | sh
git-credential-manager-core configure

This leads to:

$ curl -L https://aka.ms/gcm/linux-install-source.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  7233  100  7233    0     0  54705      0 --:--:-- --:--:-- --:--:-- 54705
This script will download, compile, and install Git Credential Manager to:

    /usr/local/bin

Git Credential Manager is licensed under the MIT License: https://aka.ms/gcm/license
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
sh: 169: Syntax error: "fi" unexpected (expecting ";;")

With no chance to answer anything. Therefore the next step also doesn't work

@karlhorky
Copy link
Member

karlhorky commented Mar 27, 2024

Interesting, these are the official installation instructions

If you could re-report this over in their repository, that may be helpful for them. I would suggest:

Maybe the alternative installation method to install the .deb file using dpkg would help?

@CornaSn
Copy link
Author

CornaSn commented Mar 27, 2024

Installing via package works.

But it seems you could install it via rpm so maybe this is a better approach:

https://github.com/microsoft/Git-Credential-Manager-for-Mac-and-Linux/blob/master/Install.md#installing-on-linux-using-rpm-recommended

sudo rpm --install git-credential-manager-2.0.4-1.noarch.rpm
git-credential-manager install

@karlhorky
Copy link
Member

The link you posted above is to the old archived repo, which was archived in 2022 (check the notice at the top of the page)

@karlhorky
Copy link
Member

karlhorky commented Mar 28, 2024

So I would say probably:

  • the issue with installing from source should be reported in their repo
  • in the meantime, before it's fixed, we should change our System Setup instructions to use the .deb file instead

@karlhorky
Copy link
Member

@CornaSn any news here? Did you manage to get it installed with the .deb file?

@CornaSn
Copy link
Author

CornaSn commented Apr 7, 2024

Yes I installed it with the .deb file and it worked

@ProchaLu
Copy link
Member

There are 2 open issues for this problem.

Apparently, in this PR it should be fixed, released in version 2.5.0.

@ProchaLu
Copy link
Member

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