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

gcmcore-linux package missing dependency #506

Closed
2 of 16 tasks
cloudqq opened this issue Oct 28, 2021 · 5 comments · Fixed by #514
Closed
2 of 16 tasks

gcmcore-linux package missing dependency #506

cloudqq opened this issue Oct 28, 2021 · 5 comments · Fixed by #514
Assignees
Labels
auth-issue An issue authenticating to a host installation Specific to installation and uninstallation platform:linux Specific to a Linux-based platform

Comments

@cloudqq
Copy link

cloudqq commented Oct 28, 2021

Which version of GCM Core are you using?

Download linux deb from this link below.

https://github.com/microsoft/Git-Credential-Manager-Core/releases/download/v2.0.567/gcmcore-linux_amd64.2.0.567.18224.deb

When run the git push, error occured. missing package should be packed in the deb.

And I also download the gz package, and found two so lib.

After copy these two so files to /usr/local/share/gcm-core, then it works.

Pls help to fix this package issue.

$ ls -lah
total 248M
drwxr-xr-x 2 1001 docker 4.0K Oct 28 11:35 .
drwxr-xr-x 9 root root 4.0K Oct 28 10:34 ..
-rwxr-xr-x 1 1001 docker 89M Oct 11 23:00 Atlassian.Bitbucket.UI
-rwxr-xr-x 1 1001 docker 63M Oct 11 23:00 git-credential-manager-core
-rwxr-xr-x 1 1001 docker 89M Oct 11 23:00 GitHub.UI
-rwxr-xr-x 1 root root 1.1M Oct 28 11:35 libHarfBuzzSharp.so
-rwxr-xr-x 1 root root 8.2M Oct 28 11:35 libSkiaSharp.so

$ tar tvf gcmcore-linux_amd64.2.0.567.18224.tar.gz
-rwxr-xr-x vsts/docker 92302349 2021-10-11 23:00 Atlassian.Bitbucket.UI
-rwxr-xr-x vsts/docker 65383226 2021-10-11 23:00 git-credential-manager-core
-rwxr-xr-x vsts/docker 92355389 2021-10-11 23:00 GitHub.UI
-rwxr-xr-x vsts/docker 1086704 2020-09-11 12:53 libHarfBuzzSharp.so
-rwxr-xr-x vsts/docker 8541744 2020-09-11 12:53 libSkiaSharp.so
-rwxr-xr-x vsts/docker 2602 2021-10-11 22:59 NOTICE

$env GCM_CREDENTIAL_STORE=gpg git push origin master
Error:
An assembly specified in the application dependencies manifest (GitHub.UI.deps.json) was not found:
package: 'HarfBuzzSharp.NativeAssets.Linux', version: '2.6.1.7'
path: 'runtimes/linux-x64/native/libHarfBuzzSharp.so'
fatal: helper error (140): Unknown
Username for 'https://github.

$ dpkg -L gcmcore
/.
/usr
/usr/local
/usr/local/bin
/usr/local/share
/usr/local/share/gcm-core
/usr/local/share/gcm-core/Atlassian.Bitbucket.UI
/usr/local/share/gcm-core/GitHub.UI
/usr/local/share/gcm-core/git-credential-manager-core
/usr/local/bin/Atlassian.Bitbucket.UI
/usr/local/bin/GitHub.UI
/usr/local/bin/git-credential-manager-core

From a terminal, run git-credential-manager-core --version and paste the output.

Which Git host provider are you trying to connect to?

  • Azure DevOps
  • Azure DevOps Server (TFS/on-prem)
  • GitHub
  • GitHub Enterprise
  • Bitbucket
  • Other - please describe

Can you access the remote repository directly in the browser using the remote URL?

From a terminal, run git remote -v to see your remote URL.

  • Yes
  • No, I get a permission error
  • No, for a different reason - please describe

[Azure DevOps only] What format is your remote URL?

[Azure DevOps only] If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.

  • Not applicable
  • I only see one identity
  • I checked each identity and none worked

Expected behavior

I am authenticated and my Git operation completes successfully.

Actual behavior

A clear and concise description of what happens. For example: exception is thrown, UI freezes, etc.

Logs

Set the environment variables GCM_TRACE=1 and GIT_TRACE=1 and re-run your Git command. Review and redact any private information and attach the log.

@cloudqq cloudqq added the auth-issue An issue authenticating to a host label Oct 28, 2021
@mjcheetham mjcheetham added installation Specific to installation and uninstallation platform:linux Specific to a Linux-based platform labels Nov 2, 2021
@mjcheetham mjcheetham self-assigned this Nov 2, 2021
@almog-co
Copy link

I am having the exact same issue. How can I fix it?

@MariaGuilarte
Copy link

What should i do? I just re-downloaded the .deb and reinstalled but didn't change anything. I'm a newbie linux mint user

@mjcheetham
Copy link
Collaborator

@almog-co, @MariaGuilarte the changes to fix this problem have been merged to the default branch but not yet released.
The problem of missing files will be fixed in the next release.

@dhirschfeld
Copy link

dhirschfeld commented Nov 24, 2021

I've just run into this.

It might be an idea to at least edit the release notes with a warning saying the deb package is broken.

It appears that we have to install the pre-release version to avoid this bug?


Edit:
The below seemed to do the job removing the old version

sudo dpkg -P gcmcore

Checked with:

dpkg -l gcmcore

Edit 2:
Unfortunately the latest pre-release doesn't seem to work for me 😢

❯ sudo dpkg -i gcmcore-linux_amd64.2.0.605.12951.deb
Selecting previously unselected package gcmcore.
(Reading database ... 34081 files and directories currently installed.)
Preparing to unpack gcmcore-linux_amd64.2.0.605.12951.deb ...
Unpacking gcmcore (2.0.605.12951) ...
Setting up gcmcore (2.0.605.12951) ...

❯ git-credential-manager-core
git-credential-manager-core: command not found

Edit 3:
Looks like the pre-release breaks the symlinks by installing into a Release folder:

❯ ls -la /usr/local/share/gcm-core
total 12
drwxr-xr-x 3 1001 admin 4096 Nov 25 01:14 .
drwxr-xr-x 6 root root  4096 Nov 25 01:14 ..
drwxr-xr-x 2 1001 admin 4096 Nov 25 01:14 Release

@dhirschfeld
Copy link

dhirschfeld commented Nov 24, 2021

Looks like there's a workaround in #528 (comment). I'll give that a go...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-issue An issue authenticating to a host installation Specific to installation and uninstallation platform:linux Specific to a Linux-based platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants