Skip to content

Instantly share code, notes, and snippets.

@berkorbay
Last active July 4, 2024 19:23
Show Gist options
  • Save berkorbay/6feda478a00b0432d13f1fc0a50467f1 to your computer and use it in GitHub Desktop.
Save berkorbay/6feda478a00b0432d13f1fc0a50467f1 to your computer and use it in GitHub Desktop.
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

# UPDATE (2024-01-24)

## Direct copy-paste from official instrubtions
## Github Desktop for Ubuntu
## Get the @shiftkey package feed
wget -qO - https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/shiftkey-packages.gpg] https://apt.packages.shiftkey.dev/ubuntu/ any main" > /etc/apt/sources.list.d/shiftkey-packages.list'
## Install Github Desktop for Ubuntu
sudo apt update && sudo apt install github-desktop

There are other methods mentioned in the comments. Many thanks to their contributions.

Archive

# UPDATE (2022-11-07): Thanks to Sxvxgee's message, the updated code is as follows

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.1.1-linux1/GitHubDesktop-linux-3.1.1-linux1.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core 
sudo gdebi GitHubDesktop-linux-3.1.1-linux1.deb


# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi's message, the updated code is as follows

#sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.9.3-linux3/GitHubDesktop-linux-2.9.3-linux3.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core 
#sudo gdebi GitHubDesktop-linux-2.9.3-linux3.deb

# UPDATE (2021-03-05): Thanks to PaoloRanzi81's comment, the updated code is as follows https://gist.github.com/PaoloRanzi81

#sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.6.3-linux1/GitHubDesktop-linux-2.6.3-linux1.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core 
#sudo gdebi GitHubDesktop-linux-2.6.3-linux1.deb

## Initial post
#sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.1.0-linux1/GitHubDesktop-linux-2.1.0-linux1.deb
#sudo gdebi GitHubDesktop-linux-2.1.0-linux1.deb
@JoseGaldamez
Copy link

Working very good on Ubuntu Budgie. Thank you.

@namwoam
Copy link

namwoam commented Sep 29, 2022

Works on Ubuntu 22.04. Thanks a lot.

@aislanspeedio
Copy link

aislanspeedio commented Sep 29, 2022

It opens and authenticates, but doesn't show up my repositories

From logs it has:

2022-09-29T13:16:12.304Z - error: [ui] fetchMetadata: unable to load metadata from 'https://github.com/api/v3/meta' as a fallback
Error: API error https://github.com/api/v3/meta: (404)
at _t (/home/aislan/webpack:/[name]/app/src/lib/http.ts:178:11)
at /home/aislan/webpack:/[name]/app/src/lib/api.ts:1688:11
at Vn.endpointSupportsBasicAuth (/home/aislan/webpack:/[name]/app/src/lib/stores/sign-in-store.ts:255:11)
at Vn.setEndpoint (/home/aislan/webpack:/[name]/app/src/lib/stores/sign-in-store.ts:549:13)

@nfriacowboy
Copy link

I'm running Ubuntu 22.04 LTS, and I could only get the GUI to run after running github-desktop --disable-gpu-sandbox not sure if this will help anyone else

Thanks to @berkorbay for the script and to @coreysparks for the Tip, it help me in my case.

@Y5563
Copy link

Y5563 commented Oct 3, 2022

Thanks it work fine for me

@moslem-parsarad-dev
Copy link

thank you.

@mbrewsala
Copy link

I'm running Ubuntu 22.04 LTS, and I could only get the GUI to run after running github-desktop --disable-gpu-sandbox not sure if this will help anyone else

Thanks to @berkorbay for the script and to @coreysparks for the Tip, it help me in my case.

Same, and this makes sense since I'm running jellyfish in a VM.

@williamsando
Copy link

Has anyone figured out how to make this runnable from the favourites bar? I've gotten so far:

