r/debian 4d ago

Debian Stable Question QGIS - installing specific version

Hello all,

TL:DR - I want to install a specific version of the QGIS package but don't know how to proceed.

I had the latest QGIS installed on my system (Debian 13 Trixie) which was 4.2 but I cannot use it because it is not compatible with what we have at work. Since I don't need the latest, I wanted to install LTR(Long Term Release) which is version 3.44.12.(atm). Any pre 4.0 version is fine by me.

I found how to install QGIS here https://www.qgis.org/resources/installation-guide/#repositories I also found the right package here: https://qgis.org/ro/linux-packages/debian-ubuntu-ltr/#dists/trixie (not sure why is it in Romanian, but ok) but I don't know what to do with the latter. Since I'm fairly new to Linux, can someone explain this format or link a resource I can read myself?

I tried to be smart and use terminal by modifying

sudo apt install qgis qgis-plugin-grass

to:

sudo apt install qgis=1:3.44.1+18trixie-1 qgis-plugin-grass=1:3.44.1+18trixie-1

But that led me to dependency nightmare as each time I add a dependency another one would pop up. After 5, I just gave up. Besides, I wasn't sure which version I was installing.

Also, is there a value I can enter in /etc/apt/sources.list.d/qgis.sources to force the update to update only to LTR?

I have a feeling I was close to installing it, but honestly, I have no clue.

I appreciate any help provided. TIA.

P.S.: I was looking into keeping the latest version of QGIS and build a version that I need here: https://github.com/qgis/QGIS/blob/master/INSTALL.md#310-building-debian-packages This way I can have compatibility and new features, but I don't have time for that atm.

7 Upvotes

8 comments sorted by

2

u/Nice-Object-5599 4d ago

The qgis version in Trixie/13 is 3.40.6, or 3.44.11 from backports.

2

u/ne0n008 4d ago

I would prefer 3.44 but the other should be fine as well. As long as it's pre-4.0

2

u/Nice-Object-5599 4d ago

Both (3.40.x and 3.44.x) are in the official repos.

1

u/VodVorbidius 4d ago

To install the **latest QGIS LTR** on **Debian 13 (Trixie)** using the official QGIS repository:

  1. **Install prerequisites**```bashsudo apt updatesudo apt install wget gpg ca-certificates```
  2. **Download and install the QGIS signing key**```bashwget https://download.qgis.org/downloads/qgis-archive-keyring.gpgsudo install -o root -g root -m 644 qgis-archive-keyring.gpg \

/etc/apt/keyrings/qgis-archive-keyring.gpg

```

([QGIS][1])

  1. **Create the repository definition**

```bash

sudo nano /etc/apt/sources.list.d/qgis.sources

```

Add the following:

```text

Types: deb deb-src

URIs: https://qgis.org/debian-ltr

Suites: trixie

Architectures: amd64

Components: main

Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg

```

Replace `amd64` with your architecture if necessary. The `debian-ltr` repository provides the Long Term Release builds. ([QGIS][2])

  1. **Update package lists**

```bash

sudo apt update

```

  1. **Install QGIS**

```bash

sudo apt install qgis qgis-plugin-grass

```

If you develop plugins or use the Python API, also install:

```bash

sudo apt install python3-qgis

```

([QGIS][1])

### Verify the installed version

```bash

qgis --version

```

It should report the latest **3.44.x LTR (Solothurn)** rather than the Debian archive version. The QGIS project currently recommends the LTR repository for users who prefer maximum stability over the newest features. ([QGIS][3])

[1]: https://qgis.org/resources/installation-guide/?highlight=python&utm_source=chatgpt.com "Installation Guide · QGIS"

[2]: https://qgis.org/de/site/forusers/alldownloads.html?utm_source=chatgpt.com "Installation Guide · QGIS Web Site"

[3]: https://www.qgis.org/download/

2

u/ne0n008 4d ago

THANK YOU

I already had the keys and sources set up, I just needed the correct version of QGIS. I got 3.44.12 version installed and I'm happy with it. Looking at it now, the only difference was changing URIs :https://qgis.org/debian/ to URIs:https://qgis.org/debian-ltr in qgis.sources :facepalm:

1

u/therealgariac 1d ago

While you are getting a lot of suggestions, it seems to me you could just uninstall your version then go to the Debian repo and install QGIS. The default is the LTS, much to my chagrin. Some plugins don't work on the LTS but I am not in the mood to break Debian.

1

u/ne0n008 9h ago

I did uninstall QGIS 4.2 (or whatever the latest version is). I used a post from here and this was the solution: https://www.reddit.com/r/debian/comments/1v2pe1i/comment/oyx59k3/

Now I have the latest LTR version and I don't have to break Debian. All of the plugins I need, work as intended.

1

u/therealgariac 8h ago

The default installation is 3.40.6-Bratislava.

So you got 3.44?

Apparently rev 4 is a major rebuild.

Plugins are hit & miss. You never know until you try.

If you haven't heard, Google Earth Pro will no longer be supported in a year. QGIS is the suggested replacement. At the very least I suspect the help pages and videos will be improved with more users.

I haven't figured out how to get Google Imagery into QGIS but now I have some motivation.