For a truly native "Debian" experience, adding a repository is superior. This allows you to update GitHub Desktop via sudo apt update && sudo apt upgrade.
# Import the Microsoft GPG key (required for the repository) wget -qO - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpgThis is a classic Electron + Wayland issue. Debian Bookworm defaults to Wayland, but GitHub Desktop runs better on X11.
Fix: Edit the desktop shortcut or launch via terminal with flags:
github-desktop --no-sandbox --disable-gpu-sandboxTo make it permanent:
sudo nano /usr/share/applications/github-desktop.desktop # Change the Exec line to: Exec=/usr/bin/github-desktop --no-sandbox --disable-gpu-sandbox %FDownload using
wget(Terminal method)# Example for Debian x64 - Check the latest URL first! wget https://github.com/shiftkey/desktop/releases/download/release-3.4.3-linux1/GitHubDesktop-linux-x64-3.4.3-linux1.debInstall the .DEB Use
dpkg(Debian Package Manager) to install it manually.sudo dpkg -i GitHubDesktop-linux-x64-*.debFix Missing Dependencies Sometimes
dpkgwill complain about missing libraries. Run: github desktop deb freesudo apt-get install -fThis command will pull in any missing dependencies (like
gconf2,libgtk-3-0, orlibnotify4).Launch You can now launch GitHub Desktop from your Application Menu (under "Programming" or "Development") or by typing
github-desktopin the terminal.Before diving into the installation, let's address the core of the keyword: Why specifically a .DEB file? For a truly native "Debian" experience, adding a
Debian-based systems (Debian, Ubuntu, Pop!_OS, Linux Mint, Kali, etc.) use the Advanced Packaging Tool (APT) which relies on
.debpackages. When you have a.debfile, you unlock three major advantages:For developers, a
.debalso means you can host it on a private APT repository or cache it for offline installations across multiple machines.
github-desktop
Now you have no excuse to lose track of your code. Go forth, commit visually, and enjoy the best of both worlds: the stability of Debian and the simplicity of GitHub’s design. Happy coding!