Adding Ubuntu GIS repository to your system's software sources

To use Ubuntu GIS packages, you need to add the repository to your systems software sources.

Verify that your Ubuntu distribution is supported by the Ubuntu GIS project: List of the supported distributions

The Ubuntu GIS packages are only available for the Ubuntu LTS releases which haven't gone end-of-life yet.

Add the sources.list entries

Ubuntu GIS has two different PPA:

  • Stable: updated every six months, contains a stable state of the unstable ppa ( )
    sources.list entries:
    deb <codename> main 
    deb-src <codename> main 
  • Unstable: updated frequently, contains the up-to-date packages. This ppa may break something. ( )
    sources.list entries:
    deb <codename> main 
    deb-src <codename> main 

Convenient Method

Starting with Ubuntu 9.10 (Karmic Koala), a convenient new command is available for adding Launchpad PPA (Personal Package Archive) repositories via the command line: add-apt-repository.

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

or for the stable PPA:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ppa

That's it! (And make sure you install only one of the two repositories and not both)

Manual Method

See the sources.list entries above and replace the <codenane> tag by your distribution codename. The command "lsb_release -c" will tell you what is the codename of your system.

  1. Open the file /etc/apt/sources.list with a text editor and append the entries to the file.
  1. Authenticate the repository. Open your terminal and enter:
    sudo apt-key adv --keyserver --recv-keys 089EBE08314DF160

314DF160 is the OpenPGP key of the Ubuntu GIS repository

If you prefer adding the entries using the GUI, see this page:

  1. Update your system's package list:
    sudo apt-get update
Last modified 2 years ago Last modified on Jan 31, 2022, 3:28:42 AM
Note: See TracWiki for help on using the wiki.