You have to find the .desktop file in /usr/share/applications and then copy it to ~/.local/share/applications and edit the Exec line to include --disable-gpu-sandbox but I can't figure out what to put in the Exec line to make it work, any advice appreciated!

@Menayer
Copy link

Menayer commented Oct 14, 2022

@williamsando

Exec=github-desktop --disable-gpu-sandbox %U

Works fine for me.

@Menayer
Copy link

Menayer commented Oct 14, 2022

@williamsando

Exec=github-desktop --disable-gpu-sandbox %U

Works fine for me.

[Desktop Entry]
Name=GitHub Desktop
Comment=Simple collaboration from your desktop
GenericName=GitHub Desktop
Exec=github-desktop --disable-gpu-sandbox %U
Icon=github-desktop
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;
MimeType=x-scheme-handler/x-github-client;x-scheme-handler/x-github-desktop-auth;x-scheme-handler/x-github-desktop-dev-auth;

@williamsando
Copy link

Thanks @Menayer that's working for me!

@paulopalmeira
Copy link

Thanks! Work in Ubuntu 20.04

@Technikfreaksyt
Copy link

It works perfectly on Ubuntu 22.4 LTS!

@krumpking
Copy link

Or, just wget https://github.com/shiftkey/desktop/releases/download/release-2.9.3-linux3/GitHubDesktop-linux-2.9.3-linux3.deb && sudo dpkg -i GitHubDesktop-linux-2.9.3-linux3.deb

I'm running Ubuntu 22.04 LTS, and I could only get the GUI to run after running github-desktop --disable-gpu-sandbox not sure if this will help anyone else

Thank you so much this worked for me, on Ubuntu 22.04 after struggling for sometime

@shivanshsinghx365
Copy link

I guess that happens with those with discrete gpu, i have intel igpu with mesa drivers, so i had no issues with the gui

@Rahulbiswas0675
Copy link

Thank You

@Kamandlou
Copy link

Thanks, it works on Ubuntu 20.04

@MuhammadAdil92
Copy link

Thanks

@theAbdoSabbagh
Copy link

I suggest updating the link to https://github.com/shiftkey/desktop/releases/tag/release-3.1.1-linux1 as this is the newest release.

@ajowens001
Copy link

ajowens001 commented Nov 10, 2022

Wait, I'm confused... why would we do this and not just use the available Flathub version? Is this version a better 3.1.1? Anyone know if the Flathub version requires you to disable gpu sandbox?

@mkskaushalya
Copy link

mkskaushalya commented Nov 10, 2022

for kali linux or Debian os
sudo dpkg -i GitHubDesktop-linux-3.1.1-linux1.deb

if updated,
sudo dpkg -i <!--downloaded file name-->

@moodyfiles
Copy link

Thank you! Worked like a charm. If you're having any trouble on Ubuntu, extract the folder somewhere (I extracted to /home/usr/Documents/ but I'm not sure if that's best practices), navigate to the .sh file, right click, hit Properties, toggle "Executable as program" to on, exit out out of the Properties window, right click the .sh file again and hit "Run as program".

@aknandansharma
Copy link

Thanks

@HoangLUT
Copy link

Hi, is Raspberry Pi (arm architecture) supported yet? I got the error:
Wrong architecture 'amd64' -- Run dpkg --add-architecture to add it and update afterwards
when executing
sudo gdebi GitHubDesktop-linux-3.1.1-linux1.deb.
Many thanks.

@chaitanya8169
Copy link

works perfectly fine on ubuntu 22.04 lts

@satpalsr
Copy link

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.1.1-linux1/GitHubDesktop-linux-3.1.1-linux1.deb
sudo dpkg -i GitHubDesktop-linux-3.1.1-linux1.deb

Worked on ubuntu 22.04 LTS.

launch with github-desktop

@kwccoin
Copy link

kwccoin commented Nov 27, 2022

Somehow the GUI can only display changes and commit but cannot fetch/pull/push

