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.52k stars 2.99k forks source link

QGIS 3.10.10: Can't browse GRASS locations #39302

Closed mankoff closed 4 years ago

mankoff commented 4 years ago

Describe the bug

Yesterday, using 3.10.9, I could brows GRASS repositories in the Browser. My "G" folders (my GRASS locations) appeared both as a folder, and again with the GRASS icon which exposed the mapsets and rasters and vectors therein. That special icon and view of the GRASS folder is gone.

This page on GRASS integration https://docs.qgis.org/3.10/en/docs/user_manual/grass_integration/grass_integration.html#loading-grass-raster-and-vector-layers says If you don’t see GRASS location item, verify in Help ‣ About ‣ Providers if GRASS vector provider is loaded.

On that page, I see

9. GRASS 7 vector provider
10. GRASS 7 raster provider

And I have all the GRASS tools listed under the "Processing Toolbox".

Finally, when I go to Plugins, GRASS is installed, but when I toggle it off and then on, I get this message in the QGIS Log:

2020-10-10T06:35:21 WARNING GRASS init error : Problem in GRASS initialization, GRASS provider and plugin will not work : Module built against version 2020-10-05T18:11:37+00:00 but trying to use version 2020-10-05T19:53:30+00:00. You need to rebuild GRASS GIS or untangle multiple installations.

As far as I know I only have 1 version of GRASS installed, by the OS, using the same deb source as QGIS. That GRASS version hasn't changed anytime recently, only QGIS has (yesterday, when this issue appeared).

I haven't done anything to change my GRASS install, only upgrade QGIS per the OS suggestion. I'm on Kubuntu 20.04 LTS using deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal main in /etc/apt/sources.list.d.

QGIS and OS versions

QGIS version 3.10.10-A Coruña QGIS code branch Release 3.10
Compiled against Qt 5.12.8 Running against Qt 5.12.8
Compiled against GDAL/OGR 3.1.3 Running against GDAL/OGR 3.1.3
Compiled against GEOS 3.8.1-CAPI-1.13.3 Running against GEOS 3.8.1-CAPI-1.13.3
Compiled against SQLite 3.31.1 Running against SQLite 3.31.1
PostgreSQL Client Version 12.4 (Ubuntu 12.4-0ubuntu0.20.04.1) SpatiaLite Version 5.0.0
QWT Version 6.1.4 QScintilla2 Version 2.11.2
Compiled against PROJ 7.1.1 Running against PROJ Rel. 7.1.1, September 1st, 2020
OS Version Ubuntu 20.04.1 LTS
Active python plugins send2google_earth; latlontools; processing; MetaSearch; db_manager
gioman commented 4 years ago

@mankoff I'm on Kubuntu 20.04 and QGIS 3.10.10, all fine here:

Screenshot_20201010_150716

mankoff commented 4 years ago

I've tried a clean install. I removed everything related to QGIS and GRASS:

dpkg -l | grep -E 'grass|qgis'  # returns nothing

New install:

