I am relatively new to Linux, so can you indicate the exact commands (step-by-step) that I need to type to get the latest QGIS installed on Ubuntu 14.04.

I have tried to follow the instructions provided here https://www.qgis.org/en/site/forusers/alldownloads.html but I haven't managed to install anything.

Can someone explain to me step by step process of doing it. Right from adding the QGIS repository on the sources list.

I have Ubuntu 14.04.1 LTS installed on a 32-bit Dell Latitude E4310 Machine


3 Answers 3


The instructions on the QGIS download site are not as intuitive as I'd like, but they do work when you know the command syntax:

First, what version of Debian Linux (Ubuntu / Mint) are you running?

The Ubuntu Codename of your APT repository will depend on the version of the OS and which version of QGIS you can run.

QGIS 3.10/14 will run on Ubuntu 20.04 (focal) and Linux Mint 20 (focal) and above.

You can run this command to get your DISTRIB_CODENAME:

cat /etc/upstream-release/lsb-release

Add links to QGIS repositories

# Replace 'codename' with your ubuntu version codename: 

sudo add-apt-repository "deb https://qgis.org/debian codename main"

Add keys:

wget -qO - https://qgis.org/downloads/qgis-2020.gpg.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import 

sudo chmod a+r /etc/apt/trusted.gpg.d/qgis-archive.gpg

Install QGIS

sudo apt-get update && sudo apt-get install qgis python-qgis  


  • Keys last updated 08/12/2020
  • Please leave a comment if you notice they need updating again, and I will update this answer
  • The original QGIS instruction details are here
  • 2
    This worked for me, although I did replace the key 47765B75 with one that appeared when attempting the sudo apt-get update [..] the first time
    – Jur_
    Commented Mar 15, 2016 at 9:06
  • Which might also be because I used http://qgis.org/ubuntugis.
    – Jur_
    Commented Mar 15, 2016 at 9:15
  • 1
    Still working June 2017 on Xenial. Commented Jun 18, 2017 at 17:19
  • 1
    This is working on zesty, too now, Ubuntu 17.04
    – BiggCrazy
    Commented Jul 25, 2017 at 7:38
  • 1
    Best solution I've seen to installing QGIS from scratch, using this process above I safely installed the GRASS plugin as well. So, the final step can include sudo apt-get update && sudo apt-get install qgis python-qgis qgis-plugin-grass!
    – E. Weglarz
    Commented Apr 26, 2018 at 17:29
  1. sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
  2. sudo apt-get update
  3. If you already have qgis installed:
    sudo apt-get upgrade
    If you don't already have it:
    sudo apt-get install qgis
  • 2
    Could complete the install with : sudo apt-get install python-qgis qgis-plugin-grass
    – egoz
    Commented Feb 4, 2015 at 13:55
  • Note that this should install the newest version of QGIS. Probably OK for the OP, but not for me, who try to revert to 2.6 due tu a bug in newer versions.
    – Pavel V.
    Commented Jul 9, 2015 at 9:31
  • 4
    At least with 16.10 this is old advice. The version of qgis in the repository 2.14.5 is newer than the version in ubuntugis/ubuntugis-unstable, 2.14.1. And, 2.18 is out. Commented Oct 26, 2016 at 12:08
  • @EvanCarroll Could you provide what is the correct advice for those who want to install 2.18 or newer? Commented Oct 26, 2016 at 19:20
  • Give me one hour I'll be glad to on the road Commented Oct 26, 2016 at 19:22

The Ubuntu and UbuntuGIS repositories really do lag very far behind the latest release of QGIS, so the best thing is to download directly from qgis.org.

Here is perhaps the simplest way to do this, assuming you already have Ubuntu Software Center:

  1. Open Ubuntu Software Center, go to Edit -> Software Sources -> Other Software -> Add, and then in the dialog for “APT line:”, add

    deb http://qgis.org/debian trusty main

    Then hit the ‘Add Source’ button to save, and close the dialog.

  2. Open your command line terminal (Ctrl + Alt + T), and then type

    sudo apt-get update && sudo apt-get install qgis python-qgis

    or if you want to install Grass as well,

    sudo apt-get update && sudo apt-get install qgis python-qgis qgis-plugin-grass
  • I get this when following these instructions : GPG error: qgis.org/debian xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 073D307A618E5811 W: The repository 'qgis.org/debian xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.
    – chrismarx
    Commented Dec 12, 2016 at 20:53
  • 1
    Following the answer from @DPSSpatial worked, for adding the key-
    – chrismarx
    Commented Dec 12, 2016 at 20:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.