The original post: /r/debian by /u/a555555 on 2025-02-21 12:50:18.

Hey everyone,

I have the following issue on Testing:

# apt --fix-broken install
Correcting dependencies... Done
Upgrading:
libreoffice-common

Summary:
Upgrading: 1, Installing: 0, Removing: 0, Not Upgrading: 0
24 not fully installed or removed.
Download size: 0 B / 19.3 MB
Space needed: 9,216 B / 65.9 GB available

Continue? [Y/n]
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
serious bugs of libreoffice-common (4:24.8.4-4 → 4:24.8.5-1) <Resolved in some Version>
b1 - #1098465 - libreoffice-common: Upgrade fails with `trying to overwrite '/usr/lib/libreoffice/share/.registry/hsqldb.xcd', which is also ,in package libreoffice-sdbc-hsqldb (4:24.8.5-1
)` (Fixed: libreoffice/4:24.8.5-2)
Summary:
libreoffice-common(1 bug)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...]
Reading changelogs... Done
(Reading database ... 398379 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_4%3a24.8.5-1_all.deb ...
Unpacking libreoffice-common (4:24.8.5-1) over (4:24.8.4-4) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_4%3a24.8.5-1_all.deb (--unpack):
trying to overwrite '/usr/lib/libreoffice/share/.registry/hsqldb.xcd', which is also in package libreoffice-sdbc-hsqldb (4:24.8.5-1)
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-common_4%3a24.8.5-1_all.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)

How do I fix this ?