Can';t在postgresql 11(Linux Mint 19.1肉桂版)中创建postgis扩展

Can';t在postgresql 11(Linux Mint 19.1肉桂版)中创建postgis扩展,postgis,postgresql-11,postgis-installation,Postgis,Postgresql 11,Postgis Installation,我尝试使用pgAdmin 4在Postgresql 11上运行postgis扩展,但在尝试创建扩展时,出现以下错误: Could not access file "$libdir/postgis-3": No such file or directory 我通过安装postgis sudo apt-get postgis* 但是缺少postgis脚本包括postgis.control,我无法找到postgis扩展 因此我安装了 sudo apt-get install postgresql-

我尝试使用pgAdmin 4在Postgresql 11上运行postgis扩展,但在尝试创建扩展时,出现以下错误:

Could not access file "$libdir/postgis-3": No such file or directory
我通过安装postgis

sudo apt-get postgis*
但是缺少
postgis脚本
包括
postgis.control
,我无法找到postgis扩展

因此我安装了

sudo apt-get install postgresql-11-postgis-3-scripts
现在它显示了
/usr/share/postgresql/11/
中的文件,当选择
Extensions>Create>extension
时,我可以在pgAdmin浏览器中选择postgis扩展名,但是,当尝试保存它时,会显示

Could not access file "$libdir/postgis-3": No such file or directory
我遵循了:但是我不能
更改扩展名
更新到3.0.0

它告诉我
扩展postgis不存在


我缺少什么?

尝试重新启动postgresql:

sudo service postgresql restart