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.
If you are using ubuntu
Enter in postgres interactive shell by using below command
sudo -u postgres psql \c database_name; ALTER EXTENSION postgis UPDATE TO "2.4.4"; SELECT PostGIS_Full_Version();
sudo -u postgres psql
\c database_name;
ALTER EXTENSION postgis UPDATE TO "2.4.4";
SELECT PostGIS_Full_Version();