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.02k stars 2.92k forks source link

Unable to install QGIS on Ubuntu 24.04 after upgrade from 23.04 #57729

Open ranjanport opened 3 weeks ago

ranjanport commented 3 weeks ago

What is the bug or the crash?

While installing QGIS on Ubuntu 24.04 LTS the apt throws some error which is listed in the context. I have upgrade by system from Ubuntu-23.04 to Ubuntu-24.04-LTS and Tried to install the qgis but there might be some issue with the installation.

Steps to reproduce the issue

sudo apt install gnupg software-properties-common

sudo wget -O /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg

sudo nano /etc/apt/sources.list.d/qgis.sources

Add these lines:

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

sudo apt install qgis qgis-plugin-grass

Versions

qgis:latest

Supported QGIS version

New profile

Additional context

Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: fonts-lyx grass-core grass-doc isympy-common isympy3 libassimp5 libclang1-15t64 libdraco8 libfftw3-double3 libjs-jquery-ui libjs-leaflet liblbfgsb0 libqca-qt5-2 libqca-qt5-2-plugins libqgis-3d3.34.4t64 libqgis-analysis3.34.4t64 libqgis-app3.34.4t64 libqgis-core3.34.4t64 libqgis-customwidgets libqgis-gui3.34.4t64 libqgis-native3.34.4t64 libqgis-server3.34.4t64 libqgisgrass8-3.34.4t64 libqgispython3.34.4t64 libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libqt53danimation5 libqt53dcore5 libqt53dextras5 libqt53dinput5 libqt53dlogic5 libqt53dquickscene2d5 libqt53drender5 libqt5charts5 libqt5concurrent5t64 libqt5designercomponents5 libqt5keychain1 libqt5location5 libqt5multimedia5 libqt5multimediawidgets5 libqt5opengl5t64 libqt5pdf5 libqt5positioning5 libqt5positioningquick5 libqt5quickwidgets5 libqt5sensors5 libqt5serialport5 libqt5webchannel5 libqt5webkit5 libqwt-qt5-6 libspatialindex6 libsqlite3-mod-spatialite python-matplotlib-data python3-appdirs python3-bs4 python3-contourpy python3-cssselect python3-cycler python3-decorator python3-fastjsonschema python3-fonttools python3-fs python3-html5lib python3-jupyter-core python3-kiwisolver python3-lxml python3-lz4 python3-matplotlib python3-mpmath python3-nbformat python3-owslib python3-platformdirs python3-plotly python3-psycopg2 python3-pyproj python3-pyqt5.qsci python3-pyqt5.qtmultimedia python3-pyqt5.qtpositioning python3-pyqt5.qtsql python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-qgis python3-qgis-common python3-scipy python3-soupsieve python3-sympy python3-tenacity python3-traitlets python3-ufolib2 python3-unicodedata2 python3-webencodings qdoc-qt5 qgis-common qgis-plugin-grass qgis-plugin-grass-common qgis-provider-grass qgis-providers qgis-providers-common qhelpgenerator-qt5 qml-module-qtcharts qt3d-assimpsceneimport-plugin qt3d-defaultgeometryloader-plugin qt3d-gltfsceneio-plugin qt3d-scene2d-plugin qt5-assistant qt5-image-formats-plugin-pdf qtattributionsscanner-qt5 qtchooser qttools5-dev-tools unicode-data Suggested packages: grass-dev grass-gui e00compr avce00 gnuplot gpsbabel gpstrans netpbm python3-rpy2 python3-termcolor subversion grass grass-dev-doc libfftw3-bin libfftw3-dev libjs-jquery-ui-docs libqscintilla2-doc python-cycler-doc python-fastjsonschema-doc python3-genshi python-lxml-doc cm-super-minimal dvipng ffmpeg fonts-staypuft inkscape ipython3 python3-cairocffi python3-gi-cairo python3-gobject python3-sip python3-tornado texlive-extra-utils texlive-latex-extra python-mpmath-doc python3-gmpy2 python3-pandas python3-ipykernel python-psycopg2-doc python-scipy-doc texlive-fonts-extra python-sympy-doc python-tenacity-doc qt5-doc The following NEW packages will be installed: fonts-lyx grass-core grass-doc isympy-common isympy3 libassimp5 libclang1-15t64 libdraco8 libfftw3-double3 libjs-jquery-ui libjs-leaflet liblbfgsb0 libqca-qt5-2 libqca-qt5-2-plugins libqgis-3d3.34.4t64 libqgis-analysis3.34.4t64 libqgis-app3.34.4t64 libqgis-core3.34.4t64 libqgis-customwidgets libqgis-gui3.34.4t64 libqgis-native3.34.4t64 libqgis-server3.34.4t64 libqgisgrass8-3.34.4t64 libqgispython3.34.4t64 libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libqt53danimation5 libqt53dcore5 libqt53dextras5 libqt53dinput5 libqt53dlogic5 libqt53dquickscene2d5 libqt53drender5 libqt5charts5 libqt5concurrent5t64 libqt5designercomponents5 libqt5keychain1 libqt5location5 libqt5multimedia5 libqt5multimediawidgets5 libqt5opengl5t64 libqt5pdf5 libqt5positioning5 libqt5positioningquick5 libqt5quickwidgets5 libqt5sensors5 libqt5serialport5 libqt5webchannel5 libqt5webkit5 libqwt-qt5-6 libspatialindex6 libsqlite3-mod-spatialite python-matplotlib-data python3-appdirs python3-bs4 python3-contourpy python3-cssselect python3-cycler python3-decorator python3-fastjsonschema python3-fonttools python3-fs python3-html5lib python3-jupyter-core python3-kiwisolver python3-lxml python3-lz4 python3-matplotlib python3-mpmath python3-nbformat python3-owslib python3-platformdirs python3-plotly python3-psycopg2 python3-pyproj python3-pyqt5.qsci python3-pyqt5.qtmultimedia python3-pyqt5.qtpositioning python3-pyqt5.qtsql python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-qgis python3-qgis-common python3-scipy python3-soupsieve python3-sympy python3-tenacity python3-traitlets python3-ufolib2 python3-unicodedata2 python3-webencodings qdoc-qt5 qgis qgis-common qgis-plugin-grass qgis-plugin-grass-common qgis-provider-grass qgis-providers qgis-providers-common qhelpgenerator-qt5 qml-module-qtcharts qt3d-assimpsceneimport-plugin qt3d-defaultgeometryloader-plugin qt3d-gltfsceneio-plugin qt3d-scene2d-plugin qt5-assistant qt5-image-formats-plugin-pdf qtattributionsscanner-qt5 qtchooser qttools5-dev-tools unicode-data 0 upgraded, 111 newly installed, 0 to remove and 0 not upgraded. Need to get 75.4 MB/203 MB of archives. After this operation, 898 MB of additional disk space will be used.