I can do ssh command line based on ssh-agent etc. per Github ssh pages. And my github gui is login (and logout and login ok just in case). Not sure what is the problem. (Have run in another ubuntu and it is fine. There must be one more step I missed and it is not in here!)

Any help please.

`git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin` exited with an unexpected code: 128.
stderr:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

(The error was parsed as 2: Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)

I finally resolve it by not doing any git or gh in command line (to avoid ssh) but sync via the GUI. And also move my organization as this GUI seem cannot sync other than the original user.

May be somehow there could be token access (not finding it in GUI) or somehow start the ssh agent before the GUI start. But I just use the shortcut to do my work.

@eyubech
Copy link

eyubech commented Nov 27, 2022

Works on Ubuntu Thank you

@willycamps
Copy link

image
the new version is not showing the GUI properly

@khatchad
Copy link

Why sudo wget? We should be able to run wget in user mode.

@digoo
Copy link

digoo commented Dec 7, 2022

Since no one said about using it with WSL2 and W11: - I'm using the latest github desktop 3.1.1
I made it work with:
1: installing x-server (did for another reasons, a lot tutorials over internet would help you to install it with no issue, I'm using VcXSrv on windows and terminator on wsl2)
2: go to /usr/share/applications and edit github-desktop.desktop to @Menayer 's answer (https://gist.github.com/berkorbay/6feda478a00b0432d13f1fc0a50467f1?permalink_comment_id=4335867#gistcomment-4335867) (Basically: Exec=github-desktop --disable-gpu-sandbox %U)
3: run it without sudo, so just github-desktop
4: it will ask to login, do it but don't expect it to move forward automatically, click at skip link in the github desktop, next screen should be your name/email from your account to confirm.
5: Start cloning and working

Edit:
It will also work with the WSLg, so you can skip step 1. It's also important to have a local wsl browser installed for the connection with the github to works

@nfriacowboy
Copy link

@digoo why are you using it on WSL instead of using it directly on Windows? Thanks for sharing

@panosale
Copy link

panosale commented Dec 8, 2022

It works fine in Mint 21 Cinnamon 64bit.
Thank you.

@AliakbarETH
Copy link

Thanks @berkorbay , it helped me alot

@mbrewsala
Copy link

I'm running Ubuntu 22.04 LTS, and I could only get the GUI to run after running github-desktop --disable-gpu-sandbox not sure if this will help anyone else

Thanks to @berkorbay for the script and to @coreysparks for the Tip, it help me in my case.

Same, and this makes sense since I'm running jellyfish in a VM.

This abruptly stopped working for me right after a system crash. I find now I need to disable all the sandboxes:

github-desktop --disable-gpu-sandbox --disable-sandbox

@digoo
Copy link

digoo commented Dec 22, 2022

@digoo why are you using it on WSL instead of using it directly on Windows? Thanks for sharing

Because my repos are located inside the WSL2, and using github-desktop from windows directly it doesn't seems to be fully compatible yet. (aka takes really long to process anything)

Copy link

ghost commented Dec 30, 2022

thank you

@malik1447
Copy link

Or, just wget https://github.com/shiftkey/desktop/releases/download/release-2.9.3-linux3/GitHubDesktop-linux-2.9.3-linux3.deb && sudo dpkg -i GitHubDesktop-linux-2.9.3-linux3.deb

I'm running Ubuntu 22.04 LTS, and I could only get the GUI to run after running github-desktop --disable-gpu-sandbox not sure if this will help anyone else

Thank you so much this worked for me, on Ubuntu 22.04 after struggling for sometime

thank you so much i was searching up deb not exe .well im beginner of user ubuntu !

@nsundriyal62
Copy link

thanks man it helps a lot.....

@blockchainchad
Copy link

Flawless, thank you much!

@lattebbrook
Copy link

Thank you so much!

@priyankarpal
Copy link

how can I install GitHub Desktop for Kali Linux?

@MarceloEbed
Copy link

Muito obrigado! Funciona perfeitamente!

@YellowRoseCx
Copy link

For anyone finding this thread recently, make sure to check page for updated releases https://github.com/shiftkey/desktop/releases

@emjay3063
Copy link

Thank you so much

@Angel-Dijoux
Copy link

Thanks you so mush. Work on POP OS with 6.1.11 Linux Kernel Version.

@Angel-Dijoux
Copy link

Thanks ;)

