Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
To install Github Desktop for Ubuntu
## Follow this link for further updates to Github Desktop for Ubuntu https://github.com/shiftkey/desktop/releases/latest
# 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
@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

@YuHoChau
Copy link

YuHoChau commented Mar 2, 2023

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

Thanks a lot! Really helpful.

@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

@canercetin-randomguy
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

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