How to Install Geany IDE (2.0 Updated) via PPA in Ubuntu 20.04, 22.04

Last updated: March 1, 2024 — 11 Comments

Merry Christmas to all my dear readers! In this tutorial I’m going to introduce the new Ubuntu PPA for Geany IDE.

Geany is a free open-source lightweight IDE for BSD, Linux, macOS, Solaris and Windows. It supports many programming languages including C, C++, Java, PHP, HTML, LaTeX, Python, Perl, and more.

Geany does not provides official Linux packages. And, Ubuntu includes fixed versions in its repositories which are always old. For request, I created an unofficial PPA that contains the latest Geany 2.0 as well as its plugins, while the “Geany Developers” team PPA has not been updated for a year.

The PPA supports all current Ubuntu releases, including Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.10, and their based systems, e.g., Linux Mint 21, and Zorin OS 17. And, you can install it on 64-bit modern PC, and/or arm64/armhf devices (e.g., Apple Silicon and Raspberry Pi).

As not a programmer, I’m not very sure, but the IDE package seems working good in my case in Ubuntu 22.04.

What’s New in Geany 2.0:

  • Split “session data” into session.conf, preferences are written to and read from geany.conf.
  • Re-add ability to scroll over document tabs.
  • Use new tree view as default for the document list in the sidebar.
  • Dark-theme friendly colors for compiler message
  • Filter entry for symbol tree.
  • Simplify project creation from existing directories with sources.
  • Add option to show symbols in symbol tree without category groups.
  • Add option to only show line endings if they differ from file default.
  • Make tab label length and window title length configurable.
  • Make Go to Symbol commands show signature list.
  • Scintilla 5.3.7 and Lexilla 5.2.7
  • Add “Change history” feature (disabled by default)
  • Sync many parsers from the Universal Ctags project
  • Improved support for the ctags file format
  • Update Kotlin, Nim, PHP, Python filetype config
  • Apply Markdown header style to the complete header
  • Add AutoIt, GDScript filetype
  • Remove Ferite filetype
  • Enable local variables and improve autocompletion for C/C++ and some other languages
  • Use “Prof-Gnome” GTK theme and GTK dialogs on Windows.

Install Geany in Ubuntu via PPA:

Firstly, press Ctrl+Alt+T on keyboard to open a terminal window. Or search for and open terminal from start menu if you’re not on Ubuntu. When it opens, run the commands below one by one.

1. Add the PPA

Copy and paste (Ctrl+Shift+V) the command below into terminal and hit run will add the PPA repository:

sudo add-apt-repository ppa:ubuntuhandbook1/geany

As sudo command, you have to type user password (no visual feedback) to authenticate. After that, hit Enter to continue.

2. Update system package cache:

Since Ubuntu 20.04, it does automatically update the package cache while adding PPA. However, old Ubuntu releases (18.04) and some based systems may not. So, run command below to check updates manually:

sudo apt update

3. Install or Upgrade Geany:

If you already have an old version of the IDE package installed on your system, launch “Software Updater” (or Update Manager) to upgrade it:

Or, run command below in terminal to install/upgrade the package:

sudo apt install geany geany-plugins

Uninstall / Remove Geany:

You have two choices to get rid of the Geany packages from this Ubuntu PPA.

Option 1: Purge the Ubuntu PPA:

User may purge the Ubuntu PPA, which also downgrade all installed package (from that PPA) to the stock version in Ubuntu main repositories. To do so, run command:

sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/geany

Option 2: Remove the Ubuntu PPA and/or Geany package:

To remove the Ubuntu PPA without affecting all installed packages, either open “Software & Updates” and remove relevant line from “Other Software” tab.

Or, just run the command below in a terminal window:

sudo add-apt-repository --remove ppa:ubuntuhandbook1/geany

For choice, you may also remove the Geany IDE via command:

sudo apt remove --autoremove geany geany-plugins

That’s all. Enjoy!

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

11 responses to How to Install Geany IDE (2.0 Updated) via PPA in Ubuntu 20.04, 22.04

  1. You did it, once again thank you so much!

    I hope that your PPA could become the go-to PPA for Geany.

    Happy holidays!

  2. Thank you Ji. I just started using Geany and prefer installing via a PPA. This article you wrote was very helpful and easy to follow.

  3. Hi Jim. Thanks for this PPA.

    I would like to know if you will continue updating the PPA.
    Will it be updated for Ubuntu 22.04 and future versions?

    • Definitely I will! But the latest v1.38 is already in Ubuntu 22.04’s own repository, you may simply run command below to install it:

      sudo apt install geany geany-plugins

      I’m maintaining some app packages in my PPAs. I don’t even use some of them. I’d appreciate if you would remind me of the new software releases.

  4. I recently purchased a new laptop and now when I try to open a Python file located on my Raspberry Pi server it will NOT open any file on the server.

    Any ideas how I can again use Geany as my editor?

    Thanks.

  5. I’m seeing errors when I try to add the repo on my new install of Ubuntu 22.04.1 LTS:

    Repository: ‘deb https://ppa.launchpadcontent.net/ubuntuhandbook1/geany/ubuntu/ jammy main’
    Description:
    unofficial geany package backported from Ubuntu22.04/debian unstable.

    maintained by https://ubuntuhandbook.org
    More info: https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/geany
    Adding repository.
    Press [ENTER] to continue or Ctrl-c to cancel.
    Adding deb entry to /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-geany-jammy.list
    Adding disabled deb-src entry to /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-geany-jammy.list
    Adding key to /etc/apt/trusted.gpg.d/ubuntuhandbook1-ubuntu-geany.gpg with fingerprint A0062203196CA4482DDB859E4C1CBE14852541CB
    Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://repo.mysql.com/apt/ubuntu jammy InRelease
    Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
    Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
    Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
    Ign:6 https://ppa.launchpadcontent.net/ubuntuhandbook1/geany/ubuntu jammy InRelease
    Err:7 https://ppa.launchpadcontent.net/ubuntuhandbook1/geany/ubuntu jammy Release
    404 Not Found [IP: 2620:2d:4000:1::3e 443]
    Reading package lists… Done
    W: http://repo.mysql.com/apt/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    E: The repository ‘https://ppa.launchpadcontent.net/ubuntuhandbook1/geany/ubuntu jammy Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    • The PPA does not support for Ubuntu 22.04 so far, because the latest Geany package is already in the official system repository.

      Try removing the PPA source line using “Software & Updates” tool under “Other Software” tab. And, install Geany either via Ubuntu Software or by running the apt install command in this tutorial.

      BTW: there’s a warning for the key file of mysql repository you added. You can try to get rid of the warning by moving the key file via the command below (though NOT perfect due to Debian policy):

      sudo mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/mysql.gpg
  6. Hey Ji, thanks much for your efforts here! Just upgraded from v1.38 to the current version with the above method without any hickups, great stuff :-)

  7. Thank you Ji m for the PPA, it’s a lot of work and responsibility. And it works just fine.

    I first removed all my ubuntu-provided geany packages, added the ppa, reloaded the package list, and installed 2.0. Took one minute or less, didn’t need to download libraries to compile it myself.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*