[postgis-users] Ubuntu upgrade conflict

Richard Greenwood richard.greenwood at gmail.com
Mon Feb 3 06:04:06 PST 2020


On Sun, Feb 2, 2020 at 8:06 PM Regina Obe <lr at pcorp.us> wrote:

> I think apt upgrade tries to upgrade everything unless you mark some
> things as hold back.
>
>
>
> Which version of PostgreSQL/PostGIS are you running.  From looks of it,
> looks like you have both PostgreSQL 11 2.5  and PostgreSQL 11 3.0
>

I had installed postgres 11 and postgis 2.5 on a new AWS Ubuntu instance
about a year and a half ago and have done normal upgrades since. Below is
what I have now:

liblwgeom-2.5-0/bionic-pgdg,now 2.5.3+dfsg-3.pgdg18.04+1 amd64
[installed,automatic]
libsfcgal1/bionic-pgdg,now 1.3.5-5~pgdg18.04+1 amd64 [installed,automatic]
postgis/bionic-pgdg,now 3.0.0+dfsg-2~exp1.pgdg18.04+1 amd64 [installed]
postgis-doc/bionic-pgdg,now 3.0.0+dfsg-2~exp1.pgdg18.04+1 all
[installed,automatic]
postgresql-10-postgis-2.5-scripts/bionic-pgdg,now 2.5.3+dfsg-3.pgdg18.04+1
all [installed,automatic]
postgresql-11-postgis-2.5/bionic-pgdg,now 2.5.3+dfsg-3.pgdg18.04+1 amd64
[installed]
postgresql-11-postgis-3/bionic-pgdg,now 3.0.0+dfsg-2~exp1.pgdg18.04+1 amd64
[installed,automatic]
postgresql-11-postgis-3-scripts/bionic-pgdg,now
3.0.0+dfsg-2~exp1.pgdg18.04+1 all [installed,automatic]
postgresql-12-postgis-3/bionic-pgdg,now 3.0.0+dfsg-2~exp1.pgdg18.04+1 amd64
[installed,automatic]
postgresql-12-postgis-3-scripts/bionic-pgdg,now
3.0.0+dfsg-2~exp1.pgdg18.04+1 all [installed,automatic]

I assume the 'installed,automatic' is how I picked up postgis-3,
postgresql-12, etc.  I did 'apt remove postgresql-11-postgis-3-scripts
postgresql-11-postgis-3' and the problem is gone.

Between my laptop, desktop and server I have 3 pretty similar
ubuntu/postgres/postgis configurations but only the AWS one
had postgresql-11-postgis-3.

Thanks you for your help.

Rich






>  *From:* postgis-users [mailto:postgis-users-bounces at lists.osgeo.org] *On
> Behalf Of *Richard Greenwood
>
> *Sent:* Sunday, February 2, 2020 9:29 AM
> *To:* PostGIS Users Discussion <postgis-users at lists.osgeo.org>
> *Subject:* [postgis-users] Ubuntu upgrade conflict
>
>
>
> I am getting the error below when running 'apt upgrade' on a Ubuntu 18.04
> server. I'm not upgrading postgis versions or any, just basic system
> maintenance. Any ideas?
>
>
>
> (Reading database ... 156285 files and directories currently installed.)
> Preparing to unpack
> .../postgresql-11-postgis-2.5-scripts_2.5.3+dfsg-3.pgdg18.04+1_all.deb ...
> Unpacking postgresql-11-postgis-2.5-scripts (2.5.3+dfsg-3.pgdg18.04+1)
> over (2.5.3+dfsg-2.pgdg18.04+1) ...
> dpkg: error processing archive
> /var/cache/apt/archives/postgresql-11-postgis-2.5-scripts_2.5.3+dfsg-3.pgdg18.04+1_all.deb
> (--unpack):
>  trying to overwrite
> '/usr/share/postgresql/11/applications/shp2pgsql-gui.desktop', which is
> also in package postgresql-11-postgis-3-scripts
> 3.0.0+dfsg-2~exp1.pgdg18.04+1
> dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
> Errors were encountered while processing:
>
>  /var/cache/apt/archives/postgresql-11-postgis-2.5-scripts_2.5.3+dfsg-3.pgdg18.04+1_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
>
> Thanks
>
> --
>
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20200203/0cf73a06/attachment.html>


More information about the postgis-users mailing list