$ sudo apt install grass grass-dev qgis
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  grass-core grass-doc grass-gui icu-devtools libarmadillo-dev libarpack2-dev libassimp5 libblas-dev libboost-dev libboost1.71-dev libcfitsio-dev
  libcfitsio-doc libcharls-dev libclang1-10 libdap-dev libdapserver7v5 libepsilon-dev libfcgi-bin libfcgi0ldbl libfreexl-dev libfyba-dev libgdal-dev
  libgeos-dev libgeotiff-dev libgif-dev libicu-dev libjbig-dev libjs-leaflet libjson-c-dev libkml-dev libkmlconvenience1 libkmlregionator1 libkmlxsd1
  liblapack-dev liblaszip8 liblzma-dev libminizip-dev libogdi-dev libopenjp2-7-dev libpdal-base12 libpdal-plugin-e57 libpdal-plugin-faux libpdal-plugin-hdf
  libpdal-plugin-i3s libpdal-plugin-icebridge libpdal-plugin-pgpointcloud libpdal-plugins libpdal-util12 libpq-dev libproj-dev libqgis-3d3.10.10
  libqgis-analysis3.10.10 libqgis-app3.10.10 libqgis-core3.10.10 libqgis-customwidgets libqgis-gui3.10.10 libqgis-native3.10.10 libqgis-server3.10.10
  libqgisgrass7-3.10.10 libqgispython3.10.10 libqhull-dev libqhull-r7 libqt53danimation5 libqt53dcore5 libqt53dextras5 libqt53dinput5 libqt53dlogic5
  libqt53dquickscene2d5 libqt53drender5 libqt5designercomponents5 libqt5keychain1 libqwt-qt5-6 librttopo-dev libspatialindex6 libspatialite-dev
  libsqlite3-dev libsqlite3-mod-spatialite libsuperlu-dev libtiff-dev libtiffxx5 liburiparser-dev libwebp-dev libxerces-c-dev libxml2-dev libzstd-dev
  python3-future python3-ipython-genutils python3-jinja2 python3-jsonschema python3-jupyter-core python3-markupsafe python3-nbformat python3-opengl
  python3-owslib python3-plotly python3-psycopg2 python3-pyproj python3-pyqt5.qsci python3-pyqt5.qtsql python3-pyqt5.qtwebkit python3-pyrsistent python3-qgis
  python3-qgis-common python3-retrying python3-traitlets python3-wxgtk4.0 qdoc-qt5 qgis-common qgis-plugin-grass qgis-plugin-grass-common qgis-provider-grass
  qgis-providers qgis-providers-common qhelpgenerator-qt5 qt3d-assimpsceneimport-plugin qt3d-defaultgeometryloader-plugin qt3d-gltfsceneio-plugin
  qt3d-scene2d-plugin qt5-assistant qtattributionsscanner-qt5 qttools5-dev-tools unixodbc-dev
Suggested packages:
  e00compr avce00 gpstrans python3-rpy2 python3-termcolor grass-dev-doc libitpp-dev liblapack-doc libboost-doc libboost1.71-doc libboost-atomic1.71-dev
  libboost-chrono1.71-dev libboost-container1.71-dev libboost-context1.71-dev libboost-contract1.71-dev libboost-coroutine1.71-dev libboost-date-time1.71-dev
  libboost-exception1.71-dev libboost-fiber1.71-dev libboost-filesystem1.71-dev libboost-graph1.71-dev libboost-graph-parallel1.71-dev
  libboost-iostreams1.71-dev libboost-locale1.71-dev libboost-log1.71-dev libboost-math1.71-dev libboost-mpi1.71-dev libboost-mpi-python1.71-dev
  libboost-numpy1.71-dev libboost-program-options1.71-dev libboost-python1.71-dev libboost-random1.71-dev libboost-regex1.71-dev
  libboost-serialization1.71-dev libboost-stacktrace1.71-dev libboost-system1.71-dev libboost-test1.71-dev libboost-thread1.71-dev libboost-timer1.71-dev
  libboost-type-erasure1.71-dev libboost-wave1.71-dev libboost1.71-tools-dev libmpfrc++-dev libntl-dev libgdal-doc libgeotiff-epsg icu-doc liblzma-doc
  postgresql-doc-12 sqlite3-doc libsuperlu-doc libxerces-c-doc python-future-doc python-jinja2-doc python-jsonschema-doc libgle3 owslib-doc ipython3
  python3-ipykernel python-psycopg2-doc otb-qgis saga wx3.0-doc qt5-doc