Fetched 60.0 MB in 3min 15s (308 kB/s)
Extracting templates from packages: 100% Selecting previously unselected package libqt5positioning5:amd64. . . . .

Setting up qtchooser (66-2build2) ... Setting up liblbfgsb0:amd64 (3.0+dfsg.4-1build1) ... Setting up python3-pyqt5.qtsvg (5.15.10+dfsg-1build6) ... Setting up python3-sympy (1.12-7) ... Setting up libqt5positioningquick5:amd64 (5.15.13+dfsg-1) ... Setting up python3-scipy (1.11.4-6build1) ... Setting up python3-owslib (0.29.3-1) ... Setting up grass-core (8.3.2-1ubuntu2) ... /usr/lib/grass83/etc/python/grass/gunittest/gmodules.py:22: SyntaxWarning: invalid escape sequence '_' """Simple wrapper around pygrass.modules.Module to make sure that /usr/lib/grass83/etc/python/grass/pygrass/modules/interface/module.py:239: SyntaxWarning: invalid escape sequence '_' """Put the next Module or MultiModule object in the queue /usr/lib/grass83/etc/python/grass/pygrass/modules/interface/parameter.py:179: SyntaxWarning: invalid escape sequence '\d' "(?P-\d+.\d)-(?P\d+.\d)", diz["values"][0] /usr/lib/grass83/etc/python/grass/pygrass/vector/geometry.py:27: SyntaxWarning: invalid escape sequence '(' "POINT((.))": "point", # 'POINT(\s([+-]\d+.\d)+\s)' /usr/lib/grass83/etc/python/grass/pygrass/vector/geometry.py:28: SyntaxWarning: invalid escape sequence '(' "LINESTRING((.))": "line", /usr/lib/grass83/etc/python/grass/pygrass/vector/geometry.py:1138: SyntaxWarning: invalid escape sequence '(' match = re.match("LINESTRING((.))", wkt) /usr/lib/grass83/etc/python/grass/pygrass/vector/geometry.py:1685: SyntaxWarning: invalid escape sequence '*' """Returns area of area without areas of isles. /usr/lib/grass83/etc/python/grass/pygrass/vector/geometry.py:1766: SyntaxWarning: invalid escape sequence '*' """Creates list of boundaries for given area. /usr/lib/grass83/etc/python/grass/pygrass/vector/geometry.py:1805: SyntaxWarning: invalid escape sequence '*' """Find FIRST category of given field and area. /usr/lib/grass83/etc/python/grass/pygrass/vector/geometry.py:1831: SyntaxWarning: invalid escape sequence '*' """Calculate area perimeter. /usr/lib/grass83/etc/python/grass/script/task.py:462: SyntaxWarning: invalid escape sequence '\?' pattern = re.compile(b'<\?xml[^>]\Wencoding="([^"])"[^>]\?>') /usr/lib/grass83/etc/python/grass/temporal/abstract_space_timedataset.py:1630: SyntaxWarning: invalid escape sequence '_' "{br} LIKE '{si}_%' {esc} OR {br} LIKE '%\{si}' {esc} OR " /usr/lib/grass83/etc/python/grass/temporal/abstract_space_timedataset.py:1631: SyntaxWarning: invalid escape sequence '_' "{br} LIKE '{orig}_%' {esc} OR {br} LIKE '%\{orig}' {esc}".format( Setting up libqt5location5:amd64 (5.15.13+dfsg-1) ... Setting up python3-pyqt5.qtmultimedia (5.15.10+dfsg-1build6) ... Setting up qdoc-qt5 (5.15.13-1) ... Setting up libqt53drender5:amd64 (5.15.13+dfsg-1) ... Setting up qhelpgenerator-qt5 (5.15.13-1) ... Setting up libqca-qt5-2-plugins:amd64 (2.3.8-1build3) ... Setting up libqwt-qt5-6 (6.1.4-2build2) ... . . . Setting up libqgis-analysis3.34.4t64 (3.34.4+dfsg-4build2) ... Setting up libqgisgrass8-3.34.4t64 (3.34.4+dfsg-4build2) ... Setting up libqgis-3d3.34.4t64 (3.34.4+dfsg-4build2) ... Setting up qgis-provider-grass (3.34.4+dfsg-4build2) ... Setting up qgis-providers (3.34.4+dfsg-4build2) ... /usr/lib/qgis/crssync: error while loading shared libraries: libarmadillo.so.10: 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 (= 3.34.4+dfsg-4build2); however: Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of qgis-plugin-grass: qgis-plugin-grass depends on qgis (= 3.34.4+dfsg-4build2); however: Package qgis is not configured yet.

dpkg: error processing package qgis-plugin-grass (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-qgis: python3-qgis depends on qgis-providers (= 3.34.4+dfsg-4build2); however: Package qgis-providers is not configured yet.

dpkg: error processing package python3-qgis (--configure): dependency problems - leaving unconfigured Setting up libqgis-app3.34.4t64 (3.34.4+dfsg-4build2) ... Setting up python3-ufolib2 (0.16.0+dfsg1-1) ... 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 error from a previous failure. No apport report written because MaxReports is reached already Setting up python3-fonttools (4.46.0-1build2) ... Setting up python3-matplotlib (3.6.3-1ubuntu5) ... Setting up python3-qgis-common (3.34.4+dfsg-4build2) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for fontconfig (2.15.0-1.1ubuntu2) ... Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu5) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils (0.27-2build1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ... Processing triggers for libc-bin (2.39-0ubuntu8.2) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for shared-mime-info (2.4-4) ... Errors were encountered while processing: qgis-providers qgis qgis-plugin-grass python3-qgis E: Sub-process /usr/bin/dpkg returned an error code (1)

ranjanport commented 3 weeks ago

Any workaround for this, Because I am really in need of doing work and can't able to do so. Could someone please help me out. @agiudiceandrea

agiudiceandrea commented 3 weeks ago

@ranjanport, questions and request for help should go to the qgis-user mailing list at https://lists.osgeo.org/mailman/listinfo/qgis-user or other support forums such as https://gis.stackexchange.com/. GitHub issues are for bug reports and suggestions for new features.

aloboa commented 3 weeks ago

Could this be related to https://github.com/qgis/QGIS/issues/57603 ?

@agiudiceandrea Are these 2 issues not considered installation bugs? @ranjanport, if you get the issue solved through advices in the suggested forums, please report back here the links.

ranjanport commented 3 weeks ago

@aloboa The mentioned issue #57603 is similar to my case the only difference is the Ubuntu version mine is 24.04. Also, this is probably some of the issue within the post installation script or maybe something else. But I am still unable to resolve this at my end. Also, I have tried installing this into fresh Ubuntu 24.04-LTS installation there it works fine. @agiudiceandrea This may not be installation issue as the procedure to install the QGIS is as clear as water, so, I think you might be able to reproduce this issue once you have an upgrade transition. Also, I have searched a lot of contents on web and found this as true, that most of the people have faced these kind of issue when they make an upgrade.

aloboa commented 2 weeks ago

In my case, solved with

sudo rm /var/lib/dpkg/info/qgis*
sudo apt update
sudo apt upgrade

then sudo apt install qgis

ref. https://github.com/qgis/QGIS/issues/52433

@ranjanport hopefully it works for you too.

ranjanport commented 2 weeks ago

@ranjanport hopefully it works for you too. No, @aloboa It does not worked for me have already tried this and wasted my 1 day. Now, the situation is that I can't reinstall my OS as there is lots of dependencies already installed. And Can't be able to install QGIS to do my primary work on my project.

It would be great if there is a fix from the @Qgis team is provided to resolve this issue.

gregorywaynepower commented 2 weeks ago

@ranjanport You may have some luck running qgis via conda so you can keep the dependencies separate from other packages on your machine.

agiudiceandrea commented 2 weeks ago

You can also install QGIS using Flatpak https://qgis.org/en/site/forusers/alldownloads.html#flatpak or Spack https://qgis.org/en/site/forusers/alldownloads.html#spack as indicated on the QGIS website.