27/04/2013

Ubuntu 13.04 and QGIS


Ubuntu 13.04 and QGIS

As usual, when a new version of Ubuntu comes out, I allow myself to be guinea pig and test for Ubuntu-QGIS compatibility. Some QGIS incompatibility may occur but patch updates usually follows within the next few days. Yesterday, my 64 bit dual boot computer had its Ubuntu upgraded online. Everything went well. Using Ubuntu Software Centre, I uninstalled and re-installed my QGIS just because I wanted to start from scratch. QGIS 1.7.5 was easily installed in one click this way but after activation, this message 'Couldn't load PyQGIS' came out. It basically said the Python API file was not updated from V8.1 to V9.0-9.2 as required by the Raring Ringtail version. I still could activate a landuse plan, add colours with my qml colour template but 'Fetch Python Plugins' was missing. This was serious because I often use Google Maps. Re-installation via terminal mode brought the same result and the Synaptic Package Manager could not help either. I decided to take the long cut and install the Master version. Conclusion? It was a success! QGIS 1.9.0 may look slightly different because familiar icons were re-designed but Fetch Python Plugins menu is there! My wordless step-by-step installation is below and I recommend double-clicking the images for a better view. The installation procedure basically involves:
  • Copying nightly builds from the QGIS website to the Software & Updates;
  • Copying qgis.org repository public key from the QGIS website to the Terminal;
  • Configuring and running the Synaptic Package Manager;
  • Installing update.





It should be the RARING not Quantal build. Sorry, copy & paste error.
