The following NEW packages will be installed:
  grass grass-core grass-dev grass-doc grass-gui icu-devtools libarmadillo-dev libarpack2-dev libassimp5 libblas-dev libboost-dev libboost1.71-dev
  libcfitsio-dev libcfitsio-doc libcharls-dev libclang1-10 libdap-dev libdapserver7v5 libepsilon-dev libfcgi-bin libfcgi0ldbl libfreexl-dev libfyba-dev
  libgdal-dev libgeos-dev libgeotiff-dev libgif-dev libicu-dev libjbig-dev libjs-leaflet libjson-c-dev libkml-dev libkmlconvenience1 libkmlregionator1
  libkmlxsd1 liblapack-dev liblaszip8 liblzma-dev libminizip-dev libogdi-dev libopenjp2-7-dev libpdal-base12 libpdal-plugin-e57 libpdal-plugin-faux
  libpdal-plugin-hdf libpdal-plugin-i3s libpdal-plugin-icebridge libpdal-plugin-pgpointcloud libpdal-plugins libpdal-util12 libpq-dev libproj-dev
  libqgis-3d3.10.10 libqgis-analysis3.10.10 libqgis-app3.10.10 libqgis-core3.10.10 libqgis-customwidgets libqgis-gui3.10.10 libqgis-native3.10.10
  libqgis-server3.10.10 libqgisgrass7-3.10.10 libqgispython3.10.10 libqhull-dev libqhull-r7 libqt53danimation5 libqt53dcore5 libqt53dextras5 libqt53dinput5
  libqt53dlogic5 libqt53dquickscene2d5 libqt53drender5 libqt5designercomponents5 libqt5keychain1 libqwt-qt5-6 librttopo-dev libspatialindex6
  libspatialite-dev libsqlite3-dev libsqlite3-mod-spatialite libsuperlu-dev libtiff-dev libtiffxx5 liburiparser-dev libwebp-dev libxerces-c-dev libxml2-dev
  libzstd-dev python3-future python3-ipython-genutils python3-jinja2 python3-jsonschema python3-jupyter-core python3-markupsafe python3-nbformat
  python3-opengl python3-owslib python3-plotly python3-psycopg2 python3-pyproj python3-pyqt5.qsci python3-pyqt5.qtsql python3-pyqt5.qtwebkit
  python3-pyrsistent python3-qgis python3-qgis-common python3-retrying python3-traitlets python3-wxgtk4.0 qdoc-qt5 qgis qgis-common qgis-plugin-grass
  qgis-plugin-grass-common qgis-provider-grass qgis-providers qgis-providers-common qhelpgenerator-qt5 qt3d-assimpsceneimport-plugin
  qt3d-defaultgeometryloader-plugin qt3d-gltfsceneio-plugin qt3d-scene2d-plugin qt5-assistant qtattributionsscanner-qt5 qttools5-dev-tools unixodbc-dev
0 upgraded, 125 newly installed, 0 to remove and 0 not upgraded.
Need to get 192 MB/217 MB of archives.
After this operation, 921 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

When I launch QGIS I get this in the Log Messages:

2020-10-10T07:28:31 WARNING GRASS init error : Problem in GRASS initialization, GRASS provider and plugin will not work : Module built against version 2020-10-05T18:11:37+00:00 but trying to use version 2020-10-05T19:53:30+00:00. You need to rebuild GRASS GIS or untangle multiple installations.

I note that a few days ago when I ran sudo apt upgrade that there was some conflict with QGIS and GRASS that lasted about 48 hours, then the upgrade from 3.10.9 to 3.10.10 worked, but this issue appeared.

Can you suggest how I can better test this on my machine given I just did this "clean" install? Should I set up a new VM that is even cleaner and see if this appears there?

nicogodet commented 4 years ago

@mankoff Recently grass was updated from 7.8.3 to 7.8.4 and I noticed the same warning on 3.10.10 and 3.12.16 on Windows10 with osgeo4w install Restoring 7.8.3 solved the warning.

mankoff commented 4 years ago

I no longer have access to that version, and I'm hesitant to downgrade to 7.8.2. I think there were 7.8.3 features that I needed when that upgrade came out.

$ apt list -a grass
Listing... Done
grass/focal,focal,now 7.8.4-1~focal1 all [installed]
grass/focal,focal 7.8.2-1build3 all
gioman commented 4 years ago

downgrade to 7.8.2

@mankoff On Focal GRASS is 7.2

https://packages.ubuntu.com/search?keywords=grass-core&searchon=names&suite=focal&section=all

