qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.58k stars 3k forks source link

QGIS can't installed on 22.04.2 with libpdal-base.so.13 not found #52433

Closed daorui closed 1 year ago

daorui commented 1 year ago

What is the bug or the crash?

I am trying install QGIS on ubuntu 22.04.2, but every time I met the error issue like follows, I am new on linux system, anyone could help me: : : : Setting up qgis-providers (1:3.30.0+36jammy) ... /usr/lib/qgis/crssync: error while loading shared libraries: libpdal_base.so.13: cannot open shared object file: No such file or directory dpkg: error processing package qgis-providers (--configure): installed qgis-providers package post-installation script subprocess returned error exit status 127 dpkg: dependency problems prevent configuration of qgis: qgis depends on qgis-providers (= 1:3.30.0+36jammy); however: Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure): dependency problems - leaving unconfigured Setting up libqgis-customwidgets (1:3.30.0+36jammy) ... No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of python3-qgis: python3-qgis depends on qgis-providers (= 1:3.30.0+36jammy); however: Package qgis-providers is not configured yet.

dpkg: error processing package python3-qgis (--configure): dependency problems - leaving unconfigured Setting up libqgis-3d3.30.0 (1:3.30.0+36jammy) ... No apport report written because the error message indicates its a followup error from a previous failure. Setting up libqgis-app3.30.0 (1:3.30.0+36jammy) ... Setting up python3-ufolib2 (0.13.1+dfsg1-1) ... Setting up python3-fonttools (4.29.1-2build1) ... Setting up python3-matplotlib (3.5.1-2build1) ... Setting up python3-qgis-common (1:3.30.0+36jammy) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for fontconfig (2.13.1-4.2ubuntu5) ... Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils (0.26-1ubuntu3) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1ubuntu3) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for shared-mime-info (2.1-2) ... Errors were encountered while processing: qgis-providers qgis python3-qgis E: Sub-process /usr/bin/dpkg returned an error code (1)

Steps to reproduce the issue

sudo apt install qgis

Versions

I have no idea about this as I failed install it.

Supported QGIS version

New profile

Additional context

No response

AlexTo commented 1 year ago

Hi, I'm facing the same issue? how was it resolved? thank you

daorui commented 1 year ago

Hi Alex, simple for my try. I use purge to remove previous qgis and then install aptitude tool. After that sudo aptitude install …, during the process choose no first and then yes to downgrade some libs. Wait and done. Hope this works for you.

Daorui

在 2023年4月18日,11:49,Alex To @.***> 写道:



Hi, I'm facing the same issue? how was it resolved? thank you

— Reply to this email directly, view it on GitHubhttps://github.com/qgis/QGIS/issues/52433#issuecomment-1512393818, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJDJO6A2BIKUBTDE5P234ZLXBYFMFANCNFSM6AAAAAAWL5WN4Q. You are receiving this because you modified the open/close state.Message ID: @.***>

marcathian commented 1 year ago

I am still unable to successfully install qgis:

E: qgis-providers: installed qgis-providers package post-installation script subprocess returned error exit status 127 E: qgis: dependency problems - leaving unconfigured E: python3-qgis: dependency problems - leaving unconfigured

When trying to run qgis i get: /usr/bin/qgis.bin: error while loading shared libraries: libpdal_base.so.13: cannot open shared object file: No such file or directory

MatthiasSiewert commented 1 year ago

same here

jef-n commented 1 year ago

qgis 3.30.3 installs fine on plain jammy.

root@theodwyn:/# apt-cache policy qgis libpdal-base13
qgis:
  Installed: 1:3.30.3+36jammy
  Candidate: 1:3.30.3+36jammy
  Version table:
 *** 1:3.30.3+36jammy 500
        500 https://qgis.org/debian jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     3.22.4+dfsg-3build1 500
        500 http://approx:9999/ubuntu jammy/universe amd64 Packages
