This installation is based on Postgres Apt repository Installation steps for Postgres are defined here Installation steps for PostGIS are defined here Add keys to Apt sudo apt install curl ca-certificates gnupg sudo curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' sudo apt update Install Postgres with PostGIS sudo apt-get install postgresql-11 sudo apt install postgresql-11-postgis-2.5.2 sudo apt install postgresql-11-postgis-scripts