and if you use the qgis.org that uses normal focal repositories for dependencies then I guess you have to stick to 7.2

mankoff commented 4 years ago

OK that is clearly the source of the problem. Thank you. I'm not using LTS then, but am using the UbuntuGIS repository here https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable?field.series_filter=focal which did provide working versions of QGIS (3.10.9) built against GRASS 7.8.3 and GRASS 7.8.4. Perhaps I need to move this issue to there?

gioman commented 4 years ago

OK that is clearly the source of the problem.

@mankoff there is a qgis.org repo specific to be used if you use also ubuntugis.

mankoff commented 4 years ago

Yes thank you! In case anyone else finds this, setting up QGIS to use the qgis.org repo, with ubuntu-ltr (https://qgis.org/ubuntu-ltr) provides the latest LTR QGIS combined with the latest GRASS and a working plugin.

mankoff commented 3 years ago

Hello again. Sorry to comment here, but I've run into the same issue and after reading the above thread am not sure how best to solve it. QGIS upgraded via sudo apt upgrade a few days ago, and the GRASS plugin stopped working again. I've tried to follow the earlier instructions which fixed this last October without downgrading to GRASS 7.8.2 (earlier thread at https://github.com/qgis/QGIS/issues/39302 ).

I think I'm properly loading sources from ubuntugis-ubuntu-ubuntugis-unstable-focal.list. I've removed all GRASS and QGIS installation (dpgk -l | grep -ie grass|qgis returns nothing. I then sudo apt install qgis. When I launch it, I get the following warning:

2021-01-26T05:49:47 WARNING GRASS init error : Problem in GRASS initialization, GRASS provider and plugin will not work : Module built against version 2020-12-23T15:13:18+00:00 but trying to use version 2021-01-05T16:37:09+00:00. You need to rebuild GRASS GIS or untangle multiple installations.

The install used:

$ sudo apt install qgis
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  icu-devtools libarmadillo-dev libarpack2-dev libblas-dev libboost-dev libboost1.71-dev libcfitsio-dev libcfitsio-doc libcharls-dev libdap-dev libdapserver7v5 libdeflate-dev
  libepsilon-dev libfreexl-dev libfyba-dev libgdal-dev libgeos-dev libgeotiff-dev libgif-dev libheif-dev libicu-dev libjbig-dev libjson-c-dev libkml-dev libkmlconvenience1
  libkmlregionator1 libkmlxsd1 liblapack-dev liblzma-dev libminizip-dev libogdi-dev libopenjp2-7-dev libpq-dev libproj-dev libqhull-dev libqhull-r7 librttopo-dev libspatialite-dev
  libsqlite3-dev libsuperlu-dev libtiff-dev libtiffxx5 liburiparser-dev libwebp-dev libxerces-c-dev libxml2-dev libzstd-dev python3-opengl python3-wxgtk4.0 unixodbc-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  grass-core grass-doc libqgis-3d3.10.14 libqgis-analysis3.10.14 libqgis-app3.10.14 libqgis-core3.10.14 libqgis-customwidgets libqgis-gui3.10.14 libqgis-native3.10.14
  libqgis-server3.10.14 libqgisgrass7-3.10.14 libqgispython3.10.14 python3-qgis python3-qgis-common qgis-common qgis-plugin-grass qgis-plugin-grass-common qgis-provider-grass
  qgis-providers qgis-providers-common
Suggested packages:
  grass-dev grass-gui e00compr avce00 gnuplot gpstrans python3-rpy2 python3-termcolor grass grass-dev-doc otb-qgis saga
The following NEW packages will be installed:
  grass-core grass-doc libqgis-3d3.10.14 libqgis-analysis3.10.14 libqgis-app3.10.14 libqgis-core3.10.14 libqgis-customwidgets libqgis-gui3.10.14 libqgis-native3.10.14
  libqgis-server3.10.14 libqgisgrass7-3.10.14 libqgispython3.10.14 python3-qgis python3-qgis-common qgis qgis-common qgis-plugin-grass qgis-plugin-grass-common qgis-provider-grass
  qgis-providers qgis-providers-common
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.2 MB/135 MB of archives.
After this operation, 378 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main amd64 grass-doc all 7.8.5-1~focal2 [33.2 MB]
Get:2 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main amd64 grass-core amd64 7.8.5-1~focal2 [5,978 kB]                                                       
Fetched 39.2 MB in 2min 54s (226 kB/s)                                                                                                                                               
Selecting previously unselected package qgis-providers-common.
(Reading database ... 557860 files and directories currently installed.)
Preparing to unpack .../00-qgis-providers-common_1%3a3.10.14+32focal-ubuntugis_all.deb ...
Unpacking qgis-providers-common (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgis-core3.10.14.
Preparing to unpack .../01-libqgis-core3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-core3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgis-native3.10.14.
Preparing to unpack .../02-libqgis-native3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-native3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgis-gui3.10.14.
Preparing to unpack .../03-libqgis-gui3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-gui3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package qgis-providers.
Preparing to unpack .../04-qgis-providers_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking qgis-providers (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package grass-doc.
Preparing to unpack .../05-grass-doc_7.8.5-1~focal2_all.deb ...
Unpacking grass-doc (7.8.5-1~focal2) ...
Selecting previously unselected package grass-core.
Preparing to unpack .../06-grass-core_7.8.5-1~focal2_amd64.deb ...
Unpacking grass-core (7.8.5-1~focal2) ...
Selecting previously unselected package libqgis-3d3.10.14.
Preparing to unpack .../07-libqgis-3d3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-3d3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgis-analysis3.10.14.
Preparing to unpack .../08-libqgis-analysis3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-analysis3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgis-app3.10.14.
Preparing to unpack .../09-libqgis-app3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-app3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgis-customwidgets.
Preparing to unpack .../10-libqgis-customwidgets_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-customwidgets (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgis-server3.10.14.
Preparing to unpack .../11-libqgis-server3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgis-server3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgisgrass7-3.10.14.
Preparing to unpack .../12-libqgisgrass7-3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgisgrass7-3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package libqgispython3.10.14.
Preparing to unpack .../13-libqgispython3.10.14_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking libqgispython3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package python3-qgis-common.
Preparing to unpack .../14-python3-qgis-common_1%3a3.10.14+32focal-ubuntugis_all.deb ...
Unpacking python3-qgis-common (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package python3-qgis.
Preparing to unpack .../15-python3-qgis_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking python3-qgis (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package qgis-common.
Preparing to unpack .../16-qgis-common_1%3a3.10.14+32focal-ubuntugis_all.deb ...
Unpacking qgis-common (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package qgis.
Preparing to unpack .../17-qgis_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking qgis (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package qgis-plugin-grass-common.
Preparing to unpack .../18-qgis-plugin-grass-common_1%3a3.10.14+32focal-ubuntugis_all.deb ...
Unpacking qgis-plugin-grass-common (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package qgis-provider-grass.
Preparing to unpack .../19-qgis-provider-grass_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking qgis-provider-grass (1:3.10.14+32focal-ubuntugis) ...
Selecting previously unselected package qgis-plugin-grass.
Preparing to unpack .../20-qgis-plugin-grass_1%3a3.10.14+32focal-ubuntugis_amd64.deb ...
Unpacking qgis-plugin-grass (1:3.10.14+32focal-ubuntugis) ...
Setting up qgis-providers-common (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgis-native3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgis-core3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgis-3d3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgispython3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up qgis-common (1:3.10.14+32focal-ubuntugis) ...
Setting up grass-doc (7.8.5-1~focal2) ...
Setting up qgis-plugin-grass-common (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgis-analysis3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgis-gui3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up qgis-providers (1:3.10.14+32focal-ubuntugis) ...
        - 'VirtualXPath'        [XML Path Language - XPath]
        - 'VirtualXPath'        [XML Path Language - XPath]
Could not execute: INSERT INTO tbl_srs(srs_id, description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) VALUES (63321, 'Timbalai 1948 / RSO Sarawak LSD (m)','omerc','evrstSS','+proj=omerc +no_uoff +lat_0=4 +lonc=115 +alpha=53.3158204722222 +gamma=53.1301023611111 +k=0.99984 +x_0=2000000 +y_0=5000000 +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 +units=m +no_defs',520003321,'EPSG','29874',0,0) [UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: tbl_srs.srs_id]

Could not execute: INSERT INTO tbl_srs(srs_id, description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) VALUES (63322, 'PZ-90.02','longlat','','+proj=longlat +a=6378136 +rf=298.257839303 +no_defs',520003322,'EPSG','9474',1,0) [UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: tbl_srs.srs_id]

Could not execute: INSERT INTO tbl_srs(srs_id, description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) VALUES (63323, 'PZ-90.11','longlat','','+proj=longlat +a=6378136 +rf=298.257839303 +no_defs',520003323,'EPSG','9475',1,0) [UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: tbl_srs.srs_id]

Could not execute: INSERT INTO tbl_srs(srs_id, description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) VALUES (63324, 'POSGAR 2007 / CABA 2019','tmerc','WGS84','+proj=tmerc +lat_0=-34.6292666666667 +lon_0=-58.4633083333333 +k=1 +x_0=20000 +y_0=70000 +ellps=WGS84 +units=m +no_defs',520003324,'EPSG','9498',0,0) [UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: tbl_srs.srs_id]

Could not execute: INSERT INTO tbl_srs(srs_id, description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) VALUES (63325, 'NAD83 / USFS R6 Albers','aea','GRS80','+proj=aea +lat_0=34 +lon_0=-120 +lat_1=43 +lat_2=48 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',520003325,'EPSG','9674',0,0) [UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: tbl_srs.srs_id]

Could not execute: INSERT INTO tbl_srs(srs_id, description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) VALUES (63326, 'NKG_ETRF00','geocent','GRS80','+proj=geocent +ellps=GRS80 +units=m +no_defs',520003326,'NKG','ETRF00',0,0) [UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: tbl_srs.srs_id]

Could not execute: INSERT INTO tbl_srs(srs_id, description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) VALUES (63327, 'NKG_ETRF14','geocent','GRS80','+proj=geocent +ellps=GRS80 +units=m +no_defs',520003327,'NKG','ETRF14',0,0) [UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: tbl_srs.srs_id]

7 CRSs could not be updated.
        - 'VirtualXPath'        [XML Path Language - XPath]
Setting up grass-core (7.8.5-1~focal2) ...
Setting up libqgis-customwidgets (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgis-server3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgisgrass7-3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up python3-qgis-common (1:3.10.14+32focal-ubuntugis) ...
Setting up libqgis-app3.10.14 (1:3.10.14+32focal-ubuntugis) ...
Setting up qgis-provider-grass (1:3.10.14+32focal-ubuntugis) ...
Setting up python3-qgis (1:3.10.14+32focal-ubuntugis) ...
Setting up qgis (1:3.10.14+32focal-ubuntugis) ...
Setting up qgis-plugin-grass (1:3.10.14+32focal-ubuntugis) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...

(Note - Google sent me to #39301 for some reason, not this thread. Both were opened at the same time by mistake but conversations only happened here).

gioman commented 3 years ago

Hello again. Sorry to comment here, but I've run into the same issue and after reading the above thread am not sure how best to solve it. QGIS upgraded via sudo apt upgrade a few days ago, and the GRASS plugin stopped working again. I've tried to follow the earlier instructions which fixed this last October without downgrading to GRASS 7.8.2 (earlier thread at #39302 ).

I think I'm properly loading sources from ubuntugis-ubuntu-ubuntugis-unstable-focal.list. I've removed all GRASS and QGIS installation (dpgk -l | grep -ie grass|qgis returns nothing. I then sudo apt install qgis. When I launch it, I get the following warning:

@mankoff QGIS 3.16 on Ubuntu 20.04. QGIS is installed using qgis.org repos without using the Ubuntugis one. Opening a GRASS mapset/location and adding layers from it works ok.