libpdal-base13:
  Installed: 2.3.0+ds-2ubuntu4
  Candidate: 2.3.0+ds-2ubuntu4
  Version table:
 *** 2.3.0+ds-2ubuntu4 500
        500 http://approx:9999/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status
image80 commented 1 year ago

I have the same issue with Ubuntu 22.04.3 LTS Jammy : https://github.com/qgis/QGIS/issues/55129 When i try to launch qgis : /usr/bin/qgis.bin: error while loading shared libraries: libpdal_base.so.13: cannot open shared object file: No such file or directory

maxfagotto commented 1 year ago

Same for me but the problems is the version, try to run "locate libpdal_base.so", in my case I found: /usr/lib/libpdal_base.so /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.15.0.0

image80 commented 1 year ago

Thanks for your help. Please read below the result when i type :locate libpdal_base.so /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.15.0.0

Le ven. 3 nov. 2023 à 11:59, maxfagotto @.***> a écrit :

Same for me but the problems is the version, try to run "locate libpdal_base.so", in my case I found: /usr/lib/libpdal_base.so /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.15.0.0

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/52433#issuecomment-1792239516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4LJ3AJHJZHX44E5T2H2T3YCTE7RAVCNFSM6AAAAAAWL5WN4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGIZTSNJRGY . You are receiving this because you commented.Message ID: @.***>

Antoviscomi commented 1 year ago

@maxfagotto @image80 You need to only create a sym link about two libraries

sudo ln -s /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.13 Then sudo ldconfig Then it should works

image80 commented 1 year ago

Thanks for your help. But on my side, i have still the same error message after make your guidances :

(base) xxxxxxxxxxxxxxxxxxx.d$ sudo ln -s /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.13
(base) geoteca@geoteca-Latitude-3410:/etc/apt/sources.list.d$ sudo ldconfig
(base) geoteca@geoteca-Latitude-3410:/etc/apt/sources.list.d$ qgis
/usr/bin/qgis.bin: error while loading shared libraries: libpdal_util.so.13: cannot open shared object file: No such file or directory
Antoviscomi commented 1 year ago

Thanks for your help. But on my side, i have still the same error message after make your guidances :

(base) xxxxxxxxxxxxxxxxxxx.d$ sudo ln -s /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.13
(base) geoteca@geoteca-Latitude-3410:/etc/apt/sources.list.d$ sudo ldconfig
(base) geoteca@geoteca-Latitude-3410:/etc/apt/sources.list.d$ qgis
/usr/bin/qgis.bin: error while loading shared libraries: libpdal_util.so.13: cannot open shared object file: No such file or directory

Create another symlink to libpdal_util.so.13 also

image80 commented 1 year ago

Thanks so much for your help. Qgis works now. I have severall error messages during the lauching.

Impossible de charger l'extension 'DataPlotly' provoque une erreur lors de l'appel à sa méthode classFactory()

ModuleNotFoundError: No module named 'pandas' 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/__init__.py", line 33, in classFactory
    from .data_plotly import DataPlotly
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/data_plotly.py", line 36, in 
    from DataPlotly.processing.dataplotly_provider import DataPlotlyProvider
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/processing/dataplotly_provider.py", line 24, in 
    from DataPlotly.processing.dataplotly_scatterplot import DataPlotlyProcessingScatterPlot
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/processing/dataplotly_scatterplot.py", line 43, in 
    import pandas as pd
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'pandas'
Antoviscomi commented 1 year ago

Try to erase dataplotly folder then reinstall the plugin by plugin manager, in my 22.04 this plugin works well

Il ven 3 nov 2023, 13:05 image80 @.***> ha scritto:

Thanks so much for your help. Qgis works now. I have severall error messages during the lauching.

Impossible de charger l'extension 'DataPlotly' provoque une erreur lors de l'appel à sa méthode classFactory()

