[Qgis-user] Install Postgresql and Postgis

Jorge Gustavo Rocha jgr at geomaster.pt
Tue Feb 9 03:43:06 PST 2021


Hi Nick,

I do the following in Ubuntu 20.04:

sudo apt-get install curl ca-certificates gnupg
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
sudo apt install postgresql postgresql-13-postgis-3
postgresql-13-postgis-3-scripts
sudo apt install --no-install-recommends postgis
sudo pg_ctlcluster 13 main start

Regards,

Jorge

Às 11:35 de 09/02/21, Nick Hopton escreveu:
> Ubuntu 20.04, QGIS 3.16.3.
>
> I'm having problems installing Postgres and Postgis, the most recent version
> of the manual I can find says:
>
> $ sudo apt install postgis
> $ sudo apt install postgresql-9.1-postgis
>
> This doesn't work any more, Postgis installs but Postgres doesn't, I think
> the relevant file is missing from the repository.
>
> I'm stuck here, can anyone help?
>
> Regards,
> Nick.
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 	
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*jgr at geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/f250591f/attachment-0001.html>


More information about the Qgis-user mailing list