Re: [Ubuntu] qgis-providers fails to install

2022-01-10 Thread Alex Mandel

I hit the same problem on recent update.
In my case I was using qgis.org/ubuntugis with the ubuntugis-unstable
There appears to be an incompatibility between the two right now. This 
isn't the first time, and it could be related to recent updates 
2021-12-24, will likely be solved if the qgis.org packages are rebuilt 
now that some new deps in ubuntugis have been updated (Is it Jurgen who 
still manages that?). Until then I just disabled qgis.org repo and 
reinstalled and have an older version working for now.


Thanks,
Alex

On 1/10/22 10:28 AM, Martin Weis wrote:

Hello Jorge!

Am 10.01.22 um 13:43 schrieb Jorge Gustavo Rocha:

It seems to happens when some QGIS tool runs.
My wild guess is to check if you are not running QGIS against some old
PROJ or GDAL version. Check if you have some dangling PROJ or GDAL libs
around.

Found an issue from 2020 about it
https://github.com/qgis/QGIS/issues/35649

and your guess seems the correct direction, but I cannot solve by
starting fresh with

apt remove libgdal29 libgdal30
cat<< EOF> /etc/apt/sources.list.d/qgis-ubuntugis-unstable.list
deb https://qgis.org/ubuntugis $(lsb_release -s -c) main
deb-src https://qgis.org/ubuntugis $(lsb_release -s -c) main
EOF

# lsb_release -s -c # focal

yielding

root@box:/etc/apt# rgrep qgis *
sources.list.d/qgis-ubuntugis-unstable.list:deb
https://qgis.org/ubuntugis focal main
sources.list.d/qgis-ubuntugis-unstable.list:deb-src
https://qgis.org/ubuntugis focal main
Binary file trusted.gpg matches
Binary file trusted.gpg.d/qgis-archive.gpg matches


there are dependencies to both lbgdal29 and libgdal30 from qgis


apt install qgis
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
   gdal-bin grass-core libgdal29 libgdal30 libpdal-base12

libpdal-plugin-e57 libpdal-plugin-faux libpdal-plugin-hdf libpdal-plugin-i3s

   libpdal-plugin-icebridge libpdal-plugin-pgpointcloud libpdal-plugins

libqgis-3d3.22.2 libqgis-analysis3.22.2 libqgis-app3.22.2 libqgis-core3.22.2

   libqgis-customwidgets libqgis-gui3.22.2 libqgis-server3.22.2

libqgisgrass7-3.22.2 libqgispython3.22.2 python3-gdal python3-qgis
python3-qgis-common

   qgis-plugin-grass qgis-provider-grass qgis-providers
Suggested packages:
   libgdal-grass grass-dev grass-gui e00compr avce00 gnuplot gpsbabel

gpstrans python3-rpy2 python3-termcolor otb-qgis saga

The following NEW packages will be installed:
   gdal-bin grass-core libgdal29 libgdal30 libpdal-base12

libpdal-plugin-e57 libpdal-plugin-faux libpdal-plugin-hdf libpdal-plugin-i3s

   libpdal-plugin-icebridge libpdal-plugin-pgpointcloud libpdal-plugins

libqgis-3d3.22.2 libqgis-analysis3.22.2 libqgis-app3.22.2 libqgis-core3.22.2

   libqgis-customwidgets libqgis-gui3.22.2 libqgis-server3.22.2

libqgisgrass7-3.22.2 libqgispython3.22.2 python3-gdal python3-qgis
python3-qgis-common

   qgis qgis-plugin-grass qgis-provider-grass qgis-providers


I guess because of rdepends of python3-gdal


apt show python3-gdal
Version: 3.4.0+dfsg-1~focal0
Maintainer: Debian GIS Project 
Depends: python3 (<< 3.9), python3 (>= 3.8~), python3-numpy (>=

1:1.16.0~rc1), python3-numpy-abi9, python3:any, libc6 (>= 2.14),
libgcc-s1 (>= 3.0), libgdal30 (>= 3.4.0), libstdc++6 (>= 5.2)
which is also from unstable ubuntugis:


apt-cache policy python3-gdal
python3-gdal:
   Installed: (none)
   Candidate: 3.4.0+dfsg-1~focal0
   Version table:
  3.4.0+dfsg-1~focal0 500
 500

