QGIS (Quantum GIS) install fails, unmet dependencies

May be you are doing some mistake.. I recommend you to follow the official website of Qgis to install it in Ubuntu 13.04.

I'm listing the way how to install:

1st way to install QGIS (preferred.)

  1. First remove already added repositories which you tried to install Qgis:

    • Execute this in your terminal: sudo software-properties-gtk and go to Other Software tab.

    • Then remove those repositories that you added using your mentioned tutorial. Find names similar to http://qgis.org/debian and ubuntugis-unstable. Close the window.

    • The execute this command in terminal to update your repository: sudo apt-get update

  2. Now add the QGIS repository once again to your /etc/apt/sources.list file. Do it by following these steps:

    • Open terminal and execute:

      sudo gedit /etc/apt/sources.list
      
    • Add following lines at the last line:

      deb     http://qgis.org/debian raring main
      deb-src http://qgis.org/debian raring main
      
    • Save the file and close the window.

    • Execute following two commands to add public key of QGIS

      gpg --keyserver keyserver.ubuntu.com --recv 47765B75
      gpg --export --armor 47765B75 | sudo apt-key add -
      
    • Update repository by executing following command:

      sudo apt-get update
      
  3. Now install QGIS by following these steps:

    • First remove already installed QGIS or any residual( and broken) packages if any:

      sudo apt-get autoremove
      sudo apt-get autoclean
      sudo apt-get -f install
      sudo apt-get autoremove qgis
      sudo apt-get --purge remove qgis
      
    • Install grass plugin:

      sudo apt-get install grass
      sudo apt-get install qgis-plugin-grass
      
    • Finally install QGIS:

      sudo apt-get install qgis python-qgis
      

2nd way to install *QGIS via Ubuntugis repository:*

You can also install QGIS by adding Ubuntugis repository. (The ubuntugis project provides newer versions of various FOSSGIS packages, QGIS being one of them.)

  • First remove http://qgis.org/debian lines from your /etc/apt/sources.list. 2nd step in my first method can help you how to remove.

  • Then executes these commands:

    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
    sudo apt-get update
    sudo apt-get install qgis python-qgis qgis-plugin-grass
    

It should install without any problem. Reply if something goes wrong..

Source: www.qgis.org


The error message you get simply tells you that some dependencies cannot be installed from the "standard" Ubuntu repository (for your version of Ubuntu).

For exemple python-qgis-common (from the package you are trying to install) depends on libqgis2.0.1

However if you look at the version of this package installed by Ubuntu in the official standard repository:

http://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=libqgis&searchon=names

You can see the the version supported by Ubuntu (from their official repo) is 1.7.5 for Raring and up. Nothing for Precise ...

Well Ubuntu is always late to support the latest version of any non core software.

However I did manage to install the latest version QGIS on my Ubuntu 12.04 Precise simply by visiting the QGIS.org website:

http://hub.qgis.org/projects/quantum-gis/wiki/Download

When in trouble it is always better to refer to the website of the organization.

Then look at Chapter 2.6 Ubuntu

The repositories are to be added to the file /etc/apt/sources.list by issuing:

sudo gksu gedit /etc/apt/sources.list

Then run the usual

sudo apt-get update
sudo apt-get install qgis

The response in the command line will recommend you to install the following packages:

qgis-plugin-grass pyhton-qgis qgis-plugin-globe

Get some information on whether you need to install them.

That's it. No more bla-bla. I usually prefer to understand the commands & actions I take to correct a problem. There is no better source than the original developper.

Tags:

Gis

13.04