While most advanced linux users will find this post elementary, as a ‘know enough to be dangerous’ linux user I often struggle with the simple tasks. With that in mind, this is a brief summary of the steps required to install QGIS and GRASS on Ubuntu 10.04.
The instructions provided by both the QGIS and GRASS websites are actually quite good, but there are a couple steps that intro users might miss. In terms of the workflow, the process is as such:
1. Add a new software repository
2. Reload the repository (note: this is what they don’t tell you)
3. Install software
Step 1: Add a new software repository
It appears there are a couple ways to do this: GUI, modify the /etc/apt/sources.list file, and through terminal. Since the directions on the QGIS and GRASS websites use the terminal approach, I did as well and then checked the results through the GUI.
The QGIS site posts the following:
sudo apt-get install add-apt-repository sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get install qgis
In my case, running these commands in sequence resulted in a error: “Package qgis is not available…” So to check what is happening I looked at the Software Sources (System–>Administration–>Software Sources) and specifically the second tab “Other Software”. If the second line of the code above executed, you will have a reference to “http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu”. This is the correct URL that Ubuntu should look at to find the required binaries, but something is off.
The problem is that Ubuntu does not automatically check the repository for the software contained within it. To force an update, you have two choices. First is to use the GUI: Select the ppa.launchpad.net reference, then select ‘Edit’, don’t change anything, then select ‘Close’. The GUI will prompt that it needs to refresh, select yes. The second option would be to run: sudo apt-get update (I think). Either way, once the update completes, you can run the ‘sudo apt-get install qgis’ and it will install correctly. To install GRASS, run the command ‘sudo apt-get install grass’
I am working on the final stages of the long-delayed ‘Flat Map’ and needed to get the latest versions of the open-source GIS stack up and running. Processing for the continental U.S. is complete, the remaining steps include the creation of the index and the zonal statistics by state. Hope to have it completed by the end of October.