ModuleNotFoundError: No module named 'pandas' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/init.py", line 33, in classFactory from .data_plotly import DataPlotly File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/data_plotly.py", line 36, in from DataPlotly.processing.dataplotly_provider import DataPlotlyProvider File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/processing/dataplotly_provider.py", line 24, in from DataPlotly.processing.dataplotly_scatterplot import DataPlotlyProcessingScatterPlot File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/processing/dataplotly_scatterplot.py", line 43, in import pandas as pd File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'pandas'

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/52433#issuecomment-1792322104, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADANZVHIRDPEPRJC43BGS2TYCTMZHAVCNFSM6AAAAAAWL5WN4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGMZDEMJQGQ . You are receiving this because you commented.Message ID: @.***>

image80 commented 1 year ago

Really sorry to disturb you with this additional/other problem. But This problem with those plugins was precisely the reason why I tried to uninstalling/reinstalling qgis ;-).

So, after erase dataplotly folder and reinstall the plugin. I have still the same error message. The plugin installation seems to work well. But the error message appears when i try to open the plugin.

`ModuleNotFoundError: No module named 'pandas'`
To be complete, I have the same problem encountered with another plugin:

For information, i have the same kind of issue with another plugin 'spectral library tool' AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'Filters'

Antoviscomi commented 1 year ago

Really sorry to disturb you with this additional/other problem. But This problem with those plugins was precisely the reason why I tried to uninstalling/reinstalling qgis ;-).

So, after erase dataplotly folder and reinstall the plugin. I have still the same error message. The plugin installation seems to work well. But the error message appears when i try to open the plugin.

`ModuleNotFoundError: No module named 'pandas'`
To be complete, I have the same problem encountered with another plugin:

For information, i have the same kind of issue with another plugin 'spectral library tool' AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'Filters'

have you installed both python-qgis and python3-qis packages?

image80 commented 1 year ago

Thanks. I'm taking the liberty to paste the error message below when i type sudo apt install python3-qgis


sudo apt install python3-qgis
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait       
python3-qgis est déjà la version la plus récente (1:3.34.0+36jammy).
python3-qgis passé en « installé manuellement ».
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-pkg-resources python-setuptools python2 python2-minimal python2.7 python2.7-minimal
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
3 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Paramétrage de qgis-providers (1:3.34.0+36jammy) ...
free(): invalid pointer
Aborted (core dumped)
dpkg: erreur de traitement du paquet qgis-providers (--configure) :
installed qgis-providers package post-installation script subprocess returned error exit status 134
dpkg: des problèmes de dépendances empêchent la configuration de qgis :
qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet qgis (--configure) :
problèmes de dépendances - laissé non configuré
Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                                                                 Aucun rapport « apport » n'a été créé car
le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                       dpkg: des problèmes de dépendances empêchent la configuration de python3-qgis :
python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet python3-qgis (--configure) :
problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
qgis-providers
qgis
python3-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have also error messages when i type sudo apt install qgis-providers

Antoviscomi commented 1 year ago

in order to solve this warning you need to :

dpkg -S dummy query 2>/tmp/warnings cat /tmp/warnings | awk '{print $8}' > /tmp/packages for package in $(cat /tmp/packages); do echo apt-get install --reinstall $package; apt-get install --reinstall $package; done; for package in $(apt-get install qgis-providers --reinstall 2>&1 | grep "warning: files list file for package '" | grep -Po "[^'\n ]+'" | grep -Po "[^']+"); do apt-get install --reinstall "$package"; done sudo apt-get upgrade sudo dpkg --configure -a sudo sh ./Documenti/qgis-providers.postinst.sh

this is the qgis-providers.postinst.sh script's content

!/bin/sh

set -e

if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then if [ -w /usr/share/qgis/resources/srs.db ] && [ -x /usr/lib/qgis/crssync ]; then HOME=/tmp XDG_DATA_HOME="" XDG_CONFIG_HOME="" XDG_STATE_HOME="" XDG_CACHE_HOME="" /usr/lib/qgis/crssync fi fi

