Install QGIS 3.x on Ubuntu16.04

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Install QGIS 3.x on Ubuntu16.04

Zhang Qun
Hi
I know Ubuntu16.04 is a bit old for QGIS now but since our software is all built on Ubuntu16.04 so I tried to install QGIS 3.x on it. Below is my tries but with no luck. Any help?

1. using https://qgis.org/ubuntugis repository
$ sudo apt install qgis python3-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package python3-qgis

$ sudo apt install qgis python-qgis qgis-plugin-grass
The following packages have unmet dependencies:
 qgis-plugin-grass : Depends: +grass760 but it is not installable
E: Unable to correct problems, you have held broken packages.

2. using http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
$ sudo apt install qgis python3-qgis qgis-plugin-grass
Setting up qgis-providers (3.4.6+dfsg-1~xenial1) ...
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: relocation error: /usr/lib/libqgis_core.so.3.4.6: symbol clCreateCommandQueueWithProperties, version OPENCL_2.0 not defined in file libOpenCL.so.1 with link time reference
dpkg: error processing package qgis-providers (--configure):
 subprocess installed post-installation script returned error exit status 127

$ sudo apt install qgis python-qgis qgis-plugin-grass

The following packages have unmet dependencies:
 python-qgis : Depends: python-qgis-common (= 2.18.28+dfsg-1~xenial1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Best regards,
Zhang Qun

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Install QGIS 3.x on Ubuntu16.04

Patrick Dunford-2

If you have previously installed 2.18 and trying to upgrade you need to remove as many of the old packages first.

After uninstalling Qgis 2.18 use apt autoremove to clear off all the old 2.18 packages.

On 23/04/19 3:13 PM, Zhang Qun wrote:
Hi
I know Ubuntu16.04 is a bit old for QGIS now but since our software is all built on Ubuntu16.04 so I tried to install QGIS 3.x on it. Below is my tries but with no luck. Any help?

1. using https://qgis.org/ubuntugis repository
$ sudo apt install qgis python3-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package python3-qgis

$ sudo apt install qgis python-qgis qgis-plugin-grass
The following packages have unmet dependencies:
 qgis-plugin-grass : Depends: +grass760 but it is not installable
E: Unable to correct problems, you have held broken packages.

2. using http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
$ sudo apt install qgis python3-qgis qgis-plugin-grass
Setting up qgis-providers (3.4.6+dfsg-1~xenial1) ...
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: relocation error: /usr/lib/libqgis_core.so.3.4.6: symbol clCreateCommandQueueWithProperties, version OPENCL_2.0 not defined in file libOpenCL.so.1 with link time reference
dpkg: error processing package qgis-providers (--configure):
 subprocess installed post-installation script returned error exit status 127

$ sudo apt install qgis python-qgis qgis-plugin-grass

The following packages have unmet dependencies:
 python-qgis : Depends: python-qgis-common (= 2.18.28+dfsg-1~xenial1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Best regards,
Zhang Qun

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Install QGIS 3.x on Ubuntu16.04

Patrick Dunford-2
In reply to this post by Zhang Qun

The instructions also state you must be using the ubuntugis-unstable repository.

On 23/04/19 3:13 PM, Zhang Qun wrote:
Hi
I know Ubuntu16.04 is a bit old for QGIS now but since our software is all built on Ubuntu16.04 so I tried to install QGIS 3.x on it. Below is my tries but with no luck. Any help?

1. using https://qgis.org/ubuntugis repository
$ sudo apt install qgis python3-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package python3-qgis

$ sudo apt install qgis python-qgis qgis-plugin-grass
The following packages have unmet dependencies:
 qgis-plugin-grass : Depends: +grass760 but it is not installable
E: Unable to correct problems, you have held broken packages.

2. using http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
$ sudo apt install qgis python3-qgis qgis-plugin-grass
Setting up qgis-providers (3.4.6+dfsg-1~xenial1) ...
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /usr/lib/libqgis_core.so.3.4.6)
/usr/lib/qgis/crssync: relocation error: /usr/lib/libqgis_core.so.3.4.6: symbol clCreateCommandQueueWithProperties, version OPENCL_2.0 not defined in file libOpenCL.so.1 with link time reference
dpkg: error processing package qgis-providers (--configure):
 subprocess installed post-installation script returned error exit status 127

$ sudo apt install qgis python-qgis qgis-plugin-grass

The following packages have unmet dependencies:
 python-qgis : Depends: python-qgis-common (= 2.18.28+dfsg-1~xenial1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Best regards,
Zhang Qun

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Install QGIS 3.x on Ubuntu16.04

Andre Joost
In reply to this post by Zhang Qun
Hi,

you get stuck because qgis 3.4.6 from qgis.org is built against GRASS
7.6.0 from the ubuntugis-unstable ppa, but that ppa has upgraded to
Grass 7.6.1 in the meantime.

This should be resolved by the next QGIS point release.

Alternatively, you can remove the qgis.org stuff from your sources list,
purge and autoremove the 3.4.4 packages, and install QGIS 3.4.6 from the
ubuntugis-unstable ppa only.

HTH,
Andre Joost

Am 23.04.19 um 05:13 schrieb Zhang Qun:

> Hi
> I know Ubuntu16.04 is a bit old for QGIS now but since our software is all
> built on Ubuntu16.04 so I tried to install QGIS 3.x on it. Below is my
> tries but with no luck. Any help?
>
> *1. using https://qgis.org/ubuntugis <https://qgis.org/ubuntugis>
> repository*
> $ sudo apt install qgis python3-qgis qgis-plugin-grass
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package python3-qgis
>
> $ sudo apt install qgis python-qgis qgis-plugin-grass
> The following packages have unmet dependencies:
>   qgis-plugin-grass : Depends: +grass760 but it is not installable
> E: Unable to correct problems, you have held broken packages.
>
> *2. using http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
> <http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu>*
> $ sudo apt install qgis python3-qgis qgis-plugin-grass
> Setting up qgis-providers (3.4.6+dfsg-1~xenial1) ...
> /usr/lib/qgis/crssync:
> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version
> information available (required by /usr/lib/libqgis_core.so.3.4.6)
> /usr/lib/qgis/crssync:
> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version
> information available (required by /usr/lib/libqgis_core.so.3.4.6)
> /usr/lib/qgis/crssync:
> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version
> information available (required by /usr/lib/libqgis_core.so.3.4.6)
> /usr/lib/qgis/crssync: relocation error: /usr/lib/libqgis_core.so.3.4.6:
> symbol clCreateCommandQueueWithProperties, version OPENCL_2.0 not defined
> in file libOpenCL.so.1 with link time reference
> dpkg: error processing package qgis-providers (--configure):
>   subprocess installed post-installation script returned error exit status
> 127
>
> $ sudo apt install qgis python-qgis qgis-plugin-grass
> The following packages have unmet dependencies:
>   python-qgis : Depends: python-qgis-common (= 2.18.28+dfsg-1~xenial1) but
> it is not going to be installed
> E: Unable to correct problems, you have held broken packages.
>
> Best regards,
> Zhang Qun
>
>
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Install QGIS 3.x on Ubuntu16.04

Zhang Qun
Hi all, thanks for all your replies.

I finally managed to install from ubuntugis-ltr repo (ver. 3.4.7) and when I encountered the configure error about OpenCL with qgis-providers I just deleted the libOpenCL.so.1. And it worked.

Ethan

On Tue, Apr 23, 2019 at 5:30 PM Andre Joost <[hidden email]> wrote:
Hi,

you get stuck because qgis 3.4.6 from qgis.org is built against GRASS
7.6.0 from the ubuntugis-unstable ppa, but that ppa has upgraded to
Grass 7.6.1 in the meantime.

This should be resolved by the next QGIS point release.

Alternatively, you can remove the qgis.org stuff from your sources list,
purge and autoremove the 3.4.4 packages, and install QGIS 3.4.6 from the
ubuntugis-unstable ppa only.

HTH,
Andre Joost

Am 23.04.19 um 05:13 schrieb Zhang Qun:
> Hi
> I know Ubuntu16.04 is a bit old for QGIS now but since our software is all
> built on Ubuntu16.04 so I tried to install QGIS 3.x on it. Below is my
> tries but with no luck. Any help?
>
> *1. using https://qgis.org/ubuntugis <https://qgis.org/ubuntugis>
> repository*
> $ sudo apt install qgis python3-qgis qgis-plugin-grass
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package python3-qgis
>
> $ sudo apt install qgis python-qgis qgis-plugin-grass
> The following packages have unmet dependencies:
>   qgis-plugin-grass : Depends: +grass760 but it is not installable
> E: Unable to correct problems, you have held broken packages.
>
> *2. using http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
> <http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu>*
> $ sudo apt install qgis python3-qgis qgis-plugin-grass
> Setting up qgis-providers (3.4.6+dfsg-1~xenial1) ...
> /usr/lib/qgis/crssync:
> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version
> information available (required by /usr/lib/libqgis_core.so.3.4.6)
> /usr/lib/qgis/crssync:
> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version
> information available (required by /usr/lib/libqgis_core.so.3.4.6)
> /usr/lib/qgis/crssync:
> /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version
> information available (required by /usr/lib/libqgis_core.so.3.4.6)
> /usr/lib/qgis/crssync: relocation error: /usr/lib/libqgis_core.so.3.4.6:
> symbol clCreateCommandQueueWithProperties, version OPENCL_2.0 not defined
> in file libOpenCL.so.1 with link time reference
> dpkg: error processing package qgis-providers (--configure):
>   subprocess installed post-installation script returned error exit status
> 127
>
> $ sudo apt install qgis python-qgis qgis-plugin-grass
> The following packages have unmet dependencies:
>   python-qgis : Depends: python-qgis-common (= 2.18.28+dfsg-1~xenial1) but
> it is not going to be installed
> E: Unable to correct problems, you have held broken packages.
>
> Best regards,
> Zhang Qun
>
>
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user