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!

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, privacy policy and cookie policy

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