Score:0

re-install POSTGIS after server update to Ubuntu 22.04.1 LTS

cl flag

The server running Postgres + POSTGIS was upgraded to Ubuntu 22.04.1 LTS.

When I tried to run POSTGIS specific queries I got (e.g select * from my gis_table):

ERROR: could not access file "$libdir/postgis-3": No such file or directory

I recognized that the POSTGIS package was missing so installed it following this guide.
I added the repository and ran apt install postgis postgresql-12-postgis-3.
(I omitted installing Postgres as this is already the case)

Unfortunately after that I still get

ERROR: could not access file "$libdir/postgis-3": No such file or directory

There a multiple Postgres installations on the server (12,13,14,15). The database I am using is Postgres 12.
Maybe the Postgis package is not properly installed for Postgres 12?
How can I make sure Postgis is installed to the right Postgres installation?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.