Hi,

Le 27/04/2023 à 14:59, Helmut Grohne a écrit :
Attempting to unpack libocsigenserver-ocaml/5.0.1-1+b12 from Debian bookworm
on a minimal Debian bullseye with libocsigenserver-ocaml-dev/2.16.1-1+b3
installed, causes an unpack error from dpkg due to
/usr/lib/ocaml/ocsigenserver/ocsigenserver.cma being contained in both packages.

| (Reading database ... 12625 files and directories currently installed.)
| Preparing to unpack .../libocsigenserver-ocaml_5.0.1-1+b12_amd64.deb ...
| Unpacking libocsigenserver-ocaml (5.0.1-1+b12) over (2.16.1-1+b3) ...
| dpkg: error processing archive ./libocsigenserver-ocaml_5.0.1-1+b12_amd64.deb 
(--unpack):
|  trying to overwrite '/usr/lib/ocaml/ocsigenserver/ocsigenserver.cma', which 
is also in package libocsigenserver-ocaml-dev 2.16.1-1+b3
| dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
| Errors were encountered while processing:
|  ./libocsigenserver-ocaml_5.0.1-1+b12_amd64.deb


Please ensure that libocsigenserver-ocaml has sufficient Breaks and Replaces 
declarations.

I agree that doctrine says Breaks+Replaces are missing here, and I will fix that. However, I wonder how one would get the aforementioned error in practice.

In a minimal bullseye chroot with libocsigenserver-ocaml-dev installed, after adding bookworm to sources.list:
- "apt upgrade" does not attempt to upgrade libocsigenserver-ocaml
- "apt dist-upgrade" upgrades libocsigenserver-ocaml along with libocsigenserver-ocaml-dev, with no errors

This is the same outcome with the "fixed" libocsigenserver-ocaml.

Installing with "dpkg -i" does produce the error, but installing the fixed package with "dpkg -i" also produces an error.


Cheers,

--
Stéphane

Reply via email to