ERROR: could not open extension control file "C:/Program Files/PostgreSQL/12/share/extension/pgagent.control": No such file or directory code example
Example: ERROR: could not open extension control file "/usr/share/postgresql/10/extension/postgis.control": No such file or directory
sudo apt install postgis postgresql-xx-postgis-x