DEBHELPER

Saluti

Antonio

Il giorno ven 3 nov 2023 alle ore 13:55 image80 @.***> ha scritto:

Thanks. I'm taking the liberty to paste the error message below when i type sudo apt install python3-qgis

sudo apt install python3-qgis Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait python3-qgis est déjà la version la plus récente (1:3.34.0+36jammy). python3-qgis passé en « installé manuellement ». Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires : libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-pkg-resources python-setuptools python2 python2-minimal python2.7 python2.7-minimal Veuillez utiliser « sudo apt autoremove » pour les supprimer. 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour. 3 partiellement installés ou enlevés. Après cette opération, 0 o d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] o Paramétrage de qgis-providers (1:3.34.0+36jammy) ... free(): invalid pointer Aborted (core dumped) dpkg: erreur de traitement du paquet qgis-providers (--configure) : installed qgis-providers package post-installation script subprocess returned error exit status 134 dpkg: des problèmes de dépendances empêchent la configuration de qgis : qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet qgis (--configure) : problèmes de dépendances - laissé non configuré Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent. Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent. dpkg: des problèmes de dépendances empêchent la configuration de python3-qgis : python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet python3-qgis (--configure) : problèmes de dépendances - laissé non configuré Des erreurs ont été rencontrées pendant l'exécution : qgis-providers qgis python3-qgis E: Sub-process /usr/bin/dpkg returned an error code (1)

I have also error messages when i type sudo apt install qgis-providers

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/52433#issuecomment-1792392131, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADANZVHSAHMI2VWJLNB6FJDYCTST3AVCNFSM6AAAAAAWL5WN4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGM4TEMJTGE . You are receiving this because you commented.Message ID: @.***>

image80 commented 1 year ago

Thanks again for your help. I paste below the end of the message that i obtain when i follow your last guidance :

Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-pkg-resources python-setuptools python2 python2-minimal python2.7 python2.7-minimal
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
3 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Paramétrage de qgis-providers (1:3.34.0+36jammy) ...
free(): invalid pointer
Aborted (core dumped)
dpkg: erreur de traitement du paquet qgis-providers (--configure) :
 installed qgis-providers package post-installation script subprocess returned error exit status 134
dpkg: des problèmes de dépendances empêchent la configuration de qgis :
 qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet qgis (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de python3-qgis :
 python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet python3-qgis (--configure) :
 problèmes de dépendances - laissé non configuré
Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                                                                  Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                        Des erreurs ont été rencontrées pendant l'exécution :
 qgis-providers
 qgis
 python3-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)
Paramétrage de qgis-providers (1:3.34.0+36jammy) ...
free(): invalid pointer
Aborted (core dumped)
dpkg: erreur de traitement du paquet qgis-providers (--configure) :
 installed qgis-providers package post-installation script subprocess returned error exit status 134
dpkg: des problèmes de dépendances empêchent la configuration de qgis :
 qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet qgis (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de python3-qgis :
 python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet python3-qgis (--configure) :
 problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
 qgis-providers
 qgis
 python3-qgis
sh: 0: cannot open ./Documenti/qgis-providers.postinst.sh: No such file
Antoviscomi commented 1 year ago

Thanks again for your help. I paste below the end of the message that i obtain when i follow your last guidance :

Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-pkg-resources python-setuptools python2 python2-minimal python2.7 python2.7-minimal
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
3 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Paramétrage de qgis-providers (1:3.34.0+36jammy) ...
free(): invalid pointer
Aborted (core dumped)
dpkg: erreur de traitement du paquet qgis-providers (--configure) :
 installed qgis-providers package post-installation script subprocess returned error exit status 134
dpkg: des problèmes de dépendances empêchent la configuration de qgis :
 qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet qgis (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de python3-qgis :
 python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet python3-qgis (--configure) :
 problèmes de dépendances - laissé non configuré
Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                                                                  Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                        Des erreurs ont été rencontrées pendant l'exécution :
 qgis-providers
 qgis
 python3-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)
Paramétrage de qgis-providers (1:3.34.0+36jammy) ...
free(): invalid pointer
Aborted (core dumped)
dpkg: erreur de traitement du paquet qgis-providers (--configure) :
 installed qgis-providers package post-installation script subprocess returned error exit status 134
dpkg: des problèmes de dépendances empêchent la configuration de qgis :
 qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet qgis (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de python3-qgis :
 python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant :
 Le paquet qgis-providers n'est pas encore configuré.

dpkg: erreur de traitement du paquet python3-qgis (--configure) :
 problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
 qgis-providers
 qgis
 python3-qgis
sh: 0: cannot open ./Documenti/qgis-providers.postinst.sh: No such file

./Documenti/qgis-providers.postinst.sh is my path, you need to create an .sh script with this code in

CODE TO INSERT IN .sh script

#!/bin/sh
set -e

if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then
if [ -w /usr/share/qgis/resources/srs.db ] && [ -x /usr/lib/qgis/crssync ];
then
HOME=/tmp XDG_DATA_HOME="" XDG_CONFIG_HOME="" XDG_STATE_HOME=""
XDG_CACHE_HOME="" /usr/lib/qgis/crssync
fi
fi

#DEBHELPER#
Antoviscomi commented 1 year ago

@image80 in alternative you can remove dpkg info sudo rm /var/lib/dpkg/info/qgis _but with this workaround, you'll able to configure all packets, but you'll receive a warning tell the qgis not installed packets, for each future upgrades_

image80 commented 1 year ago

Thanks again for your help. I make a new test. After a sudo aptitude install python3-pandas the plugin dataplotly works without error message this time ! However, there is a new error message this time when i try to enable/open the spectral library tools. I 'm taking the liberty to paste it below :

Impossible de charger l'extension 'spectral_libraries' provoque une erreur lors de l'appel à sa méthode classFactory()AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'Filters'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/__init__.py", line 14, in classFactory
    from spectral_libraries.spectral_libraries_plugin import SpectralLibrariesPlugin
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/spectral_libraries_plugin.py", line 29, in 
    from spectral_libraries.interfaces.spectral_library_gui import SpectralLibraryWidget
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/interfaces/spectral_library_gui.py", line 28, in 
    from spectral_libraries.qps.layerproperties import VectorLayerTools
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/layerproperties.py", line 85, in 
    from .classification.classificationscheme import ClassificationScheme
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/classification/classificationscheme.py", line 44, in 
    from ..utils import gdalDataset, nextColor, findMapLayer, registeredMapLayers, loadUi
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/utils.py", line 2402, in 
    class SelectMapLayersDialog(QgsDialog):
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/utils.py", line 2403, in SelectMapLayersDialog
    class LayerDescription(object):
  File "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/utils.py", line 2405, in LayerDescription
    def __init__(self, info: str, filters: QgsMapLayerProxyModel.Filters, allowEmptyLayer=False):
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'Filters'

Version de Python : 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] 
Version de QGIS : 3.34.0-Prizren Prizren, ffbdd678812

Chemin Python :

/usr/share/qgis/python

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins

/usr/share/qgis/python/plugins

/usr/lib/python310.zip

/usr/lib/python3.10

/usr/lib/python3.10/lib-dynload

/usr/local/lib/python3.10/dist-packages

/usr/lib/python3/dist-packages

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/HCMGIS/forms

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/SentinelHub/external/requests_oauthlib-1.3.1-py2.py3-none-any.whl

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/res
ecastro-capgemini commented 9 months ago

Why is it bug closed. There is not viable solution

jef-n commented 9 months ago

Why is it bug closed. There is not viable solution

Because there is no issue. The packages installed fine on plain ubuntu jammy, which ships libpdal_base.so.13 and not libpdal_base.so.15. If there is the latter instead of the former, then there are apparently pdal packages installed that the qgis packages were not built for/with.

PaulTomchik commented 8 months ago

I encountered the /usr/lib/qgis/crssync: error while loading shared libraries: libpdal_base.so.13: cannot open shared object file: No such file or directory error on my system. This error prevented QGIS from starting.

The following seems to have fixed the issue for me.

Environment:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:   jammy

First, I changed the URIs field in /etc/apt/sources.list.d/qgis.sources from https://qgis.org/debian to https://qgis.org/ubuntu-ltr. My qgis.sources file now looks like this:

Types: deb deb-src
URIs: https://qgis.org/ubuntu-ltr
Suites: jammy
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg

Then, I reinstalled QGIS and the dependencies:

sudo apt update
sudo apt purge qgis qgis-providers-common qgis-common python3-qgis-common 
sudo apt autoremove
sudo apt install qgis qgis-providers-common qgis-common

QGIS now runs without issue.

Antoviscomi commented 8 months ago

@jef-n It is the ubuntu ubuntu.qgis.org down today? on sudo apt update I receive this Impossibile recuperare https://qgis.org/ubuntu/dists/jammy/InRelease Impossibile connettersi a ubuntu.qgis.org:443 (144.76.174.102), tempo esaurito per la connessione

in english

Failed to recover https://qgis.org/ubuntu/dists/jammy/InRelease Failed to connect to ubuntu.qgis.org:443 (144.76.174.102), connection timed out

Antoviscomi commented 8 months ago

@jef-n It is the ubuntu ubuntu.qgis.org down today? on sudo apt update I receive this Impossibile recuperare https://qgis.org/ubuntu/dists/jammy/InRelease Impossibile connettersi a ubuntu.qgis.org:443 (144.76.174.102), tempo esaurito per la connessione

in english

Failed to recover https://qgis.org/ubuntu/dists/jammy/InRelease Failed to connect to ubuntu.qgis.org:443 (144.76.174.102), connection timed out

now it works!

geogeek11 commented 8 months ago

The bug is still unresolved

jamaps commented 8 months ago

@maxfagotto @image80 You need to only create a sym link about two libraries

sudo ln -s /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.13 Then sudo ldconfig Then it should works

Had this issue this morning - but this worked for me after a fresh upgrade to 3.34

cappelletto commented 6 months ago

@image80 in alternative you can remove dpkg info sudo rm /var/lib/dpkg/info/qgis _but with this workaround, you'll able to configure all packets, but you'll receive a warning tell the qgis not installed packets, for each future upgrades_

For future references: I have to mention this step cleared a blocking issue when installing qgis-providers, which was always failing to complete the installation (post-installation step).

bkanuka commented 6 months ago

I believe this has to do with an interaction with the libpdal-base13 package provided by the ubuntugis ppa. The libpdal-base13 does not provide the file /usr/lib/libpdal_base.so.13 (as a proper file or a symlink) but only provides /usr/lib/libpdal_base.so.15.

Meanwhile QGIS installed from the upstream https://qgis.org/ubuntu repos seem to rely on /usr/lib/libpdal_base.so.13 being present. If the ubuntugis ppa is not present, then the libpdal-base13 package would provide /usr/lib/libpdal_base.so.13 according to https://packages.ubuntu.com/jammy/libpdal-base13

Therefore, I would argue that this is a bug in ubuntugis packaging of libpdal-base13 and not a bug in QGIS. libpdal-base13 should be providing a /usr/lib/libpdal_base.so.13 in order to be a drop-in replacement for libpdal-base13 provided by Ubuntu main repos (and also because the name of the package is libpdal-base13 :wink: )

In the meantime, manually creating the symlink is a reasonable workaround. I also suspect that removing the https://qgis.org/ repo from you system and relying on the (slightly older) QGIS in the ubuntugis repo could also remedy the issue, although this is untested by me.

aloboa commented 5 months ago

I just had this issue with QGIS 3.36 and solved by following https://askubuntu.com/questions/1501931/qgis-not-installing-in-ubuntu-22-04

sudo ln -s /usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.13 sudo ln -s /usr/lib/libpdal_util.so.15 /usr/lib/libpdal_util.so.13 sudo ldconfig

But I wish to know which repos should I be using not to have this problem. How can it be that this issue is still there since >1y ago?

Antoviscomi commented 5 months ago

@aloboa after this symbolic link you'll never have this issue. In order to the repository I feel to suggest you don't use ubuntugis via ppa launchpad, because in there are very old version of all. So I suggest the official QGIS repository that support very well the Ubuntu platform with all current version of QGIS available in. Cheers

aloboa commented 5 months ago

@Antoviscomi Thanks, but if the fix is "so simple", why is this not done by the installation? Or at least get a final message letting know the user that these commands have to be run? Regarding repos, as far as I can see (I might not have the skills to carry out a full search), what I have is a file:

$ more /etc/apt/sources.list.d/qgis.sources
Types: deb deb-src
URIs: https://qgis.org/debian
Suites: jammy
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg

Is this the correct one? If it is, why have I had this issue?

This kind of installation problems are very detrimental to the reputation of QGIS, I cannot believe they can remain for >1y. Even not a word in https://www.qgis.org !

And the issue is closed as if the problem had been solved! This is not a fix, this is a temporary hack. A useful one and I am grateful for having been told, but it cannot be accepted as a real solution.

Antoviscomi commented 5 months ago

@aloboa this is an Ubuntu issue, sometimes the OS libraries release and update are noi aligned with other applications or third parties software.

aloboa commented 5 months ago

@Antoviscomi . No, this is an issue caused by an Ubuntu installation, but it is an issue that severely affects QGIS users thus it is a QGIS issue. Note that by following official directions on an official QGIS site, the user gets an unusable QGIS program. And > 1y is not "sometimes".

Antoviscomi commented 5 months ago

@aloboa however the repository is the correct one. QGIS is open-source and totally free of charge! So the mantainers carry out voluntary and free work, we can only be grateful for it! With or without issues or bugs ;-)