http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main
amd64 Packages

So I will try to switch to ltr for now, but this seems to be a
dependency problem in the repo.

___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki



___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki


Re: [Ubuntu] qgis-providers fails to install

2022-01-10 Thread Martin Weis
Hello Jorge!

Am 10.01.22 um 13:43 schrieb Jorge Gustavo Rocha:
> It seems to happens when some QGIS tool runs.
> My wild guess is to check if you are not running QGIS against some old
> PROJ or GDAL version. Check if you have some dangling PROJ or GDAL libs
> around.
Found an issue from 2020 about it
https://github.com/qgis/QGIS/issues/35649

and your guess seems the correct direction, but I cannot solve by
starting fresh with

apt remove libgdal29 libgdal30
cat<< EOF> /etc/apt/sources.list.d/qgis-ubuntugis-unstable.list
deb https://qgis.org/ubuntugis $(lsb_release -s -c) main
deb-src https://qgis.org/ubuntugis $(lsb_release -s -c) main
EOF

# lsb_release -s -c # focal

yielding

root@box:/etc/apt# rgrep qgis *
sources.list.d/qgis-ubuntugis-unstable.list:deb
https://qgis.org/ubuntugis focal main
sources.list.d/qgis-ubuntugis-unstable.list:deb-src
https://qgis.org/ubuntugis focal main
Binary file trusted.gpg matches
Binary file trusted.gpg.d/qgis-archive.gpg matches


there are dependencies to both lbgdal29 and libgdal30 from qgis

> apt install qgis
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following additional packages will be installed:
>   gdal-bin grass-core libgdal29 libgdal30 libpdal-base12
libpdal-plugin-e57 libpdal-plugin-faux libpdal-plugin-hdf libpdal-plugin-i3s
>   libpdal-plugin-icebridge libpdal-plugin-pgpointcloud libpdal-plugins
libqgis-3d3.22.2 libqgis-analysis3.22.2 libqgis-app3.22.2 libqgis-core3.22.2
>   libqgis-customwidgets libqgis-gui3.22.2 libqgis-server3.22.2
libqgisgrass7-3.22.2 libqgispython3.22.2 python3-gdal python3-qgis
python3-qgis-common
>   qgis-plugin-grass qgis-provider-grass qgis-providers
> Suggested packages:
>   libgdal-grass grass-dev grass-gui e00compr avce00 gnuplot gpsbabel
gpstrans python3-rpy2 python3-termcolor otb-qgis saga
> The following NEW packages will be installed:
>   gdal-bin grass-core libgdal29 libgdal30 libpdal-base12
libpdal-plugin-e57 libpdal-plugin-faux libpdal-plugin-hdf libpdal-plugin-i3s
>   libpdal-plugin-icebridge libpdal-plugin-pgpointcloud libpdal-plugins
libqgis-3d3.22.2 libqgis-analysis3.22.2 libqgis-app3.22.2 libqgis-core3.22.2
>   libqgis-customwidgets libqgis-gui3.22.2 libqgis-server3.22.2
libqgisgrass7-3.22.2 libqgispython3.22.2 python3-gdal python3-qgis
python3-qgis-common
>   qgis qgis-plugin-grass qgis-provider-grass qgis-providers

I guess because of rdepends of python3-gdal

> apt show python3-gdal
> Version: 3.4.0+dfsg-1~focal0
> Maintainer: Debian GIS Project 
> Depends: python3 (<< 3.9), python3 (>= 3.8~), python3-numpy (>=
1:1.16.0~rc1), python3-numpy-abi9, python3:any, libc6 (>= 2.14),
libgcc-s1 (>= 3.0), libgdal30 (>= 3.4.0), libstdc++6 (>= 5.2)
which is also from unstable ubuntugis:

> apt-cache policy python3-gdal
> python3-gdal:
>   Installed: (none)
>   Candidate: 3.4.0+dfsg-1~focal0
>   Version table:
>  3.4.0+dfsg-1~focal0 500
> 500
http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main
amd64 Packages

So I will try to switch to ltr for now, but this seems to be a
dependency problem in the repo.

___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki


Re: [Ubuntu] qgis-providers fails to install

2022-01-10 Thread Jorge Gustavo Rocha

Hi Martin,

