<div dir="ltr">Your SE question inspired me to write up a post which has some remedies in the final section<div><br></div><div><a href="http://blog.cleverelephant.ca/2016/08/postgis-upgrade.html">http://blog.cleverelephant.ca/2016/08/postgis-upgrade.html</a><br></div><div><br></div><div>P</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 9:08 PM, Lee Hachadoorian <span dir="ltr"><<a href="mailto:Lee.Hachadoorian+L@gmail.com" target="_blank">Lee.Hachadoorian+L@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Running PostGIS on PostgreSQL 9.3 Linux Mint 17.2 using<br>
ubuntugis-unstable PPA. I had a working PostGIS 2.1.4. I recently apt<br>
upgraded to PostGIS 2.2.2. I then tried:<br>
<br>
    ALTER EXTENSION postgis UPDATE TO "2.2.2";<br>
<br>
However this resulted in:<br>
<br>
    ERROR:  could not access file "$libdir/postgis-2.2": No such file<br>
or directory<br>
<br>
I posted about this to <a href="http://GIS.SE" rel="noreferrer" target="_blank">GIS.SE</a><br>
(<a href="http://gis.stackexchange.com/questions/206412/how-can-i-do-a-soft-upgrade-from-postgis-2-1-4-to-2-2-2" rel="noreferrer" target="_blank">http://gis.stackexchange.com/<wbr>questions/206412/how-can-i-do-<wbr>a-soft-upgrade-from-postgis-2-<wbr>1-4-to-2-2-2</a>).<br>
Paul Ramsey responded and helped me figure out that something went<br>
wrong with upgrade. (Thanks Paul!) At this point, I need to figure out<br>
whether I can salvage the installation. I wanted to avoid dump and<br>
restore, but at this point even dump is not working because of<br>
nonworking PostGIS. I'm moving this to postgis-users as the<br>
back-and-forth is more appropriate to a ML than <a href="http://GIS.SE" rel="noreferrer" target="_blank">GIS.SE</a><br>
<br>
I'm running into dependency issues. I was *not* able to downgrade<br>
because PostGIS 2.1 depends on GDAL 1.x, and I have already upgraded<br>
to GDAL 2.0. When I looked to see what would be involved in<br>
downgrading GDAL, apt wants to uninstall QGIS 2.16 and a bunch of<br>
other stuff.<br>
<br>
I apt uninstalled PostGIS 2.2 and reinstalled PostGIS 2.2. That<br>
database still thinks it's on PostGIS 2.1, which is missing, and<br>
CREATE EXTENSION fails (no control file) and ALTER EXTENSION fails as<br>
previously.<br>
<br>
Best,<br>
--Lee<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
<br>
--<br>
Lee Hachadoorian<br>
Asst Professor of Geography, Dartmouth College<br>
<a href="http://geospatial.commons.gc.cuny.edu/" rel="noreferrer" target="_blank">http://geospatial.commons.gc.<wbr>cuny.edu/</a><br>
______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a></font></span></blockquote></div><br></div>