@kontr0x
Copy link

kontr0x commented Mar 1, 2023

Hello everyone 👋, because it looks like this site doesn't get any updates anymore I wrote a small script which automatically downloads the latest version of GitHub desktop for your system and installs it if needed.

Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

@AndnixSH
Copy link

AndnixSH commented Mar 18, 2023

Hello everyone 👋, because it looks like this site doesn't get any updates anymore I wrote a small script which automatically downloads the latest version of GitHub desktop for your system and installs it if needed.

Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

It doesn't work on Linux Mint 21.1

dell@dell-OptiPlex-7010:~/Hentet$ sh installGitHubDesktop.sh
dpkg-query: package 'github-desktop' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
dpkg-query: package 'github-desktop' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
installGitHubDesktop.sh: 34: Syntax error: redirection unexpected

@kontr0x
Copy link

kontr0x commented Mar 18, 2023

Hello everyone 👋, because it looks like this site doesn't get any updates anymore I wrote a small script which automatically downloads the latest version of GitHub desktop for your system and installs it if needed.
Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

It doesn't work on Linux Mint 21.1

dell@dell-OptiPlex-7010:~/Hentet$ sh installGitHubDesktop.sh
dpkg-query: package 'github-desktop' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
dpkg-query: package 'github-desktop' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
installGitHubDesktop.sh: 34: Syntax error: redirection unexpected

Hello AndnixSH, please consider opening a GitHub issue, so we can further investigate the problem. Please include stuff like OS and some environments like the shell you are using. Also include how to reproduce the issue, did it happen after the download procedure or after you tried to install GitHub desktop?

I span up a Mint 21 cinnamon live system and it worked fine.

@AndnixSH
Copy link

Hello AndnixSH, please consider opening a GitHub issue, so we can further investigate the problem. Please include stuff like OS and some environments like the shell you are using. Also include how to reproduce the issue, did it happen after the download procedure or after you tried to install GitHub desktop?

I span up a Mint 21 cinnamon live system and it worked fine.

Nevermind, I tried bash instead sh, it works fine. I totally forgot about bash

@kontr0x
Copy link

kontr0x commented Mar 18, 2023

Hello AndnixSH, please consider opening a GitHub issue, so we can further investigate the problem. Please include stuff like OS and some environments like the shell you are using. Also include how to reproduce the issue, did it happen after the download procedure or after you tried to install GitHub desktop?
I span up a Mint 21 cinnamon live system and it worked fine.

Nevermind, I tried bash instead sh, it works fine. I totally forgot about bash

How did I miss that 😶‍🌫️. Glad it works now!

@PedroPedrassolli
Copy link

Update to 3.2.0

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.0-linux1/GitHubDesktop-linux-3.2.0-linux1.deb
sudo gdebi GitHubDesktop-linux-3.2.0-linux1.deb

@caner-cetin
Copy link

Github Desktop'un Linux forku olduğunu bilmiyordum, çok teşekkürler!

@lasilvadev
Copy link

Thanks! :)

@machanic16
Copy link

Thanks It worked perfectly

@kontr0x
Copy link

kontr0x commented Apr 10, 2023

GitHub desktop installation script

Hello there 👋, I updated my script for GitHub desktop.
It has now the capability to:

  • install
  • update
  • uninstall

GitHub desktop with ease. You find everything you need to know in the repository.
Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

If you are to lazy to follow some links through the internet. Here is the command you need to paste into your console to execute my script.

