3

I recently changed my OS to Xubuntu 16.04. Now i try to install GDAL to use it via shell and QGIS.

I followed the steps from the official UbuntuGIS website (https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa). While updating I can see the path for the UbuntuGIS ppa (I post the log ant the end).

Now my Questions is: Can I use UbuntuGIS under Xubuntu and if yes, what am I doing wrong?

Output of the shell while updating my ppa:

Hit:1 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease    
Hit:2 http://de.archive.ubuntu.com/ubuntu xenial InRelease  
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                                  
Hit:4 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                                    
Hit:5 http://ppa.launchpad.net/ubuntugis/ppa/ubuntu xenial InRelease                                                                  
Hit:6 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease  
  • I don't see anything wrong. Do you get any error messages? – AndreJ Oct 10 '17 at 5:56
  • @AndreJ Maybe I did something wrong (I am new to Ubuntu). Here is my exact input in the shell: sudo add-apt-repository ppa:ubuntugis/ppa ; sudo apt-get update; sudo apt upgrade; sudo apt-get install gdal – lastro Oct 11 '17 at 14:47
  • That looks ok so far. Do you get GDAL 2.2.1 installed, or any error message instead? BTW you should use the Ubuntugis unstable PPA: launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable to get the latest GDAL version. – AndreJ Oct 11 '17 at 16:35
  • @AndreJ Yes, this is the output I get : lastro@lastro-Lenovo:~$ sudo apt-get install gdal : Reading package lists... Done ; Building dependency tree ; Reading state information... Done ; E: Unable to locate package gdal – lastro Oct 11 '17 at 20:41
  • 1
    It should be sudo apt-get install gdal-bin. You might try apt-cache policy gdal-bin to display available versions before installing. – AndreJ Oct 12 '17 at 5:34
0

Yes it is possible to use UbuntuGIS and Xubuntu. I would recommend following this tutorial Install some stuff on Xubuntu 16.04

They include PPA as such:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

or you can add the following lines to your /etc/apt/sources.list

deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main

  • Thanks for the advise. It helped me a lot. Only one question: Is there a way to install the stable version of UbuntGIS? It fails, when i try to insert stable instead of unstable. – lastro Oct 9 '17 at 20:28
  • Sure thing. If this question is answered lets mark it as such and you could start a new post for the second question, that way others can see the new question as well, if that's cool. – whyzar Oct 9 '17 at 20:29
0

As per the comment by @AndreJ, use,

sudo apt-get install gdal-bin

after adding the UbuntuGIS repository to install GDAL (as he they also mentioned, you may want to query first for available versions).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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