Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am with ubuntu 12 and Qgis 1.8. I have installed QGIS and grass plugin but I can't install python plugin. How to install python plugin with dependeny in Ubuntu?

~$ sudo apt-get install python-qgis
[sudo] password for sugandha: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-qgis : Depends: python-qt4 (>= 4.1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
share|improve this question
I think this might be because not all of the packages requested are present in the repository. It's happened to me using the package manager, if you wait a day and then try again you might have better luck. N. – nhopton Sep 12 '12 at 10:18
@nhopton its 4th day :( already tried installing dependency it asks for another dependency in chain... – kinkajou Sep 12 '12 at 10:34
Then I'm stuck I'm afraid. If you try installing QGIS using the package manager do you get the 'Partial Download' warning? – nhopton Sep 12 '12 at 11:25
Hi, are you using the ubuntugis repository? check here for a similar problem and how to add a new repository:… – s_a Sep 12 '12 at 13:05
just a thought: have you tried <code>sudo apt-get build-dep python-qgis</code> ??? – s_a Sep 12 '12 at 13:21

Which repository are you using? You might want to add the following to you /etc/apt/sources.list

deb precise main
deb-src precise main

After that, update your system

apt-get update

Next, add the qgis public key to our package manager's key ring

gpg –keyserver –recv 1F9ADD375CA44993
gpg –export –armor 1F9ADD375CA44993 | sudo apt-key add -

Then try installing again.

sudo apt-get install python-qgis 


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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