bash -c "$(curl -fsSL https://raw.githubusercontent.com/kontr0x/github-desktop-install/main/installGitHubDesktop.sh)"

Manual approach

If you don't want to use my script, you can download the latest package for your system with one of the following commands.

This manual approach no longer works with the updated naming of the GitHub desktop release packages!

Package command
deb curl -LOJ https://github.com$(grep -o -E "\/shiftkey\/desktop\/releases\/download\/release-[0-9.]*-linux1\/GitHubDesktop-linux-.*-linux1\.deb" <<< $(curl -sL $(grep -o -E "https:\/\/github.com\/shiftkey\/desktop\/releases\/expanded_assets\/release-[0-9.]*-linux1" <<< $(curl -sL https://github.com/shiftkey/desktop/releases/latest)))) --progress-bar
rpm curl -LOJ https://github.com$(grep -o -E "\/shiftkey\/desktop\/releases\/download\/release-[0-9.]*-linux1\/GitHubDesktop-linux-.*-linux1\.rpm" <<< $(curl -sL $(grep -o -E "https:\/\/github.com\/shiftkey\/desktop\/releases\/expanded_assets\/release-[0-9.]*-linux1" <<< $(curl -sL https://github.com/shiftkey/desktop/releases/latest)))) --progress-bar

After the download, make sure to use your distro's package manager ( dpkg, apt or rpm ) to install the package.

e.g.

  • sudo dpkg -i ./GitHubDesktop-linux-[...].deb
  • sudo apt install ./GitHubDesktop-linux-[...].deb
  • sudo rpm -i GitHubDesktop-linux-[...].rpm

@dtabuyodesigner
Copy link

Muchas gracias. He conseguido arreglarlo.

@aysent911
Copy link

Thank you very much! Works fine on Debian 11

@zzyadd
Copy link

zzyadd commented Apr 22, 2023

Thank you very much! Works fine on DatLinux

@Sam2567
Copy link

Sam2567 commented May 2, 2023

It works fine on Ubuntu 22.08.
Thanks xD

@ANDRIANALISOA-sylvere
Copy link

thanks

@ouakelib
Copy link

ouakelib commented May 3, 2023

Thanks a lot. that worked very well for me.

@danya7777
Copy link

thank you I wanted to install github with wine

@ouakelib
Copy link

ouakelib commented May 5, 2023

thank you I wanted to install github with wine

No need to use wine. Just exec the commands in your terminal

@kotnibf
Copy link

kotnibf commented May 6, 2023

Thanks, that is really helpful!

@Saljooq
Copy link

Saljooq commented May 8, 2023

Can you update the link for version 3.2.1?
Here's the suggested update

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.1-linux1/GitHubDesktop-linux-3.2.1-linux1.deb
sudo apt install ./GitHubDesktop-linux-3.2.1-linux1.deb

@kontr0x
Copy link

kontr0x commented May 8, 2023

Hello @Saljooq, it seems like this gist is not actively maintained. I suggest you to try out my script instead.
Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

Here is the command you need to paste into your console to execute my script. By default, it will also check if an update is available.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/kontr0x/github-desktop-install/main/installGitHubDesktop.sh)"

@petra-viola
Copy link

worked perfectly, thank you!

@HaziimYassien
Copy link

I've never thanked you enough for this project thanks alot man

@noprofile03
Copy link

Muito obrigado! Funciona perfeitamente!

what are you even talking about

@ashirsat
Copy link

Update to 3.2.0

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.0-linux1/GitHubDesktop-linux-3.2.0-linux1.deb sudo gdebi GitHubDesktop-linux-3.2.0-linux1.deb

works

@TahianSylvain
Copy link

sure things!!

@Anchor27
Copy link

Anchor27 commented Jul 1, 2023

Worked Like Charm
Thank You !!!

@Anchor27
Copy link

Anchor27 commented Jul 1, 2023

