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

NobleSalt commented Sep 16, 2023

Copy link
Copy Markdown

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

Perfect script !

@sec-fortress

sec-fortress commented Sep 26, 2023

Copy link
Copy Markdown

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

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

@TheSaviourEking

Copy link
Copy Markdown

works 💯

@ranraj

ranraj commented Sep 28, 2023

Copy link
Copy Markdown

@sec-fortress solution works.

@saracasticshailz

Copy link
Copy Markdown

Dhanyawad !! it worked @kontr0x

@Halil-Ibrahim-Kalan

Copy link
Copy Markdown

thanks

@moteshubham

Copy link
Copy Markdown

auth

same here

@Harsehraab

Copy link
Copy Markdown

Thanks

@DufeiFelix

Copy link
Copy Markdown

Worked, thanks a lot!

@Derrickkoko1234

Copy link
Copy Markdown

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

Thank you so much.

@ngothanhthien

Copy link
Copy Markdown

Still work. Many thanks

@kontr0x

kontr0x commented Oct 18, 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)"

@Aman-Verma-28

Copy link
Copy Markdown

Thank you!

@gdwmw

gdwmw commented Oct 20, 2023

Copy link
Copy Markdown

Thank you!

@code-creeper

Copy link
Copy Markdown

Awesome Thanks a lot

@zoubiii

zoubiii commented Oct 21, 2023

Copy link
Copy Markdown

tanks you :)

@binzakens

Copy link
Copy Markdown

It works like a charm. Thank you!

@iranzithierry

Copy link
Copy Markdown

thanks

@david-kariuki

Copy link
Copy Markdown

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

These are pro features on Github.

@DocMors

DocMors commented Oct 23, 2023

Copy link
Copy Markdown

Nice start, many thanks!

@arseniomuanda

Copy link
Copy Markdown

Boa noite!

@GorEldeen

Copy link
Copy Markdown

Works like a charm, Thanks brother!

@juniormiranda89

juniormiranda89 commented Oct 28, 2023

Copy link
Copy Markdown

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

Does anyone have issues login into Enterprise Git with this ?

ghost commented Nov 1, 2023

Copy link
Copy Markdown

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

fetwar commented Nov 2, 2023

Copy link
Copy Markdown

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

Yclpaiva commented Nov 3, 2023

Copy link
Copy Markdown

It worked!

@fetwar

fetwar commented Nov 3, 2023

Copy link
Copy Markdown

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

acsistemas commented Nov 4, 2023

Copy link
Copy Markdown

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

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