[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-user
Subject:    Re: [Qgis-user] Error: ERROR: could not access file "$libdir/postgis-2.4": No such file or directory
From:       chris hermansen <clhermansen () gmail ! com>
Date:       2020-05-29 18:53:35
Message-ID: CACc2_6-3zDp4XiATNZmKhWuVQfGt_wpoGgmTPk56QxfANLguXg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Marie and list;

On Fri, May 29, 2020 at 7:09 AM Marie Anna Baovola <marieannabvl@gmail.com>
wrote:

> Thank you for replying,
>
> In fact, I can install the PostgreSQL/PostGIS, but I couldn't install
> QGIS. I have those error while executing the "sudo apt-get install qgis
> qgis-plugin-grass":
>
> *******
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer
> required:
>   liblwgeom-2.4-0 libprotobuf-c1
> Use 'sudo apt autoremove' to remove them.
> The following additional packages will be installed:
>   gdal-bin gdal-data grass-core libcfitsio5 libgdal26 libgeotiff5
> libjs-leaflet liblaszip8 libpdal-base9 libpdal-plugin-faux
>   libpdal-plugin-icebridge libpdal-plugin-pgpointcloud
> libpdal-plugin-python libpdal-plugin-sqlite libpdal-plugins libpdal-util9
> libqca-qt5-2
>   libqca-qt5-2-plugins libqgis-3d3.10.5 libqgis-analysis3.10.5
> libqgis-app3.10.5 libqgis-core3.10.5 libqgis-customwidgets libqgis-gui3.10.5
>   libqgis-native3.10.5 libqgis-server3.10.5 libqgisgrass7-3.10.5
> libqgispython3.10.5 libqt53danimation5 libqt53dcore5 libqt53dextras5
>   libqt53dinput5 libqt53dlogic5 libqt53dquickscene2d5 libqt53drender5
> libqt5concurrent5 libqt5designercomponents5 libqt5keychain1
>   libqt5quickwidgets5 libqt5serialport5 libqwt-qt5-6 libspatialindex4v5
> libsqlite3-mod-spatialite python3-future python3-gdal python3-owslib
>   python3-plotly python3-pyproj python3-pyqt5.qsci python3-pyqt5.qtsql
> python3-qgis python3-qgis-common qgis-common qgis-plugin-grass-common
>   qgis-provider-grass qgis-providers qgis-providers-common
> qt3d-assimpsceneimport-plugin qt3d-defaultgeometryloader-plugin
>   qt3d-gltfsceneio-plugin qt3d-scene2d-plugin qt5-assistant
> qttools5-dev-tools
> Suggested packages:
>   libgdal-grass grass-dev grass-gui e00compr avce00 gpsbabel gpstrans
> python3-rpy2 python3-termcolor geotiff-bin libgeotiff-epsg
>   python-future-doc owslib-doc ipython3 python3-pandas python3-scipy
> otb-qgis saga qt5-doc
>
> *The following packages will be REMOVED:  libgdal20 postgis
> postgresql-10-postgis-2.4 postgresql-9.5-postgis-2.4 python-gdal*
> The following NEW packages will be installed:
>   grass-core libcfitsio5 libgdal26 libgeotiff5 libjs-leaflet liblaszip8
> libpdal-base9 libpdal-plugin-faux libpdal-plugin-icebridge
>   libpdal-plugin-pgpointcloud libpdal-plugin-python libpdal-plugin-sqlite
> libpdal-plugins libpdal-util9 libqca-qt5-2 libqca-qt5-2-plugins
>   libqgis-3d3.10.5 libqgis-analysis3.10.5 libqgis-app3.10.5
> libqgis-core3.10.5 libqgis-customwidgets libqgis-gui3.10.5
> libqgis-native3.10.5
>   libqgis-server3.10.5 libqgisgrass7-3.10.5 libqgispython3.10.5
> libqt53danimation5 libqt53dcore5 libqt53dextras5 libqt53dinput5
> libqt53dlogic5
>   libqt53dquickscene2d5 libqt53drender5 libqt5concurrent5
> libqt5designercomponents5 libqt5keychain1 libqt5quickwidgets5
> libqt5serialport5
>   libqwt-qt5-6 libspatialindex4v5 libsqlite3-mod-spatialite python3-future
> python3-gdal python3-owslib python3-plotly python3-pyproj
>   python3-pyqt5.qsci python3-pyqt5.qtsql python3-qgis python3-qgis-common
> qgis qgis-common qgis-plugin-grass qgis-plugin-grass-common
>   qgis-provider-grass qgis-providers qgis-providers-common
> qt3d-assimpsceneimport-plugin qt3d-defaultgeometryloader-plugin
>   qt3d-gltfsceneio-plugin qt3d-scene2d-plugin qt5-assistant
> qttools5-dev-tools
> The following packages will be upgraded:
>   gdal-bin gdal-data
> 2 upgraded, 63 newly installed, 5 to remove and 456 not upgraded.
> Need to get 120 MB of archives.
> After this operation, 372 MB of additional disk space will be used.
> Do you want to continue? [Y/n]
>

There aren't any error messages presented in the output above.

When I log into an Ubuntu 18.04 server that I use, I see the version of
QGIS provided with the system is 2.18.17 and the version of PostGIS is
2.4.3.

Your apt output shows that you're trying to install QGIS version 3.10.5,
which tells us that you have added a new non-Ubuntu repository that
contains that newer version.

The message about removing libgdal20 postgis postgresql-10-postgis-2.4
postgresql-9.5-postgis-2.4 python-gdal tells us that the QGIS version you
are trying to install is not compatible with those versions of libgdal,
postgis etc.

Therefore I think you need to find a repository or set of repositories that
contains the version of QGIS that you want (3.10.5 I guess) and the other
necessary software libgdal, postgis, etc.

Look here: https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

You may need both https://qgis.org/ubuntu/ and
https://qgis.org/ubuntugis-ltr or possibly just the latter.

********
>
> I use Ubuntu 18.04. I have GDAL 2.4.2, released 2019/06/28.
>
> I've already tried all of the existed repository but no effect.
>
> Thank you for your advice.
>
> Best regards,
>
> Baovola
>
> On Sat, May 9, 2020 at 4:16 PM chris hermansen <clhermansen@gmail.com>
> wrote:
>
>> Marie Anne and list,
>>
>> On Fri, May 8, 2020, 23:53 Marie Anna Baovola <marieannabvl@gmail.com>
>> wrote:
>>
>>> Hello everyone,
>>>
>>> Anyone could help me how to fix my error in my object, please?
>>> I have installed the QGIS 3.10 and it seems that my PostgreSQL is
>>> upgraded into 10.12. I use Ubuntu 18.04 bionic.
>>>
>>> I cannot reinstall the extension Postgis.
>>>
>>
>>
>> How did you install QGIS and PostgreSQL? With apt?
>>
>> You should be able to use the same tool to install postgis. For example
>> something like
>>
>> sudo apt install postgis
>>
>> at the command line.
>>
>> If you used some other system tool to install QGIS and PostgreSQL, like
>> synaptic, you can also use that to install postgis.
>>
>> Chris
>>
>
>
> --
> BAOVOLA Marie Anna
>
>
>

-- 
Chris Hermansen  · clhermansen "at" gmail "dot" com

C'est ma faƧon de parler.

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">Marie and list;<br></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 29, 2020 at 7:09 AM \
Marie Anna Baovola &lt;<a \
href="mailto:marieannabvl@gmail.com">marieannabvl@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div \
dir="ltr"><div>Thank you for replying,</div><div><br></div><div>In fact, I can \
install the PostgreSQL/PostGIS, but I couldn&#39;t install QGIS. I have those error \
while executing the &quot;<span>sudo</span> \
<span>apt</span><span>-</span><span>get</span> <span>install</span> <span>qgis</span> \
<span>qgis</span><span>-</span><span>plugin</span><span>-</span><span>grass&quot;:</sp \
an></div><div><span><br></span></div><div><span>*******<br></span></div><div><span>Reading \
package lists... Done<br>Building dependency tree             <br>Reading state \
information... Done<br>The following packages were automatically installed and are no \
longer required:<br>   liblwgeom-2.4-0 libprotobuf-c1<br>Use &#39;sudo apt \
autoremove&#39; to remove them.<br>The following additional packages will be \
installed:<br>   gdal-bin gdal-data grass-core libcfitsio5 libgdal26 libgeotiff5 \
libjs-leaflet liblaszip8 libpdal-base9 libpdal-plugin-faux<br>    \
libpdal-plugin-icebridge libpdal-plugin-pgpointcloud  libpdal-plugin-python \
libpdal-plugin-sqlite libpdal-plugins  libpdal-util9 libqca-qt5-2<br>   \
libqca-qt5-2-plugins libqgis-3d3.10.5  libqgis-analysis3.10.5 libqgis-app3.10.5 \
libqgis-core3.10.5  libqgis-customwidgets libqgis-gui3.10.5<br>   \
libqgis-native3.10.5  libqgis-server3.10.5 libqgisgrass7-3.10.5 libqgispython3.10.5 
libqt53danimation5 libqt53dcore5 libqt53dextras5<br>   libqt53dinput5 
libqt53dlogic5 libqt53dquickscene2d5 libqt53drender5 libqt5concurrent5 
libqt5designercomponents5 libqt5keychain1<br>   libqt5quickwidgets5 
libqt5serialport5 libqwt-qt5-6 libspatialindex4v5 
libsqlite3-mod-spatialite python3-future python3-gdal python3-owslib<br>  
 python3-plotly python3-pyproj python3-pyqt5.qsci python3-pyqt5.qtsql 
python3-qgis python3-qgis-common qgis-common qgis-plugin-grass-common<br>   \
qgis-provider-grass qgis-providers qgis-providers-common \
qt3d-assimpsceneimport-plugin qt3d-defaultgeometryloader-plugin<br>   \
qt3d-gltfsceneio-plugin qt3d-scene2d-plugin qt5-assistant \
qttools5-dev-tools<br>Suggested packages:<br>   libgdal-grass grass-dev grass-gui \
e00compr avce00 gpsbabel gpstrans python3-rpy2 python3-termcolor geotiff-bin \
libgeotiff-epsg<br>   python-future-doc owslib-doc ipython3 python3-pandas \
python3-scipy otb-qgis saga qt5-doc<br><b>The following packages will be REMOVED:<br> \
libgdal20 postgis postgresql-10-postgis-2.4 postgresql-9.5-postgis-2.4 \
python-gdal</b><br>The following NEW packages will be installed:<br>    grass-core \
libcfitsio5 libgdal26 libgeotiff5 libjs-leaflet liblaszip8  libpdal-base9 \
libpdal-plugin-faux libpdal-plugin-icebridge<br>    libpdal-plugin-pgpointcloud \
libpdal-plugin-python libpdal-plugin-sqlite  libpdal-plugins libpdal-util9 \
libqca-qt5-2 libqca-qt5-2-plugins<br>    libqgis-3d3.10.5 libqgis-analysis3.10.5 \
libqgis-app3.10.5  libqgis-core3.10.5 libqgis-customwidgets libqgis-gui3.10.5 
libqgis-native3.10.5<br>   libqgis-server3.10.5 libqgisgrass7-3.10.5 
libqgispython3.10.5 libqt53danimation5 libqt53dcore5 libqt53dextras5 
libqt53dinput5 libqt53dlogic5<br>   libqt53dquickscene2d5 libqt53drender5
 libqt5concurrent5 libqt5designercomponents5 libqt5keychain1 
libqt5quickwidgets5 libqt5serialport5<br>   libqwt-qt5-6 
libspatialindex4v5 libsqlite3-mod-spatialite python3-future python3-gdal
 python3-owslib python3-plotly python3-pyproj<br>   python3-pyqt5.qsci 
python3-pyqt5.qtsql python3-qgis python3-qgis-common qgis qgis-common 
qgis-plugin-grass qgis-plugin-grass-common<br>   qgis-provider-grass qgis-providers \
qgis-providers-common qt3d-assimpsceneimport-plugin \
qt3d-defaultgeometryloader-plugin<br>   qt3d-gltfsceneio-plugin qt3d-scene2d-plugin \
qt5-assistant qttools5-dev-tools<br>The following packages will be upgraded:<br>   \
gdal-bin gdal-data<br>2 upgraded, 63 newly installed, 5 to remove and 456 not \
upgraded.<br>Need to get 120 MB of archives.<br>After this operation, 372 MB of \
additional disk space will be used.<br>Do you want to continue? [Y/n] \
</span></div></div></blockquote><div><br></div><div>There aren&#39;t any error \
messages presented in the output above. <br></div><div><br></div><div></div><div>When \
I log into an Ubuntu 18.04 server that I use, I see the version of QGIS provided with \
the system is 2.18.17 and the version of PostGIS is \
2.4.3.</div><div><br></div><div>Your apt output shows that you&#39;re trying to \
install QGIS version 3.10.5, which tells us that you have added a new non-Ubuntu \
repository that contains that newer version.</div><div><br></div><div>The message \
about removing libgdal20 postgis postgresql-10-postgis-2.4 postgresql-9.5-postgis-2.4 \
python-gdal tells us that the QGIS version you are trying to install is not \
compatible with those versions of libgdal, postgis \
etc.<b><br></b></div><div><br></div><div>Therefore I think you need to find a \
repository or set of repositories that contains the version of QGIS that you want \
(3.10.5 I guess) and the other necessary software libgdal, postgis, \
etc.</div><div><br></div><div>Look here: <a \
href="https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu">https://qgis. \
org/en/site/forusers/alldownloads.html#debian-ubuntu</a></div><div><br></div><div>You \
may need both <a href="https://qgis.org/ubuntu/">https://qgis.org/ubuntu/</a> and <a \
href="https://qgis.org/ubuntugis-ltr">https://qgis.org/ubuntugis-ltr</a> or possibly \
just the latter.<br></div><div><br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div \
dir="ltr"><div><span></span></div><div><span>********<br></span></div><div><span><br></span></div><div><span>I \
use Ubuntu 18.04. I have GDAL 2.4.2, released \
2019/06/28.</span></div><div><span><br></span></div><div><span>I&#39;ve already tried \
all of the existed repository but no \
effect.<br></span></div><div><span><br></span></div><div><span>Thank you for your \
advice.</span></div><div><span><br></span></div><div><span>Best \
regards,</span></div><div><span><br></span></div><div><span>Baovola<br></span></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 9, 2020 at 4:16 PM \
chris hermansen &lt;<a href="mailto:clhermansen@gmail.com" \
target="_blank">clhermansen@gmail.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Marie Anne and \
list,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May \
8, 2020, 23:53 Marie Anna Baovola &lt;<a href="mailto:marieannabvl@gmail.com" \
rel="noreferrer" target="_blank">marieannabvl@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div \
dir="ltr"><div>Hello everyone,</div><div><br></div><div>Anyone could help me how to \
fix my error in my object, please?</div><div>I have installed the QGIS 3.10 and it \
seems that my PostgreSQL is upgraded into 10.12. I use Ubuntu 18.04 \
bionic.</div><div><br></div><div>I cannot reinstall the extension \
Postgis.</div></div></blockquote></div></div><div dir="auto"><br></div><div \
dir="auto"><br></div><div dir="auto">How did you install QGIS and PostgreSQL? With \
apt?</div><div dir="auto"><br></div><div dir="auto">You should be able to use the \
same tool to install postgis. For example something like</div><div \
dir="auto"><br></div><div dir="auto">sudo apt install postgis</div><div \
dir="auto"><br></div><div dir="auto">at the command line.</div><div \
dir="auto"><br></div><div dir="auto">If you used some other system tool to install \
QGIS and PostgreSQL, like synaptic, you can also use that to install \
postgis.</div><div dir="auto"><br></div><div dir="auto">Chris</div><div \
dir="auto"><div class="gmail_quote"></div></div></div> </blockquote></div><br \
clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div>BAOVOLA Marie Anna<br><br></div><p \
style="margin-bottom:12pt"><br></p></div></div></div></div></div></div></div></div> \
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" \
class="gmail_signature"><div dir="ltr">Chris Hermansen  · clhermansen &quot;at&quot; \
gmail &quot;dot&quot; com<br><br>C&#39;est ma faƧon de parler.</div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic