Install GnuCash in Debian testing from stable


Debian

GnuCash in Debian unstable fails, how can I get a working GnuCash in Debian testing?

In a previous post I explained that GnuCash is not available in Debian testing, and how to install a newer version from Debian unstable.  That worked fine until I reinstalled Debian testing in my PC, which brought in a newer version of GnuCash that fails with a segmentation fault when entering a new transaction.

The solution is to install and older GnuCash from Debian stable, these are the steps:

  1. add rows for stable in the /etc/apt/sources.list file

  2. create an /etc/apt/preferences file

  3. run apt update

  4. run apt install -d libgoffice-0.8/stable.  The packages will be downloaded only and not installed: Check that only four libgoffice-0.8 packages are downloaded from stable, the rest should be downloaded from testing.  If this is correct, repeat the command without the -d to do the actual install,

  5. run apt install -d libofx6/stable, do as explained in step 4.

  6. run apt install -d libgnome-keyring0/stable, do as explained in step 4.

  7. run apt install -d gnucash/stable,  do as explained in step 4.

The rows for unstable in /etc/apt/sources.list are shown below:

deb http://ftp.mx.debian.org/debian/ testing main
deb-src http://ftp.mx.debian.org/debian/ testing main

deb http://ftp.mx.debian.org/debian/ stable main
deb-src http://ftp.mx.debian.org/debian/ stable main

deb http://security.debian.org/debian-security testing/updates main
deb-src http://security.debian.org/debian-security testing/updates main

The content of /etc/apt/preferences:

Package: *
Pin: release stable
Pin-Priority: -10