Skip to content

Instantly share code, notes, and snippets.

@berkorbay
Last active June 9, 2026 14:38
Show Gist options
  • Select an option

  • Save berkorbay/6feda478a00b0432d13f1fc0a50467f1 to your computer and use it in GitHub Desktop.

Select an option

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
@rakkarage

Copy link
Copy Markdown

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

phanect commented Nov 19, 2023

Copy link
Copy Markdown

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
Copy Markdown

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

@Sanyam-bot

Copy link
Copy Markdown

Thanks so much

@Meliyio

Meliyio commented Dec 9, 2023

Copy link
Copy Markdown

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

Meliyio commented Dec 9, 2023

Copy link
Copy Markdown

Thanks

@mf2199

mf2199 commented Dec 18, 2023

Copy link
Copy Markdown

Kudos! It really works!

@kTucker-101

Copy link
Copy Markdown

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

@goldboolean

goldboolean commented Dec 26, 2023

Copy link
Copy Markdown

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

kontr0x commented Dec 27, 2023

Copy link
Copy Markdown

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
Copy Markdown

telegram

@RenanRosostolato

Copy link
Copy Markdown

Obrigado !

@Stevodelika

Copy link
Copy Markdown

Cool. It works!

@brassieco-gg

Copy link
Copy Markdown

Works great! Thnak you for providing.

@shajandevz

Copy link
Copy Markdown

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

@drdinnerbone

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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

ronytic commented May 26, 2024

Copy link
Copy Markdown

Thank you so much, It's working

@aasvela

aasvela commented Jun 11, 2024

Copy link
Copy Markdown

So easy, so nice! Thank you :)

ghost commented Jun 24, 2024

Copy link
Copy Markdown

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

@Naren1997

Copy link
Copy Markdown

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

@phanect

phanect commented Jul 3, 2024

Copy link
Copy Markdown

@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?

@mitzk215

mitzk215 commented Aug 8, 2024

Copy link
Copy Markdown

It still works. Thanks !!

@andrijzyn

Copy link
Copy Markdown

Still doesn`t work ๐Ÿ˜ฎโ€๐Ÿ’จ
image

@andrijzyn

Copy link
Copy Markdown

Still doesn`t work ๐Ÿ˜ฎโ€๐Ÿ’จ image

git config --global core.compression 0

@phanect

phanect commented Aug 31, 2024

Copy link
Copy Markdown

@pgmtags I think you should elaborate on what your problem is and how it is related to GitHub Desktop for Linux (Looks like you are just using Git), but I guess you should not prepend sudo. It should make the problem much more complex.
I also recommend removing the existing local Git repositories and cloning again to avoid permission-related problems.

@atmdevx

atmdevx commented Sep 10, 2024

Copy link
Copy Markdown

Thank you, it works!!!!

@victormrdc

Copy link
Copy Markdown

tyvm, it works!

@joaovmoura

Copy link
Copy Markdown

I love you, bro! Thankssss

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