I guess this is a known issue but since I have used a script that removed my postgresql-9.4-postgis-2.1, I\'m now unable to get rid of this SQL error under Debian.
First run (as postgres administrator)
ALTER EXTENSION postgis UPDATE;
If this returns successfully, then check what version you have
SELECT PostGIS_Full_Version();
If however, the server returns that it cannot find the extension postgis, then run
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;
ALTER EXTENSION postgis UPDATE;
and again check by running
SELECT PostGIS_Full_Version();