Antoviscomi commented 5 months ago

@Antoviscomi . No, this is an issue caused by an Ubuntu installation, but it is an issue that severely affects QGIS users thus it is a QGIS issue. Note that by following official directions on an official QGIS site, the user gets an unusable QGIS program. And > 1y is not "sometimes".

QGIS installation doesn't contains OS libraries! It is builded from a mantainer that build it with their most recent OS release or OS's libraries, if the user or the OS doesn't upgrade regularly it's not a QGIS issue

aloboa commented 5 months ago

The fact that this problem is not the fault of QGIS developers does not mean that it is not a QGIS issue. If a given OS or repo is not able to provide the means for users to install QGIS, the official page should state it. If there is a known problem with the installation, the official page must state it and, if possible, provide the workaround.

aloboa commented 5 months ago

Actually, the problem seems not to be entirely solved by following https://askubuntu.com/questions/1501931/qgis-not-installing-in-ubuntu-22-04

I can run QGIS, ,but if I attempt to reinstall as told in the last step, I still get:

$ sudo apt install qgis
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
qgis is already the newest version (1:3.36.3+36jammy).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up qgis-providers (1:3.36.3+36jammy) ...
Segmentation fault (core dumped)
dpkg: error processing package qgis-providers (--configure):
 installed qgis-providers package post-installation script subprocess returned error exit status 139
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup err
or from a previous failure.
                           dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:3.36.3+36jammy); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-qgis:
 python3-qgis depends on qgis-providers (= 1:3.36.3+36jammy); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package python3-qgis (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 qgis-providers
 qgis
 python3-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)