Update to 3.2.0

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.0-linux1/GitHubDesktop-linux-3.2.0-linux1.deb sudo gdebi GitHubDesktop-linux-3.2.0-linux1.deb

It Worked
Thanks !!!

@edub9
Copy link

edub9 commented Jul 12, 2023

Updated like a charm thanks!

@yuby41
Copy link

yuby41 commented Jul 12, 2023

your link is perfect.
It work

THANKS!!!!!!!

@kevin-weitgenant
Copy link

Hello everyone wave, because it looks like this site doesn't get any updates anymore I wrote a small script which automatically downloads the latest version of GitHub desktop for your system and installs it if needed.

Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

worked fine here... thank you

@marauder2k7
Copy link

unable to authenticate with any of these anyone else have that issue?

@Kfmoss
Copy link

Kfmoss commented Aug 9, 2023

Thank you !!!!

@Putin57
Copy link

Putin57 commented Aug 9, 2023

thank you :)

@iffishells
Copy link

Buts GitHub desktop for ubuntu is not supporting the private repo and organization repo.

@bongende
Copy link

thank you!

@Jv-Quintino
Copy link

Muito Obrigado!!

@YoussefXAhmed
Copy link

Thank you man

@agrur
Copy link

agrur commented Sep 5, 2023

Thank you very much! It works fine on Ubuntu 20.04.4.

@same-101
Copy link

same-101 commented Sep 9, 2023

HI

thank you

@CarolineVarela
Copy link

Muito obrigada :)

@ikramulkayes
Copy link

It works <3

@NobleSalt
Copy link

Can you update the link for version 3.2.1? Here's the suggested update

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.1-linux1/GitHubDesktop-linux-3.2.1-linux1.deb
sudo apt install ./GitHubDesktop-linux-3.2.1-linux1.deb

Works, Thanks man

@david-kariuki
Copy link

Please update it to GitHubDesktop-linux-amd64-3.3.1-linux1.deb

@NobleSalt
Copy link

NobleSalt commented Sep 16, 2023

Please update it to GitHubDesktop-linux-amd64-3.3.1-linux1.deb

This is the link to the latest version
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.3.1-linux1/GitHubDesktop-linux-amd64-3.3.1-linux1.deb
sudo apt install ./GitHubDesktop-linux-amd64-3.3.1-linux1.deb -y

@sginsbourg
Copy link

Perfect script !

@sec-fortress
Copy link

sec-fortress commented Sep 26, 2023

If you don't have gdebi, you can use dpkg

sudo dpkg -i GitHubDesktop-linux-3.1.1-linux1.deb

@TheSaviourEking
Copy link

works 💯

@ranraj
Copy link

ranraj commented Sep 28, 2023

@sec-fortress solution works.

@saracasticshailz
Copy link

Dhanyawad !! it worked @kontr0x

@Halil-Ibrahim-Kalan
Copy link

thanks

@moteshubham
Copy link

auth

same here

@Harsehraab
Copy link

Thanks

@DufeiFelix
Copy link

Worked, thanks a lot!

@Derrickkoko1234
Copy link

sudo apt install ./GitHubDesktop-linux-amd64-3.3.1-linux1.deb -y

Thank you so much.

@ngothanhthien
Copy link

Still work. Many thanks

@kontr0x
Copy link

kontr0x commented Oct 18, 2023

GitHub desktop installation script

Hello there 👋,
I want to promote a little script of mine that can install, update and uninstall the most recent GitHub desktop version with ease.
You find everything you need to know in the repository. The repository is actively maintained, and feel free to open issues and pull requests if you want to contribute.

Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

If you are too lazy to follow links throughout the internet. This is the command you need to paste into your console to execute the script.

bash -c "$(curl -fsSL https://raw.githubusercontent.com/kontr0x/github-desktop-install/main/installGitHubDesktop.sh)"

@Aman-Verma-28
Copy link

Thank you!

@gdwmw
Copy link

gdwmw commented Oct 20, 2023

Thank you!

