Skip to content

Instantly share code, notes, and snippets.

@berkorbay
Last active July 15, 2025 09:55
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
@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!

@LaliCode
Copy link

LaliCode commented Apr 4, 2023

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

@kathy239
Copy link

kathy239 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

@ouatswo
Copy link

ouatswo commented May 23, 2023

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.

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