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

List:       postgis-users
Subject:    Re: [postgis-users] Ubuntu upgrade conflict
From:       Richard Greenwood <richard.greenwood () gmail ! com>
Date:       2020-02-03 14:04:06
Message-ID: CAHBySPY-AomFx8LipBEY-ZZtRfGzCZyHJHD+pc0wT0yJxbjmig () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sun, Feb 2, 2020 at 8:06 PM Regina Obe <lr@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@lists.osgeo.org] *On
> Behalf Of *Richard Greenwood
>
> *Sent:* Sunday, February 2, 2020 9:29 AM
> *To:* PostGIS Users Discussion <postgis-users@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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">On Sun, Feb 2, 2020 at 8:06 PM Regina Obe &lt;<a \
href="mailto:lr@pcorp.us">lr@pcorp.us</a>&gt; wrote:<br></div><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div \
class="gmail-m_-225248884942401990WordSection1"><p class="MsoNormal"><span \
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I think \
apt upgrade tries to upgrade everything unless you mark some things as hold \
back.<u></u><u></u></span></p><p class="MsoNormal"><span \
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u>  \
<u></u></span></p><p class="MsoNormal"><span \
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">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</span></p></div></div></blockquote><div><br></div><div>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:</div><div><br></div><div><font \
face="monospace" size="1">liblwgeom-2.5-0/bionic-pgdg,now 2.5.3+dfsg-3.pgdg18.04+1 \
amd64 [installed,automatic]<br>libsfcgal1/bionic-pgdg,now 1.3.5-5~pgdg18.04+1 amd64 \
[installed,automatic]<br>postgis/bionic-pgdg,now 3.0.0+dfsg-2~exp1.pgdg18.04+1 amd64 \
[installed]<br>postgis-doc/bionic-pgdg,now 3.0.0+dfsg-2~exp1.pgdg18.04+1 all \
[installed,automatic]<br>postgresql-10-postgis-2.5-scripts/bionic-pgdg,now \
2.5.3+dfsg-3.pgdg18.04+1 all \
[installed,automatic]<br>postgresql-11-postgis-2.5/bionic-pgdg,now \
2.5.3+dfsg-3.pgdg18.04+1 amd64 [installed]<br>postgresql-11-postgis-3/bionic-pgdg,now \
3.0.0+dfsg-2~exp1.pgdg18.04+1 amd64 \
[installed,automatic]<br>postgresql-11-postgis-3-scripts/bionic-pgdg,now \
3.0.0+dfsg-2~exp1.pgdg18.04+1 all \
[installed,automatic]<br>postgresql-12-postgis-3/bionic-pgdg,now \
3.0.0+dfsg-2~exp1.pgdg18.04+1 amd64 \
[installed,automatic]<br>postgresql-12-postgis-3-scripts/bionic-pgdg,now \
3.0.0+dfsg-2~exp1.pgdg18.04+1 all [installed,automatic]</font><br><br></div><div>I \
assume the &#39;installed,automatic&#39; is how I picked up postgis-3, postgresql-12, \
etc.   I did &#39;apt remove postgresql-11-postgis-3-scripts \
postgresql-11-postgis-3&#39; and the problem is gone.  \
<br></div><div><br></div><div>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.  </div><div><br></div><div>Thanks you for your \
help.</div><div><br></div><div>Rich</div><div><br></div><div><br></div><div><br></div><div><br></div><div> \
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px \
solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div \
class="gmail-m_-225248884942401990WordSection1"><p class="MsoNormal"><span \
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p \
class="MsoNormal"><span \
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u>  \
</span><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span \
style="font-size:11pt;font-family:Calibri,sans-serif"> postgis-users [mailto:<a \
href="mailto:postgis-users-bounces@lists.osgeo.org" \
target="_blank">postgis-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of \
</b>Richard Greenwood</span></p><p class="MsoNormal"><span \
style="font-size:11pt;font-family:Calibri,sans-serif"><b>Sent:</b> Sunday, February \
2, 2020 9:29 AM<br><b>To:</b> PostGIS Users Discussion &lt;<a \
href="mailto:postgis-users@lists.osgeo.org" \
target="_blank">postgis-users@lists.osgeo.org</a>&gt;<br><b>Subject:</b> \
[postgis-users] Ubuntu upgrade conflict<u></u><u></u></span></p><p \
class="MsoNormal"><u></u>  <u></u></p><div><p class="MsoNormal">I am getting the \
error below when running &#39;apt upgrade&#39; on a Ubuntu 18.04 server. I&#39;m not \
upgrading postgis versions or any, just basic system maintenance. Any \
ideas?<u></u><u></u></p><div><p class="MsoNormal"><u></u>  <u></u></p></div><div><p \
class="MsoNormal">(Reading database ... 156285 files and directories currently \
installed.)<br>Preparing to unpack \
.../postgresql-11-postgis-2.5-scripts_2.5.3+dfsg-3.pgdg18.04+1_all.deb \
...<br>Unpacking postgresql-11-postgis-2.5-scripts (2.5.3+dfsg-3.pgdg18.04+1) over \
(2.5.3+dfsg-2.pgdg18.04+1) ...<br>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):<br><span style="background:yellow">  trying to overwrite \
&#39;/usr/share/postgresql/11/applications/shp2pgsql-gui.desktop&#39;, which is also \
in package postgresql-11-postgis-3-scripts \
3.0.0+dfsg-2~exp1.pgdg18.04+1<br></span>dpkg-deb: error: paste subprocess was killed \
by signal (Broken pipe)<br>Errors were encountered while processing:<br>  \
/var/cache/apt/archives/postgresql-11-postgis-2.5-scripts_2.5.3+dfsg-3.pgdg18.04+1_all.deb<br>E: \
Sub-process /usr/bin/dpkg returned an error code (1)<u></u><u></u></p><div><p \
class="MsoNormal"><u></u>  <u></u></p></div><div><p \
class="MsoNormal">Thanks<u></u><u></u></p></div><p class="MsoNormal">-- \
<u></u><u></u></p><div><div><p class="MsoNormal">Richard W. Greenwood, PLS<br><a \
href="http://www.greenwoodmap.com" \
target="_blank">www.greenwoodmap.com</a><u></u><u></u></p></div></div></div></div></div></div>_______________________________________________<br>
 postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" \
target="_blank">postgis-users@lists.osgeo.org</a><br> <a \
href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div><br \
clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div \
dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" \
target="_blank">www.greenwoodmap.com</a></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users

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

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