32 comments:

  1. Thank you for testing this out!

    ReplyDelete
    Replies
    1. Let's wait impatiently for QGIS developers to update whatever they should.

      Delete
  2. Saw this article:

    http://nyalldawson.net/2013/04/building-qgis-on-ubuntu-13-04/?utm_source=rss&utm_medium=rss&utm_campaign=building-qgis-on-ubuntu-13-04

    Also: I read/subscribe to your blog, so always reading your posts...I've been running ubuntu for over a year and loving it...your blog is a great resource!

    ReplyDelete
    Replies
    1. I do not know if it makes any difference but my RuntimeError reads "the sip module implements API v9.0 to v9.2 but the qgis.core module requires API v8.1" whereas their discussion is on 'CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1216 (message): Found unsuitable Qt version "5.0.1" from /usr/bin/qmake, this code requires Qt 4.x' but I will look into it because it seems "a better solution is to change the PYTHON_LIBRARY option from /usr/lib/libpython2.7.so to /usr/lib/x86_64-linux-gnu/libpython2.7.so". Off to a seminar.

      Delete
  3. My 13.04 64 bit has the libpython in both locations. The old bug report was for QGIS Master, not 1.8.0. I just checked the QGIS User and Developer mailing lists and did not see anything about this problem

    ReplyDelete
    Replies
    1. I'm keeping an eye on "http://www.ubuntuupdates.org/package/core/raring/universe/base/python-qgis"

      Delete
  4. There is a Launchpad report here https://bugs.launchpad.net/ubuntu/+source/qgis/+bug/1103458

    Similar reports from OpenSuse too, but still silence on the QGIS mailing lists

    ReplyDelete
    Replies
    1. I gave up and now use the Master version 1.9.0 because basically...it works in areas i want it to!

      Delete
  5. I got 1.8.01 working using the new QGIS release packages

    In Dowloads 2.6.1
    Raring:
    deb http://qgis.org/debian raring main
    deb-src http://qgis.org/debian raring main

    I had to remove the official QGIS 1.8 as there was a spatialite library conflict causing a broken package

    ReplyDelete
    Replies
    1. Does Topology Checker reside there in Ver 1.8.01? I found it a very important tool for me so think I'm going to live the Master version.

      Delete
  6. I have one problem. I shapefile atribute table i can't store Croatian letters i know how to fix this in windows, but i have no idea how to fix this on ubuntu 13.04.
    Please help me.

    Mladen from Croatia

    My mail is genete88@yahoo.com

    ReplyDelete
    Replies
    1. This is not my territory but nothing a Google search won't help so I gave it a try and came up with Mario Miler at Linkedin. He is a Research assistant at Faculty of Geodesy, a Croatian and specializes among others, in QGIS. This is my best offer considering query results on Croatia and QGIS aren't many.

      Delete
  7. Many thanks for publishing this info - managed to fix QGIS on my 13.04 Ubuntu also. Good work! William.

    ReplyDelete
    Replies
    1. Er...a fish burger would be good, William

      Delete
  8. Thanks for this info. I am running qgis on 13.04/Ubuntu 64bits also, followed your explanations above, and got the fetch/manage button working again!

    However I can't access to third parties plugins (only 22 plugins listed from the core qgis plugin) even though the extra repositories appears "connected" on the repository list.
    Have you already got this problem? a solution?

    Basically, I just want to add the open layer plugin but can't find it.
    It does not work either by coping the plugins files to the appropriate location "/home/user/.qgis2/python/plugins" ("invalid plugin" message).

    Thanks for your support.
    Clovis

    ReplyDelete
    Replies
    1. I am in the same situation as you insofar as Ubuntu QGIS is concern and have the same specs as yours but since I dualboot my computer, I fall back to the Windows QGIS as an interim as my preference is Ubuntu. I think we will have to wait for QGIS Ver 2.0 (I think QGIS developers are shorthanded after all OSS depends on contribution and sacrifice)to come out and hope they have resolve that problem by then.

      Delete
    2. Thank you for your reply! We just have to wait then.

      Delete
    3. Yes and no. Yes, if you insist on living with QGIS 1.9 even if I were to break your bones one by one. No, the more adaptive approach so you don't end up like dinos is to re-install QGIS 1.8. To me, what matters most is to get the job done so if 1.9 can't deliver and 1.8 can, I will definitely take this remedial measure.

      Delete
  9. thank you so much for this litle tutorial, it really helped me and im going to read the rest of your blog content

    ReplyDelete
  10. Thanks, very useful and practical guide!

    ReplyDelete
    Replies
    1. Thank you. I find that a picture tells a thousand words furthermore I don't have to explain in much in words and this sort of approach is very good when seen by an international audience of different language background

      Delete
  11. Hi Abbas,

    Thanks for this tuto. However, it would be easier to have the command in text rather than screen shot (to be able to copy/past them).

    Thanks any way!
    Pierre

    ReplyDelete
    Replies
    1. Pierre

      I know a number of people who fear the terminal command but can come to terms with print-screens because to them, "A picture tells a thousand words" and that's what matters.

      Delete
  12. kenapa ya ko di synaptics qgis nya warna merah tandaseru ??

    ReplyDelete
    Replies
    1. Kemungkinan besar, pada hari tu, server QGIS ada masalah. Tuan kena cuba sekali lagi pada lain hari semoga server OK. Satu cara untuk melicinkan download adalah untuk memastikan system setting/system/software & updates/ubuntu software/download from adalah: "Main Server"

      Delete
    2. setiap saya install qgis selalu keluar seperti ini:
      The following packages have unmet dependencies:
      qgis : Depends: libgdal1 (>= 1.9.0) but it is not going to be installed
      Depends: libqgis1.9.0 but it is not going to be installed
      Depends: qgis-providers (= 1.9.0+git20130828+fa135f0~raring1) but it is not going to be installed
      Recommends: qgis-plugin-grass but it is not going to be installed
      Recommends: qgis-plugin-globe but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.

      terus saya coba install libgdl1 keluar seperti ini:

      sudo apt-get install libgdal1
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
      hdf5-helpers libdap-dev libdapserver7 libfftw3-double3 libfreetype6-dev
      libgif-dev libhdf5-dev libhdf5-serial-dev libicu-dev libjasper-dev libkml0
      libopenthreads14 libpng12-dev libpostproc52 libqscintilla2-9
      libqscintilla2-translations libserf1 libsvn1 libswscale2 liburiparser1
      libvcdinfo0 libxerces-c-dev libxerces-c3.1 libxine1 libxine1-bin
      libxine1-ffmpeg libxine1-misc-plugins libxine1-plugins libxml2-dev
      python-dateutil python-egenix-mxdatetime python-egenix-mxtools
      python-matplotlib python-matplotlib-data python-numpy python-psycopg2
      python-pyparsing python-qscintilla2 python-support python-tz subversion
      uuid-dev
      Use 'apt-get autoremove' to remove them.
      The following packages will be REMOVED:
      gdal-bin grass-core grass-dev libgdal-dev libgdal1-dev libgdal1h
      libopenscenegraph80 libosgearth1 libqgis1.8.0 python-gdal python-qgis
      python-qgis-common
      The following NEW packages will be installed:
      libgdal1
      0 upgraded, 1 newly installed, 12 to remove and 107 not upgraded.
      Need to get 0 B/4,757 kB of archives.
      After this operation, 141 MB disk space will be freed.

      kalau saya pilih "Y" maka python-gis 1.9.0 dan yang akan terhapus. mohon penjelasannya,

      Delete
    3. >E: Unable to correct problems, you have held broken packages.

      Setahu saya apabila terdapat mesej seperti diatas, ianya (Broken packages) perlu diperbaiki dahulu dengan menggunakan Synaptic Package Manager/Edit/Fix Broken Packages

      Delete
    4. terimakasih pak atas sarannya, sekarang masalahnya saya tidak bisa install plugin baru, kalau tidak salah qgis 1.8.0 ada menu "fetch python plugin" untuk qgis 1.9.0 diganti dengan "manage & install plugin" tapi tidak ada menu untuk install plugin baru?

      Delete
    5. Biasa bila perkara tu berlaku, terdapat fail usang/tidak kompatibil yang menghalang instalasi plugins. Terlebh dahululu akan saya purge QGIS sedia ada (Sila buat Google search "how to purge QGIS?"). Apabila QGIS dah 100% keluar, baru saja akan saya install QGIS mengikut kaedah seperti pada artikel ni.

      Delete
    6. Bonjour Abbas,
      je tiens à vous remercier vivement de petit guide très bien fait et facile à suivre, grâce aux instructions j'ai pu installer QGIS 2.0.1 en remplaçant simplement les paquets avec ceux du site de QGIS.

      Delete