Bug#917788: libmedc11: Overwrites a file from libmedc1v5

Kurt Kremitzki kurt at kwk.systems
Sun Dec 30 15:21:03 GMT 2018


Hi Rock & Gilles,

On Sun, 30 Dec 2018 11:01:07 +0000 Rock Storm <rockstorm at gmx.com> wrote:
> Package: libmedc11
> Severity: grave
> 
> Dear Maintainer,
> 
> While trying to update freecad I run into the following broken apt
> state:
> 
> Preparing to unpack .../libmedc11_4.0.0+repack-3_amd64.deb ...
> Unpacking libmedc11:amd64 (4.0.0+repack-3) ...
> dpkg: error processing archive /var/cache/apt/archives/libmedc11_4.0.0+repack-3_amd64.deb (--unpack):
>  trying to overwrite '/usr/lib/x86_64-linux-gnu/libmedC.so.11.0.0', which is also in package libmedc1v5:amd64 4.0.0+repack-1
> dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
> Errors were encountered while processing:
>  /var/cache/apt/archives/libmedc11_4.0.0+repack-3_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I've followed the solution given in this post [1] to fix it. It is also
> suggested that a line such as 'Conflict: libmedc1v5' be added to the
> control file.
> 
>  [1]: https://askubuntu.com/a/433510
> 
> 
> Thanks a lot,
> Rock
> 

I was just about to open a bug on this same issue. It's actually present
in both libmed11 and libmedc11. Instead of Conflicts, they both need
Breaks + Replaces, see Policy 7.6 [1] or #906110 [2] for a similar
instance. One can replicate this behavior with:

    sudo piuparts -a -d buster -d sid libmed{,c}-dev


[1]
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906110



More information about the debian-science-maintainers mailing list