Antoviscomi commented 5 months ago

Actually, the problem seems not to be entirely solved by following https://askubuntu.com/questions/1501931/qgis-not-installing-in-ubuntu-22-04

I can run QGIS, ,but if I attempt to reinstall as told in the last step, I still get:

$ sudo apt install qgis
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
qgis is already the newest version (1:3.36.3+36jammy).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up qgis-providers (1:3.36.3+36jammy) ...
Segmentation fault (core dumped)
dpkg: error processing package qgis-providers (--configure):
 installed qgis-providers package post-installation script subprocess returned error exit status 139
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup err
or from a previous failure.
                           dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:3.36.3+36jammy); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-qgis:
 python3-qgis depends on qgis-providers (= 1:3.36.3+36jammy); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package python3-qgis (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 qgis-providers
 qgis
 python3-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)

https://github.com/qgis/QGIS/issues/48685#issuecomment-1293079401 that is another issue with another workaround that definitely solve the trouble ;-)

Antoviscomi commented 5 months ago

@aloboa I suggest you to search in Github in order to solve issues with QGIS, Ubuntu community It's valid but still advertise for Ubuntugis which is more stable but also more dated

aloboa commented 5 months ago

#48685 (comment) that is another issue wit another workaround that definitely solve the trouble ;-)

