Installing QGIS Official Release on Ubuntu

QGIS is a cross-platform free and open-source desktop geographic information system (GIS) application. Although being cross-platform, level of official support varies from one platform to another. For the highest level of official support, I will recommend Ubuntu for building QGIS application environment.

I have modified the installation process a bit, creating separate sources list file and trusted signing key file, to better fit the design philosophy of APT.

Import QGIS Archive Automatic Signing Key

sudo mkdir -m755 -p /etc/apt/keyrings
curl -fsSL | sudo gpg --dearmor --output /etc/apt/keyrings/qgis-archive-keyring.gpg

Setup Sources

On Ubuntu 22.04 LTS, Jammy Jellyfish

Create file /etc/apt/sources.list.d/qgis-ubuntu-focal.list with following content.

deb [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] jammy main
deb-src [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] jammy main

On Ubuntu 20.04 LTS, Focal Fossa

Create file /etc/apt/sources.list.d/qgis-ubuntu-focal.list with following content.

deb [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] focal main
deb-src [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] focal main

On Ubuntu 18.04 LTS, Bionic Beaver

Create file /etc/apt/sources.list.d/qgis-ubuntu-bionic.list with following content.

deb [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] bionic main
deb-src [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] bionic main

On Ubuntu 16.04 LTS, Xenial Xerus (Obsolete)

I want my GDAL to support WMTS, which is not implemented until GDAL 2.1, so I am going to install GDAL from UbuntuGIS repository. With this considered, I’ll just point the QGIS APT source to Latest Release with UbuntuGIS dependencies to get the most out of everything.

Setup QGIS Suite

Create file /etc/apt/sources.list.d/qgis-ubuntugis-xenial.list with following content.

deb [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] xenial main
deb-src [signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] xenial main
Setup UbuntuGIS Suite

Where newer version of GDAL resides.

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

Install QGIS

sudo apt update
sudo apt install qgis


Posted in Technical.

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha loading...