3

I installed Qgis 2.2 this morning from the ubuntugis repository for ubuntu precise. Qgis works great, except that all the common projections have been deleted. So, I am a Little bit having a heart attack.

It Looks, from the install log, like what happened is this:

Synchronizing CRS database with GDAL/PROJ definitions.
Load srs db from: /usr/share/qgis/resources/srs.db
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
Loading epsg.wkt
0 WKTs loaded
CRS update (inserted:0 updated:0 deleted:3631 errors:0)
No CRS updates were necessary.
qgis-common (2.2.0-1~precise1) wird eingerichtet.

This log is printed if I remove qgis and just install qgis-providers.

apt-get install --reinstall qgis doesn't fix it.
Even worse, I did an apt-get remove purge and went back to the qgis.org debian main, which installed dufour. Projections were still wiped, and I got the same install log from qgis-provider-commons. So, I can't get functional qgis back at all.

Is there any dependency I should be reinstalling to make this all go away, or a way I can explicitly update the CRS lists?

Thanks!

10
  • 2
    I guess you are the first one using QGIS 2.2. This could be worth a bug report at hub.qgis.org/projects/quantum-gis/issues?set_filter=1
    – AndreJ
    Feb 24, 2014 at 12:05
  • I did, although I am nervous about reporting a bug when I don't know why it happened. Feb 24, 2014 at 14:04
  • Do you use ubuntugis or ubuntugis-unstable? I updated from 2.0 to 2.2 using ubuntugis-unstable without running into this issue.
    – underdark
    Feb 24, 2014 at 15:37
  • Similar issues in previous version gis.stackexchange.com/questions/80270/…
    – underdark
    Feb 24, 2014 at 15:39
  • I used ubuntugis-unstable. Same thing. My setup is not particularly wacky. I have grass and saga and gdal and that's about it. Feb 24, 2014 at 15:54

1 Answer 1

3

In order to fix corruption of the projection database, as I had in this case, copy srs.db from an unaffected installation. This is the database where all projections are stored. On Linux, this can be found under /usr/share/qgis/resources. On windows, this will be under Osgeo4w/apps/qgis/resources. It doesn't matter if the unaffected computer is windows and the affected computer is Linux. The files are portable. if you copy the file over and restart qgis, the projections will be there. This is not an answer to why the installation failed, but it is what will save it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.