It seems to happens when some QGIS tool runs.
My wild guess is to check if you are not running QGIS against some old 
PROJ or GDAL version. Check if you have some dangling PROJ or GDAL libs 
around.


I hope it helps. Good luck,

Jorge

On 08/01/22 23:24, Martin Weis wrote:

Hello,

Recently I wanted to upgrade qgis, but it fails due to package
qgis-providers, which core dumps here during installation.


Setting up qgis-providers (1:3.22.2+32focal-ubuntugis) ...
free(): invalid pointer
Aborted (core dumped)
dpkg: error processing package qgis-providers (--configure):
  installed qgis-providers package post-installation script subprocess returned 
error exit status 134
Setting up python3-owslib (0.25.0-1~focal0) ...
dpkg: dependency problems prevent configuration of qgis:
  qgis depends on qgis-providers (= 1:3.22.2+32focal-ubuntugis); however:
   Package qgis-providers is not configured yet.


I have no clue what exactly fails here, the crash dump did not contain
more hints than this (I can provide it, if it helps you, excerpt with
versions below).

Any idea how to debug the installation further?
dpkg does not really show more details:

dpkg --debug=72200 -i
/var/cache/apt/archives/qgis-providers_1%3a3.22.2+32focal-ubuntugis_amd64.deb

(Reading database ... 660139 files and directories currently installed.)
Preparing to unpack
.../qgis-providers_1%3a3.22.2+32focal-ubuntugis_amd64.deb ...
D02: trigproc_activate_packageprocessing pkg=qgis-providers:amd64
Unpacking qgis-providers (1:3.22.2+32focal-ubuntugis) over
(1:3.22.2+32focal-ubuntugis) ...
D002000: infodb foreach file this pkg
D002000: infodb foreach file this pkg
D002000: infodb foreach file this pkg
D002000: infodb foreach file this pkg
Setting up qgis-providers (1:3.22.2+32focal-ubuntugis) ...
D02: trigproc_activate_packageprocessing pkg=qgis-providers:amd64
free(): invalid pointer
Aborted (core dumped)


Unpacking the deb (ar -x ...deb, tar xf ...) yields only few control files

# md5sum -c md5sums # all OK
# ./postinst # OK, returns 0



The only other thing I can spot is a warning in plotly (I guess it is
unrelated, because some more packages follow successful after):


Setting up python3-plotly (4.4.1+dfsg-1) ...
/usr/lib/python3/dist-packages/_plotly_utils/utils.py:214: SyntaxWarning: "is" with a 
literal. Did you mean "=="?
   if (iso_string.split("-")[:3] is "00:00") or (iso_string.split("+")[0] is 
"00:00"):



I am on 20.04 with


apt-cache policy qgis-providers
qgis-providers:
   Installed: 1:3.22.2+32focal-ubuntugis
   Candidate: 1:3.22.2+32focal-ubuntugis
   Version table:
  *** 1:3.22.2+32focal-ubuntugis 500
 500 https://qgis.org/ubuntugis focal/main amd64 Packages
 100 /var/lib/dpkg/status
  3.16.14+dfsg-1~focal0 500
 500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu 
focal/main amd64 Packages
  3.10.4+dfsg-1ubuntu2 500
 500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages



apt-cache policy | grep gis
  500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main 
i386 Packages
  release 
v=20.04,o=LP-PPA-ubuntugis-ubuntugis-unstable,a=focal,n=focal,l=ubuntugis-unstable,c=main,b=i386
  500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main 
amd64 Packages
  release 
v=20.04,o=LP-PPA-ubuntugis-ubuntugis-unstable,a=focal,n=focal,l=ubuntugis-unstable,c=main,b=amd64
  500 https://qgis.org/ubuntugis focal/main amd64 Packages
  origin qgis.org



Small excerpt from crash report


== ProcVersionSignature =
Ubuntu 5.11.0-43.47~20.04.2-generic 5.11.22

== Python3Details =
/usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2

== PythonDetails =
/usr/bin/python3.8, Python 3.8.10, python-is-python3, 3.8.2-4

== Title =
package qgis-providers 1:3.22.2+32focal-ubuntugis [origin: QGIS project] failed 
to install/upgrade: installed qgis-providers package post-installation script 
subprocess returned error exit status 134


___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki



J. Gustavo
--
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Gabinete 3.29 (Piso 3)
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki