When I am in my postgres db and tried to create an extension for my db, I get this error
ERROR: could not open extension control file \"/usr/share/postgresql/9.5/
You should use the following command:
sudo apt-get install postgresql-9.6-postgis-scripts
Use the following command to get the postgis.control in your 9.5 version directory:
sudo apt install postgis postgresql-9.5-postgis-2.3