For GnuCash users who prefer the native .deb
package format, here I made a new unofficial PPA for all current Ubuntu releases.
GnuCash is a popular personal and small-business financial-accounting software. It’s available in the Ubuntu system repositories, but always old.
I’ve written about how to install the most recent GnuCash 5.10 in Ubuntu in different ways. For those who prefer the .deb
package, here’s a new PPA available for choice.
There’s already a well-known PPA contains the most recent GnuCash packages, which however does not update for the old Ubuntu 22.04 and Ubuntu 20.04 LTSs. For request, I made the new one that supports all current Ubuntu releases.
GnuCash PPA
NOTE for Ubuntu 20.04, the PPA also contains an updated version of libgwenhywfar
library required by GnuCash 5.10. It may conflict with other software packages that depend on the stock version of that library from the system repository.
1. To add the PPA and install the software package from it, first press Ctrl+Alt+T
to open terminal, and run command:
sudo add-apt-repository ppa:ubuntuhandbook1/gnucash
For Linux Mint, either use “Software Sources” utility to add PPA, or you need to run sudo apt update
afterward to manually refresh package cache.
2. If successfully add the PPA, you’ll have multiple GnuCash packages available for choice in the ‘apt policy’ output:
apt policy gnucash
As you see in the screenshot, the command should show you the most recent GnuCash (5.10 so far) from PPA, and the old stock version from system repository. And, both priority should be 500.
3. To install the GnuCash package from the PPA, simply use command:
sudo apt install gnucash
If there’s another package source that has priority higher than 500, then you may run the command below instead to tell which source to install the package from:
sudo apt install gnucash -t "o=LP-PPA-ubuntuhandbook1-gnucash"
If you already have the old stock version installed, you may also launch “Software Updater” to update the package:
Uninstall:
If you want to downgrade GnuCash to the stock version, then run command to install ppa-purge and use it the purge PPA:
sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/gnucash
NOTE: ppa-purge
command may fail if you have broken sources (e.g., missing GPG key) and unmet dependency issues.
To just remove the GnuCash package, use command:
sudo apt remove --autoremove gnucash gnucash-common
Then, remove the PPA via command:
sudo add-apt-repository --remove ppa:ubuntuhandbook1/gnucash