That ticket surely address my problem, but there are so many other issues in the discussion that the solution is not clear to me, and I am intimidated by all these abracadabras that I do not fully understand. Would your contribution to that discussion be the trick that I should use?:

sudo rm /var/lib/dpkg/info/qgis*
then
sudo apt update
sudo apt upgrade
or (in your case)
sudo apt install qgis
Antoviscomi commented 5 months ago

@aloboa these are not abracadabra but simply basic linux command lines, if you choose linux you must know at least how linux works to just manage it in the right way

MarcelGeo commented 4 months ago

On my PC with PopOS (Ubuntu) is not possible to install qgsi from ubuntu repo or ubuntu-ltr... segmentation failed:

Setting up qgis-providers (1:3.34.7+36jammy) ...
Segmentation fault (core dumped)
dpkg: error processing package qgis-providers (--configure):
 installed qgis-providers package post-installation script subprocess returned error exit status 139
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:3.34.7+36jammy); however:
  Package qgis-providers is not configured yet.
Antoviscomi commented 4 months ago

On my PC with PopOS (Ubuntu) is not possible to install qgsi from ubuntu repo or ubuntu-ltr... segmentation failed:

Setting up qgis-providers (1:3.34.7+36jammy) ...
Segmentation fault (core dumped)
dpkg: error processing package qgis-providers (--configure):
 installed qgis-providers package post-installation script subprocess returned error exit status 139
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:3.34.7+36jammy); however:
  Package qgis-providers is not configured yet.
sudo rm /var/lib/dpkg/info/qgis*
sudo apt update
sudo apt upgrade

then sudo apt install qgis

should works for your distro also

MarcelGeo commented 4 months ago

On my PC with PopOS (Ubuntu) is not possible to install qgsi from ubuntu repo or ubuntu-ltr... segmentation failed:

Setting up qgis-providers (1:3.34.7+36jammy) ...
Segmentation fault (core dumped)
dpkg: error processing package qgis-providers (--configure):
 installed qgis-providers package post-installation script subprocess returned error exit status 139
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:3.34.7+36jammy); however:
  Package qgis-providers is not configured yet.
sudo rm /var/lib/dpkg/info/qgis*
sudo apt update
sudo apt upgrade

then sudo apt install qgis

should works for your distro also

Yeah, It looks ok now . Many thanks :)

aloboa commented 4 months ago

Worked for me as well.

Antoviscomi commented 1 month ago

@aloboa I didn't upgrade but reading on alerts of 23.04 it seems that the repositories of local apps are resetted to the ubuntu defaults, so it's possible that your apt repositories previous working on 22.04 are now bypassed or disabled by the new defaults, take a look at/etc/apt/source.list or in the path where the qgis repository were on 22.04. Maybe in systemd repository under /etc/apt/sources.list.d/qgis.sources