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

Ubuntu 20.04 Support #422

Closed
hoangtnm opened this issue Aug 22, 2021 · 7 comments
Closed

Ubuntu 20.04 Support #422

hoangtnm opened this issue Aug 22, 2021 · 7 comments
Labels
enhancement New feature or request installation Specific to installation and uninstallation platform:linux Specific to a Linux-based platform

Comments

@hoangtnm
Copy link

Hi, when reading installation guide for Ubuntu, it seems that ubuntu 20.04 is missing, so how can I install it for Ubuntu 20.04? thank you

@hoangtnm hoangtnm added the enhancement New feature or request label Aug 22, 2021
@ldennington
Copy link
Contributor

ldennington commented Aug 24, 2021

You can follow the instructions for Other Ubuntu/Debian Distributions in the README. Pasting the instructions here for convenience:

Download the latest .deb package, and run the following:

sudo dpkg -i <path-to-package>
git-credential-manager-core configure

@felipecrs
Copy link
Contributor

Or also

sudo apt install ./gcmcore.deb

But still, will the updates through apt work when installing directly from the deb?

@felipecrs
Copy link
Contributor

felipecrs commented Aug 30, 2021

Another point which is important to mention is that it's much harder for scripts to install gcmcore having to download the .deb file.

So that, this would not be needed.

@mjcheetham mjcheetham added installation Specific to installation and uninstallation platform:linux Specific to a Linux-based platform labels Sep 6, 2021
@ldennington
Copy link
Contributor

I don't think apt updates will work when you install from the .deb file, but I will test today to verify and circle back.

@ldennington
Copy link
Contributor

ldennington commented Sep 10, 2021

I stand corrected. I experimented with the following today on a 20.04 machine and it worked...

Part 1: Manually install outdated package

Downloaded an old .deb package (2.0.452)
Then ran the following from my Downloads directory:

sudo dpkg -i gcmcore-linux_amd64.2.0.452.3248.deb
git-credential-manager-core configure

From my terminal:

ldennington@ubuntu:~/Downloads$ git-credential-manager-core --version
2.0.452+b00c5acad3

Part 2: Upgrade using apt-get

curl -sSL https://packages.microsoft.com/config/ubuntu/21.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft-prod.list
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
sudo apt-get update
sudo apt-get upgrade gcmcore

From my terminal:

ldennington@ubuntu:~/Downloads$ git-credential-manager-core --version
2.0.498+7ad55fb809

The only thing that's wonky here is that, since we're not publishing to a dedicated 20.04 feed, I had to add the 21.04 feed. This feels like I may have been wrong in thinking we should deploy to different repos for different ubuntu versions. Perhaps we should return to the original architecture in which we just deployed to the git feed. @mjcheetham, thoughts?

@mjcheetham
Copy link
Collaborator

Perhaps we should return to the original architecture in which we just deployed to the git feed. @mjcheetham, thoughts?

We don't have any real differences in dependencies between the different distributions, so perhaps the singular git feed would be better?

Our main dependencies are libsecret and dependencies of the .NET runtime itself. We publish GCM against the generic linux-x64 target framework which brings along most (all?) dependencies for the runtime. For libsecret we only depend on it if you opt to use the secretservice credential store, and even then we work with old versions of libsecret.

@mjcheetham
Copy link
Collaborator

Closing this issue as Ubuntu 20.04 is supported/works by installing the Debian package downloaded from the releases page.

For tracking apt-get feed support we can use #447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request installation Specific to installation and uninstallation platform:linux Specific to a Linux-based platform
Projects
None yet
Development

No branches or pull requests

4 participants