ERROR: could not open extension control file “/usr/share/postgresql/13/extension/postgis.control”: No such file or directory

The question:

Ubuntu 21.10 , PostgreSQL 13.

ERROR: could not open extension control file "/usr/share/postgresql/13/extension/postgis.control": No such file or directory

I catch error

ERROR: could not open extension control file "/usr/share/postgresql/13/extension/postgis.control": No such file or directory

how to fix it?

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

sudo apt install postgis postgresql-13-postgis-3-scripts
create extension postgis; 


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment