Processed: Re: Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2019-07-19 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> close 912140 1:6.2.0~rc1-1
Bug #912140 [libreoffice-base,libreoffice-common] 
libreoffice-base,libreoffice-common: trying to overwrite 
'/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package 
libreoffice-{base,common} 1:5.2.7-1+deb9u3
Marked as fixed in versions libreoffice/1:6.2.0~rc1-1.
Bug #912140 [libreoffice-base,libreoffice-common] 
libreoffice-base,libreoffice-common: trying to overwrite 
'/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package 
libreoffice-{base,common} 1:5.2.7-1+deb9u3
Marked Bug as done
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
912140: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912140
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2019-07-19 Thread Rene Engelhard
close 912140 1:6.2.0~rc1-1
thanks

Hi,

On Fri, Jul 19, 2019 at 09:51:40PM +0200, Axel Beckert wrote:
> Rene Engelhard wrote:
> > On Sun, Nov 18, 2018 at 07:11:03PM +0100, Rene Engelhard wrote:
> > > But so we can remove --package $DPKG_MAINTSCRIPT_PACKAGE without a risk 
> > > anyway:
> > > dpkg   | 1.16.18   | oldoldstable   | source, amd64, armel, 
> > > armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, 
> > > s390, s390x, sparc
> > > (or at least it wouldn't be worse than before.)
> > 
> > Done for in git (for sid, whevever this gets uploaded):
> > https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/commit/45af0362e3471c52783a0a6a4b5b384a32d013ce
> 
> In the meanwhile there has been an upload to Debian Unstable after the
> Buster release, but this bug report hasn't been closed by it. Was it

one? gazillions since this bug was reported. Even various since

libreoffice (1:6.2.0~rc1-1) experimental; urgency=medium

  * New upstream release candidate
- show partial signatures even if cert validation fails
  (CERT-Bund#2018100828000257)

  * debian/patches/aarch64-temporarily-disable-testgetCaughtException.diff:
as name says; the test is new in 6.2, never worked on arm64 (so no
regression) and the other, bigger tests (junit, uicheck) work fine.
  * debian/patches/patches/fix-build-with-poppler-0.71.diff: one more patch
for poppler 0.71 (from master) (closes: #915726)

  * debian/libreoffice-base.{postrm,preinst}.in: remove manual
--package $DPKG_MAINTSCRIPT_PACKAGE, since dpkg-divert defaults to it
since 1.16.0 anyway if not specified (see #912140).
  * debian/control.in: update -core versioned Breaks: to -kde5, not -kde, thanks
Julien Cristau 
  * debian/libreoffice-mysql-connector.maintscript: add, thanks Andreas Beckmann
(closes: #915019)
  * debian/rules:
- remove LD_LIBRARY_PATH setting for dh_shlibdeps and use (more) -l's
- fix running the odk/build-examples* tests on _all builds
- disable gdrive stuff. chromium isn't in buster anymore and gdrive didn't
  work with chromiums id/secret anyway) (closes: #909152)

  * merge from Ubuntu:
[ Evangelos Foutras ]
- poppler-fix-build-0-70.patch: fix build failure with poppler >= 0.70

 -- Rene Engelhard   Thu, 20 Dec 2018 06:41:55 +

> just a forgotten "Closes:" or was the commit not included?

Obviously changelog reading helps. Reading the bug to the end, too

The whole thing is included but since it's not sure but a needed fix anyway...

And this bug was tagged help since 8 months with no comment or any offer
for anything, so it can't be that important. And it is a upgrade to
inside now oldstable.

And since it it marked as affecting stretch only it is irrelevant for anything
else and also appears so...

> P.S.: I got mail from someone who ran into the exactly same issue.
> Interestingly it was on the same device model, so while there seems
> definitely some quoting missing, this issue so far only showed up
> twice and both times on Gemini PDA running Debian. Which gives more
> ground for the suspicion that one of the images for Debian on the
> Gemini PDA has a broken diversions state file.

Then they need to fix their broken stuff and this bug closed. (and
actually never have been opened.)

I am ignoring this "bug" for all matters. If you say it can be closed,
fine :-)

Regards,

Rene



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2019-07-19 Thread Axel Beckert
Hi Rene,

Rene Engelhard wrote:
> On Sun, Nov 18, 2018 at 07:11:03PM +0100, Rene Engelhard wrote:
> > But so we can remove --package $DPKG_MAINTSCRIPT_PACKAGE without a risk 
> > anyway:
> > dpkg   | 1.16.18   | oldoldstable   | source, amd64, armel, 
> > armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, 
> > s390, s390x, sparc
> > (or at least it wouldn't be worse than before.)
> 
> Done for in git (for sid, whevever this gets uploaded):
> https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/commit/45af0362e3471c52783a0a6a4b5b384a32d013ce

In the meanwhile there has been an upload to Debian Unstable after the
Buster release, but this bug report hasn't been closed by it. Was it
just a forgotten "Closes:" or was the commit not included?

P.S.: I got mail from someone who ran into the exactly same issue.
Interestingly it was on the same device model, so while there seems
definitely some quoting missing, this issue so far only showed up
twice and both times on Gemini PDA running Debian. Which gives more
ground for the suspicion that one of the images for Debian on the
Gemini PDA has a broken diversions state file.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-11-18 Thread Rene Engelhard
On Sun, Nov 18, 2018 at 07:11:03PM +0100, Rene Engelhard wrote:
> But so we can remove --package $DPKG_MAINTSCRIPT_PACKAGE without a risk 
> anyway:
> dpkg   | 1.16.18   | oldoldstable   | source, amd64, armel, 
> armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, 
> s390, s390x, sparc
> (or at least it wouldn't be worse than before.)

Done for in git (for sid, whevever this gets uploaded):
https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/commit/45af0362e3471c52783a0a6a4b5b384a32d013ce

Regards,
  
Rene



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-11-18 Thread Rene Engelhard
Hi again,

On Sun, Nov 18, 2018 at 01:54:20PM +0100, Rene Engelhard wrote:
> 
>dpkg-divert --package $DPKG_MAINTSCRIPT_PACKAGE --add --rename \
> 
> is the call. So indeed, if $DPKG_MAINTSCRIPT_PACKAGE was empty... Now
> Good point.
> the question is why that happens Now the question is why that happens...

While looking for DPKG_MAINTSCRIPT_PACKAGE in dpkgs changelog I saw

dpkg (1.16.0) unstable; urgency=low

  [ Guillem Jover ]
  * Use DPKG_MAINTSCRIPT_PACKAGE environment variable as package name on
dpkg-divert when no --package or --local options have been specified.
[...]

That doesn't explain why it wasn't set... TTBOMK dpkg sets it?

  Internal environment
[...]
   DPKG_MAINTSCRIPT_PACKAGE
  Defined by dpkg on the maintainer script environment to the 
(non-arch-qualified) package name being handled (since dpkg 1.14.17).
[...]

(man dpkg)

But so we can remove --package $DPKG_MAINTSCRIPT_PACKAGE without a risk anyway:
dpkg   | 1.16.18   | oldoldstable   | source, amd64, armel, armhf, 
i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, 
sparc
(or at least it wouldn't be worse than before.)
or even write the package name out, as we know it...

Now that means we just need to fix eventually broken configurations "-add", 
though
I am not sure we should even attempt to do it in maintainer scripts and not let 
the
local admin do it.

Regards,
 
Rene



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-11-18 Thread Rene Engelhard
Hi,

On Mon, Oct 29, 2018 at 02:00:37PM +0100, Axel Beckert wrote:
> Axel Beckert wrote:
> > When trying to fix this manually using "dpkg --purge --force-depends"
> > to later use "apt install -f", libreoffice-base failed to purge due to
> > some (seemingly broken) diversion. Here's my next try after
> > libreoffice-common was already successfully purged:
> > 
> > root@localhost:~# dpkg --purge --force-depends libreoffice-base 
> >   
> > dpkg: libreoffice-base: dependency problems, but removing anyway as you 
> > requested:
> >  libreoffice-report-builder-bin depends on libreoffice-base.
> >  libreoffice depends on libreoffice-base.
> > 
> > (Reading database ... 63690 files and directories currently installed.)
> > Removing libreoffice-base (1:5.2.7-1+deb9u4) ...
> > dpkg-divert: error: mismatch on package
> >   when removing 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc 
> > to /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base'
> >   found 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to 
> > /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by --add'
> 
> Please note the "--add" in here.
> 
> In /var/lib/dpkg/diversions, the according entry had "--add" listed as
> package name. I fixed the issue by replacing "--add" with
> "libreoffice-base" and then the package could be purged.
> 
> So if there never was a dpkg-divert call in the libreoffice maintainer
> scripts that was so broken that "--add" had been parsed as package
> name, feel free to close this as locally misconfigured system. (I
> though can imagine that by e.g. missing quotes around a shell
> variable, this could happen if the variable with the package name was
> empty for some reason.

Good point.

   dpkg-divert --package $DPKG_MAINTSCRIPT_PACKAGE --add --rename \

is the call. So indeed, if $DPKG_MAINTSCRIPT_PACKAGE was empty... Now
the question is why that happens Now the question is why that happens...

Regards,

Rene



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-10-29 Thread Axel Beckert
Hi again,

Axel Beckert wrote:
> P.S.: I have no idea about the history of that installation. It is
> likely installed by a non-official image tailored for that hardware.

Those images likely come from
https://support.planetcom.co.uk/download/LinuxFirmware/LinuxFirmware.html

I though don't know which of the images with "debian" was used.
Probably one of the debian_sailfishos*.zip images.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-10-29 Thread Axel Beckert
Hi again,

Axel Beckert wrote:
> When trying to fix this manually using "dpkg --purge --force-depends"
> to later use "apt install -f", libreoffice-base failed to purge due to
> some (seemingly broken) diversion. Here's my next try after
> libreoffice-common was already successfully purged:
> 
> root@localhost:~# dpkg --purge --force-depends libreoffice-base   
> 
> dpkg: libreoffice-base: dependency problems, but removing anyway as you 
> requested:
>  libreoffice-report-builder-bin depends on libreoffice-base.
>  libreoffice depends on libreoffice-base.
> 
> (Reading database ... 63690 files and directories currently installed.)
> Removing libreoffice-base (1:5.2.7-1+deb9u4) ...
> dpkg-divert: error: mismatch on package
>   when removing 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to 
> /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base'
>   found 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to 
> /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by --add'

Please note the "--add" in here.

In /var/lib/dpkg/diversions, the according entry had "--add" listed as
package name. I fixed the issue by replacing "--add" with
"libreoffice-base" and then the package could be purged.

So if there never was a dpkg-divert call in the libreoffice maintainer
scripts that was so broken that "--add" had been parsed as package
name, feel free to close this as locally misconfigured system. (I
though can imagine that by e.g. missing quotes around a shell
variable, this could happen if the variable with the package name was
empty for some reason.

P.S.: I have no idea about the history of that installation. It is
likely installed by a non-official image tailored for that hardware.
But since that hardware is only available since May 2018, I doubt that
any bug present in Testing/Unstable in 2014 could have been the cause
for this. IIRC, back then, the arm64 architecture even didn't exist at
all, at least the first arm64 build of firefox as well as chromium was
in 2016. So I doubt that issue from 2014 can be the cause for this.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-10-28 Thread Rene Engelhard
Hi,

On Sun, Oct 28, 2018 at 03:44:59PM +0100, Axel Beckert wrote:
> root@localhost:~# dpkg --purge --force-depends libreoffice-base   
> 
> dpkg: libreoffice-base: dependency problems, but removing anyway as you 
> requested:
>  libreoffice-report-builder-bin depends on libreoffice-base.
>  libreoffice depends on libreoffice-base.
> 
> (Reading database ... 63690 files and directories currently installed.)
> Removing libreoffice-base (1:5.2.7-1+deb9u4) ...
> dpkg-divert: error: mismatch on package
>   when removing 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to 
> /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base'
>   found 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to 
> /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by --add'
> dpkg: error processing package libreoffice-base (--purge):
>  subprocess installed post-removal script returned error exit status 2
> Processing triggers for desktop-file-utils (0.23-1) ...
> Processing triggers for mime-support (3.60) ...
> Processing triggers for man-db (2.7.6.1-2) ...
> Errors were encountered while processing:
>  libreoffice-base
> 
> So if that diversion isn't coming from the package, feel free to close
> this bug report.

Is is, but see my other reply...

Regards,

Rene



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-10-28 Thread Rene Engelhard
On Sun, Oct 28, 2018 at 02:08:13PM +, Axel Beckert wrote:
> Package: libreoffice-base,libreoffice-common
> Version: 1:5.2.7-1+deb9u4
> Severity: serious
> Justification: file conflict, fails to upgrade

No.

> When upgrading Debian Stretch on a friends Gemini PDA (arm64), parts of 
> libreoffice failed to 
> upgrade from deb8u3 to deb8u4 due a file conflict between two of its binary 
> packages.
> 
> It looks as if dialog.xlc moved between packages between deb8u3 and deb8u4 on 
> at least arm64.

No, it didn't.

As you say already in your other mail this is a diversion. If your
system was clean before there was no issue (there was a short time where
the diversion was broken, yes...

-base diverts dialog.xlc (and others) because I don't see the need on
forcing Access2Base macros (yes, doing what it says...) on everyone.

This is basically the case since ages:

libreoffice (1:4.3.0~rc3-2) experimental; urgency=low

  * Brown paper bag release

  * debian/patches/handle-symlinks-to-icon-themes-correctly.diff: as name says;
from upstream

  * debian/rules:
- fix typo so export DISABLE_CVE_TESTS=TRUE is actually set
- add symlinks for images*.zip again
- s/iceweasel-dev/npapi-sdk-dev/. Re-enable system-npapi-headers
- ENABLE_AVAHI=n (closes: #749770, #755309)
  * debian/libreoffice-base.preinst.in: fix version check (closes: #755290)
  * debian/libreoffice-base.postrm.in: add more checks for the
Access2Base diversions; add forgotten recommended abort-upgrade step
from policy manual

 -- Rene Engelhard   Sat, 19 Jul 2014 09:57:19 +0200
[...]
libreoffice (1:4.3.0~beta1-1) experimental; urgency=low

  * new upstream beta release
- fixes unconditional execution of VBA macros (CVE-2014-0247)

  * debian/patches/odk-no-dot.diff: HAVE_DOT=NO in Doxyfiles to prevent loads
of error: " Problems running dot: exit code=127, command='dot'" 
  * debian/patches/disable-ftp-nohost-test.diff: remove, seems to work now

  * debian/rules:
- move /usr/lib/libreoffice/share/basic/Access2Base from -common to -base, 
  as it clearly is Base-specific
  * debian/control.in:
- add Replaces: for the Access2Base move
  * debian/libreoffice-base.{preinst,postrm}.in: dpkg-divert dialog.xlc
and script.xlc... FIXME: Better, scalable solution..
  * debian/control.help.in:
- make -help-* depend on -style-default (closes: #748434)

 -- Rene Engelhard   Fri, 23 May 2014 07:31:12 +0200

And those didn't change since then.

Regards,

Rene



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-10-28 Thread Axel Beckert
Hi,

Axel Beckert wrote:
> When upgrading Debian Stretch on a friends Gemini PDA (arm64), parts
> of libreoffice failed to upgrade from deb8u3 to deb8u4 due a file
> conflict between two of its binary packages.

Of course I meant deb9u3 and deb9u4. (9 instead of 8)

> It looks as if dialog.xlc moved between packages between deb8u3 and
> deb8u4 on at least arm64.

When trying to fix this manually using "dpkg --purge --force-depends"
to later use "apt install -f", libreoffice-base failed to purge due to
some (seemingly broken) diversion. Here's my next try after
libreoffice-common was already successfully purged:

root@localhost:~# dpkg --purge --force-depends libreoffice-base 
  
dpkg: libreoffice-base: dependency problems, but removing anyway as you 
requested:
 libreoffice-report-builder-bin depends on libreoffice-base.
 libreoffice depends on libreoffice-base.

(Reading database ... 63690 files and directories currently installed.)
Removing libreoffice-base (1:5.2.7-1+deb9u4) ...
dpkg-divert: error: mismatch on package
  when removing 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to 
/usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base'
  found 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to 
/usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by --add'
dpkg: error processing package libreoffice-base (--purge):
 subprocess installed post-removal script returned error exit status 2
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 libreoffice-base

So if that diversion isn't coming from the package, feel free to close
this bug report.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



Bug#912140: libreoffice-base,libreoffice-common: trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is also in package libreoffice-{base,common} 1:5.2.7-1+deb9u3

2018-10-28 Thread Axel Beckert
Package: libreoffice-base,libreoffice-common
Version: 1:5.2.7-1+deb9u4
Severity: serious
Justification: file conflict, fails to upgrade

Dear Rene and Chris,

When upgrading Debian Stretch on a friends Gemini PDA (arm64), parts of 
libreoffice failed to 
upgrade from deb8u3 to deb8u4 due a file conflict between two of its binary 
packages.

It looks as if dialog.xlc moved between packages between deb8u3 and deb8u4 on 
at least arm64.

root@localhost:~# apt install -f
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libreoffice-base libreoffice-common
Suggested packages:
  libreoffice-gcj libreoffice-report-builder unixodbc libreoffice-style-breeze
  libreoffice-style-hicontrast libreoffice-style-oxygen libreoffice-style-sifr 
libreoffice-style-tango
Recommended packages:
  default-jre | openjdk-8-jre | openjdk-7-jre | openjdk-6-jre | gcj-jre | 
java5-runtime | jre
The following packages will be upgraded:
  libreoffice-base libreoffice-common
2 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
4 not fully installed or removed.
Need to get 0 B/24.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 67608 files and directories currently installed.)
Preparing to unpack .../libreoffice-base_1%3a5.2.7-1+deb9u4_arm64.deb ...
Unpacking libreoffice-base (1:5.2.7-1+deb9u4) over (1:5.2.7-1+deb9u3) ...
dpkg: error processing archive 
/var/cache/apt/archives/libreoffice-base_1%3a5.2.7-1+deb9u4_arm64.deb 
(--unpack):
 trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is 
also in package libreoffice-common 1:5.2.7-1+deb9u3
Preparing to unpack .../libreoffice-common_1%3a5.2.7-1+deb9u4_all.deb ...
Unpacking libreoffice-common (1:5.2.7-1+deb9u4) over (1:5.2.7-1+deb9u3) ...
dpkg: error processing archive 
/var/cache/apt/archives/libreoffice-common_1%3a5.2.7-1+deb9u4_all.deb 
(--unpack):
 trying to overwrite '/usr/lib/libreoffice/share/basic/dialog.xlc', which is 
also in package libreoffice-base 1:5.2.7-1+deb9u3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or 
directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or 
directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-base_1%3a5.2.7-1+deb9u4_arm64.deb
 /var/cache/apt/archives/libreoffice-common_1%3a5.2.7-1+deb9u4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

While there are 3rd-party packages ("Gemian") installed, the two affected 
packages seem to come 
from Debian proper.

root@localhost:~# apt-cache policy libreoffice-base libreoffice-common
libreoffice-base:
  Installed: 1:5.2.7-1+deb9u3
  Candidate: 1:5.2.7-1+deb9u4
  Version table:
 1:5.2.7-1+deb9u4 500
500 http://http.debian.net/debian stretch/main arm64 Packages
 *** 1:5.2.7-1+deb9u3 100
100 /var/lib/dpkg/status
libreoffice-common:
  Installed: 1:5.2.7-1+deb9u3
  Candidate: 1:5.2.7-1+deb9u4
  Version table:
 1:5.2.7-1+deb9u4 500
500 http://http.debian.net/debian stretch/main arm64 Packages
 *** 1:5.2.7-1+deb9u3 100
100 /var/lib/dpkg/status

-- System Information:
Debian Release: 9.5
APT prefers stable
APT policy: (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 3.18.41+ (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE= 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libreoffice-base depends on:
ii  dpkg  1.18.25
ii  libc6 2.24-11+deb9u3
ii  libgcc1   1:6.3.0-18+deb9u1
ii  libreoffice-base-core 1:5.2.7-1+deb9u4
ii  libreoffice-base-drivers  1:5.2.7-1+deb9u4
ii  libreoffice-core  1:5.2.7-1+deb9u4
ii  libstdc++66.3.0-18+deb9u1
ii  uno-libs3 5.2.7-1+deb9u4
ii  ure   5.2.7-1+deb9u4

Versions of packages libreoffice-base recommends:
pn  default-jre | openjdk-8-jre | openjdk-7-jre | openjdk-6-j  
iu  libreoffice-java-common1:5.2.7-1+deb9u4
ii  libreoffice-writer 1:5.2.7-1+deb9u4

Versions of packages libreoffice-base suggests:
pn  libreoffice-gcj 
pn  libreoffice-report-builder  
pn  unixodbc

Versions of packages libreoffice-core depends on:
ii  fontconfig2.11.0-6.7+b1
ii  fonts-opensymbol  2:102.7+LibO5.2.7-1+deb9u4
ii  libboost-date-time1.62.0