1
votes

In ubuntu 16.04 when I tried to install postgis with using apt-get install postgis postgresql-9.3-postgis-2.1 this command, it installed postgresql 9.6 and postgis-9.6 version. And when tried to create extension it gives error ERROR: could not open extension control file "/usr/share/postgresql/9.3/extension/postgis.control": No such file or directory.

postgres@db:~$ psql
psql (9.6.3, server 9.3.17)
Type "help" for help.
1
This is not a programming questions. Try here askubuntu.com or here gis.stackexchange.comTom-db

1 Answers

0
votes

It seems that you didn't use sudo before apt-get which is causing issue with write permissions of your directory.

To prevent this error remove the installed version and reinstall it with sudo like,

sudo apt-get install postgis postgresql-9.3-postgis-2.1

Read more related with your issue and follow the steps to install specific version.