@code-creeper
Copy link

Awesome Thanks a lot

@zoubiii
Copy link

zoubiii commented Oct 21, 2023

tanks you :)

@Binzakens
Copy link

It works like a charm. Thank you!

@iranzithierry
Copy link

thanks

@david-kariuki
Copy link

Buts GitHub desktop for ubuntu is not supporting the private repo and organization repo.

These are pro features on Github.

@DocMors
Copy link

DocMors commented Oct 23, 2023

Nice start, many thanks!

@arseniomuanda
Copy link

Boa noite!

@GorEldeen
Copy link

Works like a charm, Thanks brother!

@juniormiranda89
Copy link

juniormiranda89 commented Oct 28, 2023

Here is the latest version:

sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.3.3-linux1/GitHubDesktop-linux-amd64-3.3.3-linux1.deb
sudo apt install ./GitHubDesktop-linux-amd64-3.3.3-linux1.deb -y

@animeshjha-unity
Copy link

Does anyone have issues login into Enterprise Git with this ?

@kevinhikaruevans
Copy link

Couple of questions, why not use apt install ./thing.deb?

And why not add the keys and package sources? Then you could just apt install from the package repo and stay up to date.

@fetwar
Copy link

fetwar commented Nov 2, 2023

Does Github publish a signed hash or verifiable version of the package?

It doesn't quite sit right with me to not verify the files integrity with a public key or signed hash prior to install.

@Yclpaiva
Copy link

Yclpaiva commented Nov 3, 2023

It worked!

@fetwar
Copy link

fetwar commented Nov 3, 2023

There are much better, up to date install instructions for this package in the README.md for this project, shiftkey/desktop.

If you get the download instructions from there instead, you can add it to your apt sources with a GPG public key, so you can verify the install and update Github desktop using apt update and apt upgrade.

They also provide a .deb download in the releases as well (with hash to verify integrity), if that's more your style.


I have no idea why this outdated gist is the top result on Google, but the repo itself isn't...

@acsistemas
Copy link

acsistemas commented Nov 4, 2023

Hola estimados, una ayuda por favor, recién deje windows 11 y me pase a linux mint cinamon ultima versión, y tengo un problema con github desktop para linux, tengo varios repositorios que mantener sincronizados y solo me funciono bien con los primeros 10 repositorios, los demás me pide una clave personal tocken, la cual ya la cree pero ni con eso ni con mi contraseña principal me funciona. En windows 11 GitHub Desktop me funcionaba bien. Será que tengo que hacer algún ajuste?

Envío captura de lo que me salta IMAGEN https://i.imgur.com/V3bgQhD.jpg

Alguna ayuda, o sugerencia. Por favor, su ayuda. Muchas gracias

@realDragon11
Copy link

I have no idea why this outdated gist is the top result on Google, but the repo itself isn't...

this is pretty standard for google these days, the most extreme example being the terraria fandom wiki which got unofficial ed many years ago yet still beats the official one.
even more unfortunate that github seems to not really support linux, finding 2fa things to satisfy it was also super jank since none of it's suggestions worked on my distro, which is just a flavor of ubuntu

@OuIChien
Copy link

Thank you!

@danieel7
Copy link

It works ,thanks bro !

@SabraHashemi
Copy link

it works for me on ubuntu 18.04, thank you!

@rakkarage
Copy link

sudo curl -s https://api.github.com/repos/shiftkey/desktop/releases/latest | jq -r '.assets[] | select(.name | (endswith(".deb") and contains("amd64"))) | .browser_download_url' | xargs wget -O github-desktop.deb && sudo apt install ./github-desktop.deb -y

@phanect
Copy link

phanect commented Nov 19, 2023

Hi,
GitHub Desktop for Linux now supports apt repository.

The installation script can be updated to the following one

$ wget -qO - https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null
$ sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/shiftkey-packages.gpg] https://apt.packages.shiftkey.dev/ubuntu/ any main" > /etc/apt/sources.list.d/shiftkey-packages.list'
$ sudo apt update && sudo apt install github-desktop

Source: https://github.com/shiftkey/desktop#debianubuntu

@Pradhyumna789
Copy link

Thank you so much It works like an absolute charm!!!

@Sanyam-bot
Copy link

Thanks so much

@Meliyio
Copy link

Meliyio commented Dec 9, 2023

GitHub desktop installation script

Hello there 👋, I want to promote a little script of mine that can install, update and uninstall the most recent GitHub desktop version with ease. You find everything you need to know in the repository. The repository is actively maintained, and feel free to open issues and pull requests if you want to contribute.

Here is the link to the repository --> https://github.com/kontr0x/github-desktop-install

If you are too lazy to follow links throughout the internet. This is the command you need to paste into your console to execute the script.

bash -c "$(curl -fsSL https://raw.githubusercontent.com/kontr0x/github-desktop-install/main/installGitHubDesktop.sh)"

@Meliyio
Copy link

Meliyio commented Dec 9, 2023

Thanks

@mf2199
Copy link

mf2199 commented Dec 18, 2023

Kudos! It really works!

@kTucker-101
Copy link

NICE desktop app. Except it can only add stuff and that's it.

@goldboolean
Copy link

goldboolean commented Dec 26, 2023

Danke from Tennessee. Im old and learning. Can you show the complete script to uninstall. I don't understand what to append -m uninstall to. I want to keep it but you never know. Also why does poster say it can only add, I see other commands...
Bitte

@kontr0x
Copy link

kontr0x commented Dec 27, 2023

Danke from Tennessee. Im old and learning. Can you show the complete script to uninstall. I don't understand what to append -m uninstall to. I want to keep it but you never know. Also why does poster say it can only add, I see other commands... Bitte

Hello @goldboolean,

you can achieve this by supplying the argument at the end of the command, e.g.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/kontr0x/github-desktop-install/main/installGitHubDesktop.sh)" "" --help

or in your case

bash -c "$(curl -fsSL https://raw.githubusercontent.com/kontr0x/github-desktop-install/main/installGitHubDesktop.sh)" "" -m uninstall

Many greetings to Tennessee

@bitsoarthur
Copy link

telegram

@RenanRosostolato
Copy link

Obrigado !

@Stevodelika
Copy link

Cool. It works!

@drzzldev
Copy link

Works great! Thnak you for providing.

@shahjahan-arif
Copy link

sudo dpkg -i GitHubDesktop-linux-3.1.1-linux1.deb

@drdinnerbone
Copy link

Buts GitHub desktop for ubuntu is not supporting the private repo and organization repo.

These are pro features on Github.

no, these are no longer pro features on github

@OldBlade
Copy link

trying to install github-desktop in Ubuntu, using shiftkey, as described above.
I get: Could not connect to apt.packages.shiftkey.dev:80 (20.15.126.193), connection timed out

network is fine, shiftkey packages wget ok.

any suggestions?

@jbanahan
Copy link

Everything seems to work used this in WSL2 Ubuntu 20.04, but I do see this error message.

`Unknown or unsupported transport "disabled" for address "disabled:"
image

@ronytic
Copy link

ronytic commented May 26, 2024

Thank you so much, It's working

@aasvela
Copy link

aasvela commented Jun 11, 2024

So easy, so nice! Thank you :)

@Vodculen
Copy link

yo cool, I thank you for supporting the Linux side of Github since microsoft cant give it to us!

@Naren1997
Copy link

Team, I'm getting this error suddenly, I tried restarting my VM as well. Can anyone help please?
image

@phanect
Copy link

phanect commented Jul 3, 2024

@Naren1997 This is not an official thread. I recommend to ask in the following official repo:

https://github.com/shiftkey/desktop

I suspect your HTTPS certificates are out of date. Did you update your system packages with e.g. apt upgrade or dnf update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment